diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-06 22:30:39 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-08-06 22:53:24 -0700 |
| commit | 0b031b570411517c34ff093499e195d329a97312 (patch) | |
| tree | c349150bd681b5a80d8ea9469317d00cb51136f2 | |
| parent | 8d7a59a813eb07ec0ea493304e991424b5da6a4f (diff) | |
| download | meta-openembedded-0b031b570411517c34ff093499e195d329a97312.tar.gz | |
autofs: Fix build with glibc 2.36
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-daemons/autofs/autofs/mount_conflict.patch | 30 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs/mount_conflict.patch b/meta-networking/recipes-daemons/autofs/autofs/mount_conflict.patch new file mode 100644 index 0000000000..e2a94bf825 --- /dev/null +++ b/meta-networking/recipes-daemons/autofs/autofs/mount_conflict.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Avoid conflicts between sys/mount.h and linux/mount.h | ||
| 2 | |||
| 3 | linux/fs.h includes linux/mount.h and this include file is unused so | ||
| 4 | do not include it and avoid conflict too with glibc 2.36+ see [1] | ||
| 5 | |||
| 6 | [1] https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | |||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- a/modules/parse_amd.c | ||
| 12 | +++ b/modules/parse_amd.c | ||
| 13 | @@ -27,7 +27,6 @@ | ||
| 14 | #include <sys/utsname.h> | ||
| 15 | #include <netinet/in.h> | ||
| 16 | #include <sys/mount.h> | ||
| 17 | -#include <linux/fs.h> | ||
| 18 | |||
| 19 | #define MODULE_PARSE | ||
| 20 | #include "automount.h" | ||
| 21 | --- a/modules/parse_sun.c | ||
| 22 | +++ b/modules/parse_sun.c | ||
| 23 | @@ -30,7 +30,6 @@ | ||
| 24 | #include <sys/utsname.h> | ||
| 25 | #include <netinet/in.h> | ||
| 26 | #include <sys/mount.h> | ||
| 27 | -#include <linux/fs.h> | ||
| 28 | |||
| 29 | #define MODULE_PARSE | ||
| 30 | #include "automount.h" | ||
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb index 1f87bddbee..cb80844586 100644 --- a/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb +++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb | |||
| @@ -26,6 +26,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \ | |||
| 26 | file://0001-Do-not-hardcode-path-for-pkg.m4.patch \ | 26 | file://0001-Do-not-hardcode-path-for-pkg.m4.patch \ |
| 27 | file://0001-Bug-fix-for-pid_t-not-found-on-musl.patch \ | 27 | file://0001-Bug-fix-for-pid_t-not-found-on-musl.patch \ |
| 28 | file://0001-Define-__SWORD_TYPE-if-undefined.patch \ | 28 | file://0001-Define-__SWORD_TYPE-if-undefined.patch \ |
| 29 | file://mount_conflict.patch \ | ||
| 29 | " | 30 | " |
| 30 | SRC_URI[sha256sum] = "0bd401c56f0eb1ca6251344c3a3d70bface3eccf9c67117cd184422c4cace30c" | 31 | SRC_URI[sha256sum] = "0bd401c56f0eb1ca6251344c3a3d70bface3eccf9c67117cd184422c4cace30c" |
| 31 | 32 | ||
