summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/mount_conflict.patch30
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb1
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 @@
1Avoid conflicts between sys/mount.h and linux/mount.h
2
3linux/fs.h includes linux/mount.h and this include file is unused so
4do 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
8Upstream-Status: Pending
9
10Signed-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 "
30SRC_URI[sha256sum] = "0bd401c56f0eb1ca6251344c3a3d70bface3eccf9c67117cd184422c4cace30c" 31SRC_URI[sha256sum] = "0bd401c56f0eb1ca6251344c3a3d70bface3eccf9c67117cd184422c4cace30c"
31 32