summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-09-07 22:33:21 -0700
committerJoe MacDonald <joe_macdonald@mentor.com>2017-09-22 10:30:20 -0400
commit604484bac29b47023bb28d2f28a1b867e492ad3b (patch)
tree46bdfb85250f6acc851001fa54be95cd387cb5b8 /meta-networking
parent4496cb4b29173492e48f935a519e2aea58e40bd5 (diff)
downloadmeta-openembedded-604484bac29b47023bb28d2f28a1b867e492ad3b.tar.gz
autofs: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch29
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb1
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch
new file mode 100644
index 000000000..7ac145674
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs/0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch
@@ -0,0 +1,29 @@
1From e4ee00e08acd7c0912a3264ad32e4de861c7416f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 7 Sep 2017 22:22:31 -0700
4Subject: [PATCH] modules/lookup_multi.c: Replace __S_IEXEC with S_IEXEC
5
6__S_IEXEC is internal to libc and may not be available on
7all libc e.g. musl
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 modules/lookup_multi.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/modules/lookup_multi.c b/modules/lookup_multi.c
15index 3ecda6d..cf109de 100644
16--- a/modules/lookup_multi.c
17+++ b/modules/lookup_multi.c
18@@ -452,7 +452,7 @@ int lookup_reinit(const char *my_mapfmt,
19 continue;
20 }
21
22- if (st.st_mode & __S_IEXEC)
23+ if (st.st_mode & S_IEXEC)
24 type = src_prog;
25 else
26 type = src_file;
27--
282.14.1
29
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb
index ccd8a7f24..68c64fdb0 100644
--- a/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb
+++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb
@@ -26,6 +26,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \
26 file://0002-Replace-__S_IEXEC-with-S_IEXEC.patch \ 26 file://0002-Replace-__S_IEXEC-with-S_IEXEC.patch \
27 file://autofs-5.1.2-libtirpc-as-need.patch \ 27 file://autofs-5.1.2-libtirpc-as-need.patch \
28 file://pkgconfig-libnsl.patch \ 28 file://pkgconfig-libnsl.patch \
29 file://0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch \
29 " 30 "
30SRC_URI[md5sum] = "28cf88f99eff553a8500659ba5d45a76" 31SRC_URI[md5sum] = "28cf88f99eff553a8500659ba5d45a76"
31SRC_URI[sha256sum] = "0d57e4138c2ec8058ca92164d035546f68ce4af93acb893369993d67c7056a10" 32SRC_URI[sha256sum] = "0d57e4138c2ec8058ca92164d035546f68ce4af93acb893369993d67c7056a10"