diff options
| -rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0001-support-include-junction.h-Define-macros-for-musl.patch | 46 | ||||
| -rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0001-support-junction-path.c-Fix-build-for-musl.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.1.bb (renamed from meta/recipes-connectivity/nfs-utils/nfs-utils_2.7.1.bb) | 6 |
3 files changed, 3 insertions, 84 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-support-include-junction.h-Define-macros-for-musl.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-support-include-junction.h-Define-macros-for-musl.patch deleted file mode 100644 index c94990b969..0000000000 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-support-include-junction.h-Define-macros-for-musl.patch +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | From 6f82ffa0e01e88e4e73972cb0125fcb6e78e27cf Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
| 3 | Date: Sun, 8 Sep 2024 09:45:41 +0000 | ||
| 4 | Subject: [PATCH] support/include/junction.h: Define macros for musl | ||
| 5 | |||
| 6 | Fixed 1: | ||
| 7 | In file included from cache.c:1217: | ||
| 8 | ../../support/include/junction.h:128:21: error: expected ';' before 'char' | ||
| 9 | 128 | __attribute_malloc__ | ||
| 10 | | ^ | ||
| 11 | | ; | ||
| 12 | 129 | char **nfs_dup_string_array(char **array); | ||
| 13 | |||
| 14 | Fixed 2: | ||
| 15 | junction.c: In function 'junction_set_sticky_bit': | ||
| 16 | junction.c:164:39: error: 'ALLPERMS' undeclared (first use in this function) | ||
| 17 | 164 | stb.st_mode &= (unsigned int)~ALLPERMS; | ||
| 18 | |||
| 19 | Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=172579572428765&w=2] | ||
| 20 | |||
| 21 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 22 | --- | ||
| 23 | support/include/junction.h | 10 ++++++++++ | ||
| 24 | 1 file changed, 10 insertions(+) | ||
| 25 | |||
| 26 | diff --git a/support/include/junction.h b/support/include/junction.h | ||
| 27 | index 7257d80..d127dd5 100644 | ||
| 28 | --- a/support/include/junction.h | ||
| 29 | +++ b/support/include/junction.h | ||
| 30 | @@ -26,6 +26,16 @@ | ||
| 31 | #ifndef _NFS_JUNCTION_H_ | ||
| 32 | #define _NFS_JUNCTION_H_ | ||
| 33 | |||
| 34 | +/* For musl, refered to glibc's sys/cdefs.h */ | ||
| 35 | +#ifndef __attribute_malloc__ | ||
| 36 | +#define __attribute_malloc__ __attribute__((__malloc__)) | ||
| 37 | +#endif | ||
| 38 | + | ||
| 39 | +/* For musl, refered to glibc's sys/stat.h */ | ||
| 40 | +#ifndef ALLPERMS | ||
| 41 | +#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ | ||
| 42 | +#endif | ||
| 43 | + | ||
| 44 | #include <stdint.h> | ||
| 45 | |||
| 46 | /* | ||
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-support-junction-path.c-Fix-build-for-musl.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-support-junction-path.c-Fix-build-for-musl.patch deleted file mode 100644 index ae2b0c566c..0000000000 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-support-junction-path.c-Fix-build-for-musl.patch +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | From ad4ec0c40aaea37b8e7ec3e73d7b35cbda2d3841 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
| 3 | Date: Sun, 8 Sep 2024 08:34:28 +0000 | ||
| 4 | Subject: [PATCH] support/junction/path.c: Fix build for musl | ||
| 5 | |||
| 6 | Fixed: | ||
| 7 | path.c:164:24: error: implicit declaration of function 'strchrnul'; did you mean 'strchr'? [-Wimplicit-function-declaration] | ||
| 8 | [snip] | ||
| 9 | |||
| 10 | path.c:239:27: error: 'NAME_MAX' undeclared (first use in this function); did you mean 'AF_MAX'? | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=172579572228762&w=2] | ||
| 13 | |||
| 14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 15 | --- | ||
| 16 | support/junction/path.c | 6 ++++++ | ||
| 17 | 1 file changed, 6 insertions(+) | ||
| 18 | |||
| 19 | diff --git a/support/junction/path.c b/support/junction/path.c | ||
| 20 | index c25cc52..6e28df3 100644 | ||
| 21 | --- a/support/junction/path.c | ||
| 22 | +++ b/support/junction/path.c | ||
| 23 | @@ -23,6 +23,12 @@ | ||
| 24 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt | ||
| 25 | */ | ||
| 26 | |||
| 27 | +/* For musl */ | ||
| 28 | +#ifndef _GNU_SOURCE | ||
| 29 | +#define _GNU_SOURCE | ||
| 30 | +#endif | ||
| 31 | +#include <limits.h> | ||
| 32 | + | ||
| 33 | #include <sys/types.h> | ||
| 34 | #include <sys/stat.h> | ||
| 35 | |||
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.7.1.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.1.bb index 849ea0e43b..488a1a7e70 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.7.1.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.1.bb | |||
| @@ -31,10 +31,9 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x | |||
| 31 | file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ | 31 | file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ |
| 32 | file://clang-warnings.patch \ | 32 | file://clang-warnings.patch \ |
| 33 | file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \ | 33 | file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \ |
| 34 | file://0001-support-include-junction.h-Define-macros-for-musl.patch \ | ||
| 35 | file://0001-support-junction-path.c-Fix-build-for-musl.patch \ | ||
| 36 | " | 34 | " |
| 37 | SRC_URI[sha256sum] = "885c948a84a58bca4148f459588f9a7369dbb40dcc466f04e455c6b10fd0aa48" | 35 | |
| 36 | SRC_URI[sha256sum] = "a0be95b08396908048583fcf6b34a7c1ab49d53e8a12eb28673ccfd2eff0c505" | ||
| 38 | 37 | ||
| 39 | # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will | 38 | # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will |
| 40 | # pull in the remainder of the dependencies. | 39 | # pull in the remainder of the dependencies. |
| @@ -74,6 +73,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | |||
| 74 | PACKAGECONFIG[nfsv41] = "--enable-nfsv41,--disable-nfsv41,libdevmapper,libdevmapper" | 73 | PACKAGECONFIG[nfsv41] = "--enable-nfsv41,--disable-nfsv41,libdevmapper,libdevmapper" |
| 75 | # keyutils is available in meta-oe | 74 | # keyutils is available in meta-oe |
| 76 | PACKAGECONFIG[nfsv4] = "--enable-nfsv4,--disable-nfsv4,keyutils,python3-core" | 75 | PACKAGECONFIG[nfsv4] = "--enable-nfsv4,--disable-nfsv4,keyutils,python3-core" |
| 76 | PACKAGECONFIG[nfsdctl] = "--enable-nfsdctl,--disable-nfsdctl,libnl readline," | ||
| 77 | 77 | ||
| 78 | PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats ${PN}-rpcctl" | 78 | PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats ${PN}-rpcctl" |
| 79 | 79 | ||
