mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
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>
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
From ac32b813f5d6f9a2de944015cf9bb98d68e0203a Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 1 Dec 2018 10:02:12 -0800
|
||||
Subject: [PATCH] cacheio: use intmax_t for formatted IO
|
||||
|
||||
time_t is not same size on x32 ABI (ILP32)
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
support/nfs/cacheio.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c
|
||||
index 9dc4cf1..2086a95 100644
|
||||
--- a/support/nfs/cacheio.c
|
||||
+++ b/support/nfs/cacheio.c
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <nfslib.h>
|
||||
#include <stdio.h>
|
||||
+#include <inttypes.h>
|
||||
#include <stdio_ext.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
@@ -234,7 +235,7 @@ cache_flush(int force)
|
||||
stb.st_mtime > now)
|
||||
stb.st_mtime = time(0);
|
||||
|
||||
- sprintf(stime, "%ld\n", stb.st_mtime);
|
||||
+ sprintf(stime, "%jd\n", (intmax_t)stb.st_mtime);
|
||||
for (c=0; cachelist[c]; c++) {
|
||||
int fd;
|
||||
sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]);
|
||||
--
|
||||
2.19.2
|
||||
|
||||
@@ -1,17 +1,24 @@
|
||||
From caa19231196d73541445728e6813c8fa70345acb Mon Sep 17 00:00:00 2001
|
||||
From: Robert Yang <liezhi.yang@windriver.com>
|
||||
Date: Tue, 26 Jun 2018 15:59:00 +0800
|
||||
Subject: [PATCH] nfs-utils: 2.1.1 -> 2.3.1
|
||||
|
||||
Fixed:
|
||||
configure: error: res_querydomain needed
|
||||
|
||||
Upstream-Status: Pending [https://git.alpinelinux.org/cgit/aports/tree/main/nfs-utils/musl-res_querydomain.patch?id=f6734a77d3caee73325f8cc1f77d1b5117a75096]
|
||||
Upstream-Status: Pending [https://github.com/alpinelinux/aports/blob/master/main/nfs-utils/musl-configure_ac.patch]
|
||||
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
configure.ac | 13 ++++++-------
|
||||
1 file changed, 6 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 276dec3..760238b 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -401,7 +401,7 @@ if test "$enable_gss" = yes; then
|
||||
@@ -408,7 +408,7 @@ if test "$enable_gss" = yes; then
|
||||
fi
|
||||
|
||||
dnl libdnsidmap specific checks
|
||||
@@ -20,3 +27,31 @@ diff --git a/configure.ac b/configure.ac
|
||||
|
||||
AC_ARG_ENABLE([ldap],
|
||||
[AS_HELP_STRING([--disable-ldap],[Disable support for LDAP @<:default=detect@:>@])])
|
||||
@@ -547,11 +547,11 @@ my_am_cflags="\
|
||||
-pipe \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
- -Werror=strict-prototypes \
|
||||
- -Werror=missing-prototypes \
|
||||
- -Werror=missing-declarations \
|
||||
+ -Wstrict-prototypes \
|
||||
+ -Wmissing-prototypes \
|
||||
+ -Wmissing-declarations \
|
||||
-Werror=format=2 \
|
||||
- -Werror=undef \
|
||||
+ -Wundef \
|
||||
-Werror=missing-include-dirs \
|
||||
-Werror=strict-aliasing=2 \
|
||||
-Werror=init-self \
|
||||
@@ -579,10 +579,9 @@ AC_DEFUN([CHECK_CCSUPPORT], [
|
||||
|
||||
CHECK_CCSUPPORT([-Werror=format-overflow=2], [flg1])
|
||||
CHECK_CCSUPPORT([-Werror=int-conversion], [flg2])
|
||||
-CHECK_CCSUPPORT([-Werror=incompatible-pointer-types], [flg3])
|
||||
CHECK_CCSUPPORT([-Werror=misleading-indentation], [flg4])
|
||||
|
||||
-AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg3 $flg4"])
|
||||
+AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg4"])
|
||||
|
||||
# Make sure that $ACLOCAL_FLAGS are used during a rebuild
|
||||
AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \$(ACLOCAL_FLAGS)"])
|
||||
|
||||
+3
-2
@@ -30,12 +30,13 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
|
||||
file://nfs-utils-debianize-start-statd.patch \
|
||||
file://bugfix-adjust-statd-service-name.patch \
|
||||
file://nfs-utils-musl-limits.patch \
|
||||
file://0001-cacheio-use-intmax_t-for-formatted-IO.patch \
|
||||
"
|
||||
|
||||
SRC_URI_append_libc-musl = " file://nfs-utils-musl-res_querydomain.patch"
|
||||
|
||||
SRC_URI[md5sum] = "d77b182a9ee396aa6221ac2401ad7046"
|
||||
SRC_URI[sha256sum] = "96d06b5a86b185815760d8f04c34fdface8fa8b9949ff256ac05c3ebc08335a5"
|
||||
SRC_URI[md5sum] = "b6c9c032995af1c08fea9fbcc1ce33e9"
|
||||
SRC_URI[sha256sum] = "f68b34793831b05f1fd5760d6bdec92772c7684177586a99a61e7b444f336322"
|
||||
|
||||
# Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will
|
||||
# pull in the remainder of the dependencies.
|
||||
Reference in New Issue
Block a user