summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2025-09-15 21:10:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-18 11:16:42 +0100
commit7d02a8689ff29c4c6c43a21667d806b0f2c5c062 (patch)
treeab275feb03f44d3c0eab94959cd1676376170007
parent70d32ed86b3f5a96621f741dd07a6fec97321cf4 (diff)
downloadpoky-7d02a8689ff29c4c6c43a21667d806b0f2c5c062.tar.gz
nfs-utils: 2.8.3 -> 2.8.4
* Remove backported patch 0002-Fix-build-with-glibc-2.42.patch. (From OE-Core rev: 988dc5702eb22d81ba414133b38bd6cadc8cda6b) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/0002-Fix-build-with-glibc-2.42.patch57
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.4.bb (renamed from meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.3.bb)3
2 files changed, 1 insertions, 59 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0002-Fix-build-with-glibc-2.42.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0002-Fix-build-with-glibc-2.42.patch
deleted file mode 100644
index 0b22511873..0000000000
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/0002-Fix-build-with-glibc-2.42.patch
+++ /dev/null
@@ -1,57 +0,0 @@
1From d74ef9afacf9dc4a067a2f984f52ad136fb46c31 Mon Sep 17 00:00:00 2001
2From: Yaakov Selkowitz <yselkowi@redhat.com>
3Date: Fri, 27 Jun 2025 04:54:08 -0500
4Subject: [PATCH] Fix build with glibc-2.42
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9exportfs.c: In function ‘release_lockfile’:
10exportfs.c:83:17: error: ignoring return value of ‘lockf’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
11 83 | lockf(_lockfd, F_ULOCK, 0);
12 | ^~~~~~~~~~~~~~~~~~~~~~~~~~
13exportfs.c: In function ‘grab_lockfile’:
14exportfs.c:77:17: error: ignoring return value of ‘lockf’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
15 77 | lockf(_lockfd, F_LOCK, 0);
16 | ^~~~~~~~~~~~~~~~~~~~~~~~~
17
18lockf is now marked with attribute warn_unused_result:
19
20https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=f3c82fc1b41261f582f5f9fa12f74af9bcbc88f9
21
22Upstream-Status: Backport [https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=9f974046c37b7c28705d5558328759fff708b1cb]
23Signed-off-by: Steve Dickson <steved@redhat.com>
24Signed-off-by: Khem Raj <raj.khem@gmail.com>
25---
26 utils/exportfs/exportfs.c | 10 ++++++++--
27 1 file changed, 8 insertions(+), 2 deletions(-)
28
29diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
30index b03a047..748c38e 100644
31--- a/utils/exportfs/exportfs.c
32+++ b/utils/exportfs/exportfs.c
33@@ -74,13 +74,19 @@ grab_lockfile(void)
34 {
35 _lockfd = open(lockfile, O_CREAT|O_RDWR, 0666);
36 if (_lockfd != -1)
37- lockf(_lockfd, F_LOCK, 0);
38+ if (lockf(_lockfd, F_LOCK, 0) != 0) {
39+ xlog_warn("%s: lockf() failed: errno %d (%s)",
40+ __func__, errno, strerror(errno));
41+ }
42 }
43 static void
44 release_lockfile(void)
45 {
46 if (_lockfd != -1) {
47- lockf(_lockfd, F_ULOCK, 0);
48+ if (lockf(_lockfd, F_ULOCK, 0) != 0) {
49+ xlog_warn("%s: lockf() failed: errno %d (%s)",
50+ __func__, errno, strerror(errno));
51+ }
52 close(_lockfd);
53 _lockfd = -1;
54 }
55--
562.43.0
57
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.4.bb
index 039090df72..b68a55edcd 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.4.bb
@@ -22,12 +22,11 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
22 file://nfsserver \ 22 file://nfsserver \
23 file://nfscommon \ 23 file://nfscommon \
24 file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \ 24 file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \
25 file://0002-Fix-build-with-glibc-2.42.patch \
26 file://0004-Use-nogroup-for-nobody-group.patch \ 25 file://0004-Use-nogroup-for-nobody-group.patch \
27 file://0005-find-OE-provided-Kerberos.patch \ 26 file://0005-find-OE-provided-Kerberos.patch \
28 " 27 "
29 28
30SRC_URI[sha256sum] = "11e7c5847a8423a72931c865bd9296e7fd56ff270a795a849183900961711725" 29SRC_URI[sha256sum] = "11c4cc598a434d7d340bad3e072a373ba1dcc2c49f855d44b202222b78ecdbf5"
31 30
32# Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will 31# Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will
33# pull in the remainder of the dependencies. 32# pull in the remainder of the dependencies.