summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/nfs-utils
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-12-01 10:12:53 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-03 12:20:01 +0000
commitb5ff76a701687dd23508e0bcdc8f72451fd48167 (patch)
tree6ae7d3d7136a6c766b4dcfc9e036f41555b8c76b /meta/recipes-connectivity/nfs-utils
parentfefe59b2e647a7778c1fa5f575f4646ec2eb2808 (diff)
downloadpoky-b5ff76a701687dd23508e0bcdc8f72451fd48167.tar.gz
nfs-utils: Upgrade to 2.3.3
enhance the musl-only patch to degrade certain Werros into Warnings which helps in compiling on musl, since its checking for __GLIBC__ defines which are undefined on musl. fix build on x32 ABI (From OE-Core rev: 61290f91e6667e1e494f6d9cb8c19ebecda122b5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/0001-cacheio-use-intmax_t-for-formatted-IO.patch38
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils-musl-res_querydomain.patch43
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb (renamed from meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.1.bb)5
3 files changed, 80 insertions, 6 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-cacheio-use-intmax_t-for-formatted-IO.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-cacheio-use-intmax_t-for-formatted-IO.patch
new file mode 100644
index 0000000000..bafff5b9c0
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-cacheio-use-intmax_t-for-formatted-IO.patch
@@ -0,0 +1,38 @@
1From ac32b813f5d6f9a2de944015cf9bb98d68e0203a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 1 Dec 2018 10:02:12 -0800
4Subject: [PATCH] cacheio: use intmax_t for formatted IO
5
6time_t is not same size on x32 ABI (ILP32)
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 support/nfs/cacheio.c | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c
16index 9dc4cf1..2086a95 100644
17--- a/support/nfs/cacheio.c
18+++ b/support/nfs/cacheio.c
19@@ -17,6 +17,7 @@
20
21 #include <nfslib.h>
22 #include <stdio.h>
23+#include <inttypes.h>
24 #include <stdio_ext.h>
25 #include <string.h>
26 #include <ctype.h>
27@@ -234,7 +235,7 @@ cache_flush(int force)
28 stb.st_mtime > now)
29 stb.st_mtime = time(0);
30
31- sprintf(stime, "%ld\n", stb.st_mtime);
32+ sprintf(stime, "%jd\n", (intmax_t)stb.st_mtime);
33 for (c=0; cachelist[c]; c++) {
34 int fd;
35 sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]);
36--
372.19.2
38
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils-musl-res_querydomain.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils-musl-res_querydomain.patch
index a169e6a222..22002fadca 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils-musl-res_querydomain.patch
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils-musl-res_querydomain.patch
@@ -1,17 +1,24 @@
1From caa19231196d73541445728e6813c8fa70345acb Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Tue, 26 Jun 2018 15:59:00 +0800
4Subject: [PATCH] nfs-utils: 2.1.1 -> 2.3.1
5
1Fixed: 6Fixed:
2configure: error: res_querydomain needed 7configure: error: res_querydomain needed
3 8
4Upstream-Status: Pending [https://git.alpinelinux.org/cgit/aports/tree/main/nfs-utils/musl-res_querydomain.patch?id=f6734a77d3caee73325f8cc1f77d1b5117a75096] 9Upstream-Status: Pending [https://github.com/alpinelinux/aports/blob/master/main/nfs-utils/musl-configure_ac.patch]
5 10
6Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 11Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
12
7--- 13---
8 configure.ac | 2 +- 14 configure.ac | 13 ++++++-------
9 1 file changed, 1 insertion(+), 1 deletion(-) 15 1 file changed, 6 insertions(+), 7 deletions(-)
10 16
11diff --git a/configure.ac b/configure.ac 17diff --git a/configure.ac b/configure.ac
18index 276dec3..760238b 100644
12--- a/configure.ac 19--- a/configure.ac
13+++ b/configure.ac 20+++ b/configure.ac
14@@ -401,7 +401,7 @@ if test "$enable_gss" = yes; then 21@@ -408,7 +408,7 @@ if test "$enable_gss" = yes; then
15 fi 22 fi
16 23
17 dnl libdnsidmap specific checks 24 dnl libdnsidmap specific checks
@@ -20,3 +27,31 @@ diff --git a/configure.ac b/configure.ac
20 27
21 AC_ARG_ENABLE([ldap], 28 AC_ARG_ENABLE([ldap],
22 [AS_HELP_STRING([--disable-ldap],[Disable support for LDAP @<:default=detect@:>@])]) 29 [AS_HELP_STRING([--disable-ldap],[Disable support for LDAP @<:default=detect@:>@])])
30@@ -547,11 +547,11 @@ my_am_cflags="\
31 -pipe \
32 -Wall \
33 -Wextra \
34- -Werror=strict-prototypes \
35- -Werror=missing-prototypes \
36- -Werror=missing-declarations \
37+ -Wstrict-prototypes \
38+ -Wmissing-prototypes \
39+ -Wmissing-declarations \
40 -Werror=format=2 \
41- -Werror=undef \
42+ -Wundef \
43 -Werror=missing-include-dirs \
44 -Werror=strict-aliasing=2 \
45 -Werror=init-self \
46@@ -579,10 +579,9 @@ AC_DEFUN([CHECK_CCSUPPORT], [
47
48 CHECK_CCSUPPORT([-Werror=format-overflow=2], [flg1])
49 CHECK_CCSUPPORT([-Werror=int-conversion], [flg2])
50-CHECK_CCSUPPORT([-Werror=incompatible-pointer-types], [flg3])
51 CHECK_CCSUPPORT([-Werror=misleading-indentation], [flg4])
52
53-AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg3 $flg4"])
54+AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg4"])
55
56 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
57 AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \$(ACLOCAL_FLAGS)"])
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.1.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb
index 6d450c7510..35587dfb7a 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.1.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb
@@ -30,12 +30,13 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
30 file://nfs-utils-debianize-start-statd.patch \ 30 file://nfs-utils-debianize-start-statd.patch \
31 file://bugfix-adjust-statd-service-name.patch \ 31 file://bugfix-adjust-statd-service-name.patch \
32 file://nfs-utils-musl-limits.patch \ 32 file://nfs-utils-musl-limits.patch \
33 file://0001-cacheio-use-intmax_t-for-formatted-IO.patch \
33" 34"
34 35
35SRC_URI_append_libc-musl = " file://nfs-utils-musl-res_querydomain.patch" 36SRC_URI_append_libc-musl = " file://nfs-utils-musl-res_querydomain.patch"
36 37
37SRC_URI[md5sum] = "d77b182a9ee396aa6221ac2401ad7046" 38SRC_URI[md5sum] = "b6c9c032995af1c08fea9fbcc1ce33e9"
38SRC_URI[sha256sum] = "96d06b5a86b185815760d8f04c34fdface8fa8b9949ff256ac05c3ebc08335a5" 39SRC_URI[sha256sum] = "f68b34793831b05f1fd5760d6bdec92772c7684177586a99a61e7b444f336322"
39 40
40# Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will 41# Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will
41# pull in the remainder of the dependencies. 42# pull in the remainder of the dependencies.