summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2018-11-29 10:53:37 +0800
committerKhem Raj <raj.khem@gmail.com>2018-11-29 18:44:56 -0800
commit35249c87b5acd824d251e1d774bbd195be828505 (patch)
tree248481357ca21237b6b32ef772d4ef2efde6275b
parent97055da2c6a13d5a2b891340e8eb4db8035c41cd (diff)
downloadmeta-openembedded-35249c87b5acd824d251e1d774bbd195be828505.tar.gz
autofs: upgrade to 5.1.5
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch19
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch36
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-do-not-check-for-modprobe.patch89
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch35
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch24
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs_5.1.5.bb (renamed from meta-networking/recipes-daemons/autofs/autofs_5.1.4.bb)10
6 files changed, 83 insertions, 130 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch
index f3f25f461..410827b33 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch
@@ -1,21 +1,26 @@
1From 6d24365f0828185fd1bb4d199209ca07eb95c41d Mon Sep 17 00:00:00 2001 1From a27217a5437da313d251b4a765bf7cb60ffaa62d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Fri, 24 Aug 2018 06:24:36 +0000 3Date: Tue, 27 Nov 2018 15:27:47 +0800
4Subject: [PATCH] Do not hardcode path for pkg.m4 4Subject: [PATCH] From 6d24365f0828185fd1bb4d199209ca07eb95c41d Mon Sep 17
5 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Fri, 24 Aug 2018
6 06:24:36 +0000 Subject: [PATCH] Do not hardcode path for pkg.m4
5 7
6Upstream-Status: Pending 8Upstream-Status: Pending
7 9
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12update patch to version 5.1.5
13Signed-off-by: Changqing Li <changqing.li@windriver.com>
9--- 14---
10 configure.in | 2 +- 15 configure.in | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-) 16 1 file changed, 1 insertion(+), 1 deletion(-)
12 17
13diff --git a/configure.in b/configure.in 18diff --git a/configure.in b/configure.in
14index 50aed15..f81767c 100644 19index 493b9f1..268d06b 100644
15--- a/configure.in 20--- a/configure.in
16+++ b/configure.in 21+++ b/configure.in
17@@ -12,7 +12,7 @@ define([AC_CACHE_SAVE], )dnl 22@@ -12,7 +12,7 @@ define([AC_CACHE_SAVE], )dnl
18 AC_INIT(.autofs-5.1.4) 23 AC_INIT(.autofs-5.1.5)
19 24
20 # for pkg-config macros 25 # for pkg-config macros
21-m4_include([/usr/share/aclocal/pkg.m4]) 26-m4_include([/usr/share/aclocal/pkg.m4])
@@ -24,5 +29,5 @@ index 50aed15..f81767c 100644
24 # 29 #
25 # autofs installs by default in /usr 30 # autofs installs by default in /usr
26-- 31--
271.9.1 322.7.4
28 33
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch b/meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch
index 469027aac..e7fdd10aa 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch
@@ -1,22 +1,26 @@
1From 557ca399f4b3a397f20bb147ec6dc4ab9732dd1e Mon Sep 17 00:00:00 2001 1From 096e33743158e0e8c04d60d01cc66e2945d79777 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Fri, 31 Mar 2017 19:12:10 -0700 3Date: Tue, 27 Nov 2018 16:52:35 +0800
4Subject: [PATCH] Replace __S_IEXEC with S_IEXEC 4Subject: [PATCH] From 557ca399f4b3a397f20bb147ec6dc4ab9732dd1e Mon Sep 17
5 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Fri, 31 Mar 2017
6 19:12:10 -0700 Subject: [PATCH] Replace __S_IEXEC with S_IEXEC
5 7
6S_IEXEC is portable 8S_IEXEC is portable
7 9
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 11
12update patch to version 5.1.5
13Signed-off-by: Changqing Li <changqing.li@windriver.com>
10--- 14---
11 daemon/lookup.c | 4 ++-- 15 daemon/lookup.c | 6 +++---
12 modules/lookup_multi.c | 2 +- 16 modules/lookup_multi.c | 2 +-
13 2 files changed, 3 insertions(+), 3 deletions(-) 17 2 files changed, 4 insertions(+), 4 deletions(-)
14 18
15diff --git a/daemon/lookup.c b/daemon/lookup.c 19diff --git a/daemon/lookup.c b/daemon/lookup.c
16index 201ccbb..d821db8 100644 20index 18df935..d35d484 100644
17--- a/daemon/lookup.c 21--- a/daemon/lookup.c
18+++ b/daemon/lookup.c 22+++ b/daemon/lookup.c
19@@ -366,7 +366,7 @@ static int read_file_source_instance(struct autofs_point *ap, struct map_source 23@@ -382,7 +382,7 @@ static int read_file_source_instance(struct autofs_point *ap, struct map_source
20 if (!S_ISREG(st.st_mode)) 24 if (!S_ISREG(st.st_mode))
21 return NSS_STATUS_NOTFOUND; 25 return NSS_STATUS_NOTFOUND;
22 26
@@ -25,7 +29,7 @@ index 201ccbb..d821db8 100644
25 type = src_prog; 29 type = src_prog;
26 else 30 else
27 type = src_file; 31 type = src_file;
28@@ -856,7 +856,7 @@ static int lookup_name_file_source_instance(struct autofs_point *ap, struct map_ 32@@ -942,7 +942,7 @@ static int lookup_name_file_source_instance(struct autofs_point *ap, struct map_
29 if (!S_ISREG(st.st_mode)) 33 if (!S_ISREG(st.st_mode))
30 return NSS_STATUS_NOTFOUND; 34 return NSS_STATUS_NOTFOUND;
31 35
@@ -34,8 +38,17 @@ index 201ccbb..d821db8 100644
34 type = src_prog; 38 type = src_prog;
35 else 39 else
36 type = src_file; 40 type = src_file;
41@@ -1118,7 +1118,7 @@ static struct map_source *lookup_get_map_source(struct master_mapent *entry)
42 if (!S_ISREG(st.st_mode))
43 return NULL;
44
45- if (st.st_mode & __S_IEXEC)
46+ if (st.st_mode & S_IEXEC)
47 type = "program";
48 else
49 type = "file";
37diff --git a/modules/lookup_multi.c b/modules/lookup_multi.c 50diff --git a/modules/lookup_multi.c b/modules/lookup_multi.c
38index fadd2ea..3ecda6d 100644 51index bb9f88c..cf109de 100644
39--- a/modules/lookup_multi.c 52--- a/modules/lookup_multi.c
40+++ b/modules/lookup_multi.c 53+++ b/modules/lookup_multi.c
41@@ -247,7 +247,7 @@ static struct lookup_mod *nss_open_lookup(const char *format, int argc, const ch 54@@ -247,7 +247,7 @@ static struct lookup_mod *nss_open_lookup(const char *format, int argc, const ch
@@ -47,3 +60,6 @@ index fadd2ea..3ecda6d 100644
47 type = src_prog; 60 type = src_prog;
48 else 61 else
49 type = src_file; 62 type = src_file;
63--
642.7.4
65
diff --git a/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-do-not-check-for-modprobe.patch b/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-do-not-check-for-modprobe.patch
deleted file mode 100644
index 1d5c3e1ee..000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-do-not-check-for-modprobe.patch
+++ /dev/null
@@ -1,89 +0,0 @@
1From 2cbc576ea1fbd1cbf4579d64b30e41d762084e7f Mon Sep 17 00:00:00 2001
2From: "yanjun.zhu" <yanjun.zhu@windriver.com>
3Date: Tue, 15 Jan 2013 12:45:44 +0800
4Subject: [PATCH] autofs: do not check for modprobe
5
6Description: Loading autofs module is #ifdef'ed in the source, so
7 there is no need to check for /proc (which is only used
8 to load module) or modprobe. Both modprobe and /proc
9 are always in the fixed location so there's no need to
10 check for these to start with.
11
12Upstream-Status: Backport [1]
13[1] http://www.spinics.net/lists/autofs/msg00139.html
14
15---
16 configure.in | 6 ------
17 daemon/module.c | 3 +++
18 include/automount.h | 11 +++--------
19 3 files changed, 6 insertions(+), 14 deletions(-)
20
21diff --git a/configure.in b/configure.in
22index 44a1c8b..b226236 100644
23--- a/configure.in
24+++ b/configure.in
25@@ -34,11 +34,6 @@ AC_MSG_CHECKING([for binaries in])
26 AC_MSG_RESULT([$searchpath])
27
28 #
29-# Make sure we have "/proc"
30-#
31-AF_LINUX_PROCFS()
32-
33-#
34 # Location of init.d directory?
35 #
36 AF_INIT_D()
37@@ -142,7 +137,6 @@ AF_PATH_INCLUDE(UMOUNT, umount, /bin/umount, $searchpath)
38 AF_PATH_INCLUDE(E2FSCK, fsck.ext2 e2fsck, , $searchpath)
39 AF_PATH_INCLUDE(E3FSCK, fsck.ext3 e3fsck, , $searchpath)
40 AF_PATH_INCLUDE(E4FSCK, fsck.ext4 e4fsck, , $searchpath)
41-AF_PATH_INCLUDE(MODPROBE, modprobe, , $searchpath)
42
43 AF_CHECK_PROG(LEX, flex lex, , $searchpath)
44 AF_CHECK_PROG(YACC, bison, , $searchpath)
45diff --git a/daemon/module.c b/daemon/module.c
46index bed8f7a..e41a98e 100644
47--- a/daemon/module.c
48+++ b/daemon/module.c
49@@ -19,6 +19,8 @@
50 #include "automount.h"
51 #include "nsswitch.h"
52
53+#if 0
54+/* see comment in daemon/automount.c around load_autofs4_module() call */
55 int load_autofs4_module(void)
56 {
57 FILE *fp;
58@@ -53,6 +55,7 @@ int load_autofs4_module(void)
59
60 return 1;
61 }
62+#endif
63
64 int open_lookup(const char *name, const char *err_prefix, const char *mapfmt,
65 int argc, const char *const *argv, struct lookup_mod **lookup)
66diff --git a/include/automount.h b/include/automount.h
67index c0f5fbf..cc336ad 100644
68--- a/include/automount.h
69+++ b/include/automount.h
70@@ -51,16 +51,11 @@
71 #error Failed to locate umount(8)!
72 #endif
73
74-#ifndef HAVE_MODPROBE
75-#error Failed to locate modprobe(8)!
76-#endif
77-
78-#ifndef HAVE_LINUX_PROCFS
79-#error Failed to verify existence of procfs filesystem!
80-#endif
81-
82+#if 0
83+/* see comment in daemon/automount.c around load_autofs4_module() call */
84 #define FS_MODULE_NAME "autofs4"
85 int load_autofs4_module(void);
86+#endif
87
88 /* The -s (sloppy) option to mount is good, if we have it... */
89
diff --git a/meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch b/meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch
index 1c7b11997..be750ab89 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch
@@ -1,7 +1,9 @@
1From e3ae56cf0bb4063c31295f45d04e3c504f4b6cc7 Mon Sep 17 00:00:00 2001 1From 602f9ca83c2bdbf511bcb178fcb4b9fc54da955f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 24 Apr 2017 20:41:25 -0700 3Date: Tue, 27 Nov 2018 15:20:46 +0800
4Subject: [PATCH] autofs: Upgrade to 5.1.2 release 4Subject: [PATCH] From e3ae56cf0bb4063c31295f45d04e3c504f4b6cc7 Mon Sep 17
5 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Mon, 24 Apr 2017
6 20:41:25 -0700 Subject: [PATCH] autofs: Upgrade to 5.1.2 release
5 7
6Use pkg-config first to look for external libnsl which is now 8Use pkg-config first to look for external libnsl which is now
7split out from glibc, if it does not exist then see if its provided 9split out from glibc, if it does not exist then see if its provided
@@ -9,20 +11,27 @@ by glibc itself.
9 11
10-Khem 12-Khem
11 13
14Upstream-Status: Pending
15
16update patch to version 5.1.5
17Signed-off-by: Changqing Li <changqing.li@windriver.com>
12--- 18---
13 configure.in | 2 +- 19 configure.in | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-) 20 1 file changed, 1 insertion(+), 1 deletion(-)
15 21
16diff --git a/configure.in b/configure.in 22diff --git a/configure.in b/configure.in
17index 9cf73b8..1016c71 100644 23index 76ecb40..493b9f1 100644
18--- a/configure.in 24--- a/configure.in
19+++ b/configure.in 25+++ b/configure.in
20@@ -186,7 +186,7 @@ fi 26@@ -238,7 +238,7 @@ AC_SUBST(LIBCLOCK_GETTIME)
21 #
22 # glibc/libc 6 new libraries
23 #
24-AC_CHECK_LIB(nsl, yp_match, LIBNSL="-lnsl")
25+PKG_CHECK_MODULES([NSL], [libnsl], [], [AC_CHECK_LIB([nsl],[yp_match],[LIBNSL="-lnsl"],[LIBNSL=""])])
26 AC_SUBST(LIBNSL)
27 27
28 AC_CHECK_LIB(resolv, res_query, LIBRESOLV="-lresolv") 28 PKG_CHECK_MODULES([NSL],[libnsl],,
29 [
30-AC_CHECK_LIB(nsl, yp_match, NSL_LIBS="-lnsl")
31+PKG_CHECK_MODULES([NSL], [libnsl], [], [AC_CHECK_LIB([nsl],[yp_match],[LIBNSL="-lnsl"],[LIBNSL=""])])
32 AC_SUBST(NSL_LIBS)
33 NSL_CFLAGS=""
34 ])
35--
362.7.4
37
diff --git a/meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch b/meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch
index 3d0c6bd71..d1f9f3493 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch
@@ -1,22 +1,27 @@
1From dabcbdae38038a8e4ad2c4286112381c407c5ce7 Mon Sep 17 00:00:00 2001 1From dd90a690f95569b999b8ac9ab57e834b3421dcbb Mon Sep 17 00:00:00 2001
2From: Roy Li <rongqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 19 Aug 2014 11:31:35 +0800 3Date: Tue, 27 Nov 2018 15:19:07 +0800
4Subject: [PATCH] using pkg-config to detect libxml-2.0 and krb5 4Subject: [PATCH] From dabcbdae38038a8e4ad2c4286112381c407c5ce7 Mon Sep 17
5 00:00:00 2001 From: Roy Li <rongqing.li@windriver.com> Date: Tue, 19 Aug 2014
6 11:31:35 +0800 Subject: [PATCH] using pkg-config to detect libxml-2.0 and
7 krb5
5 8
6Upstream-status: Pending 9Upstream-Status: Pending
7 10
8Signed-off-by: Roy Li <rongqing.li@windriver.com> 11Signed-off-by: Roy Li <rongqing.li@windriver.com>
9 12
13update patch to 5.1.5
14Signed-off-by: Changqing Li <changqing.li@windriver.com>
10--- 15---
11 configure.in | 16 ++++++++++++++-- 16 configure.in | 16 ++++++++++++++--
12 1 file changed, 14 insertions(+), 2 deletions(-) 17 1 file changed, 14 insertions(+), 2 deletions(-)
13 18
14diff --git a/configure.in b/configure.in 19diff --git a/configure.in b/configure.in
15index b226236..9cf73b8 100644 20index f5fbb35..76ecb40 100644
16--- a/configure.in 21--- a/configure.in
17+++ b/configure.in 22+++ b/configure.in
18@@ -162,8 +162,20 @@ if test x$enable_sloppy_mount = xyes; then 23@@ -211,8 +211,20 @@ fi
19 fi 24 AC_SUBST(ENABLE_FEDFS)
20 25
21 # LDAP SASL auth needs libxml and Kerberos 26 # LDAP SASL auth needs libxml and Kerberos
22-AF_CHECK_LIBXML() 27-AF_CHECK_LIBXML()
@@ -38,3 +43,6 @@ index b226236..9cf73b8 100644
38 43
39 AC_SEARCH_LIBS([versionsort],[]) 44 AC_SEARCH_LIBS([versionsort],[])
40 if test "$ac_cv_search_versionsort" = "no"; then 45 if test "$ac_cv_search_versionsort" = "no"; then
46--
472.7.4
48
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.4.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.5.bb
index 8a1bcad28..9e43549e8 100644
--- a/meta-networking/recipes-daemons/autofs/autofs_5.1.4.bb
+++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.5.bb
@@ -13,7 +13,6 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \
13 file://autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch \ 13 file://autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch \
14 file://no-bash.patch \ 14 file://no-bash.patch \
15 file://cross.patch \ 15 file://cross.patch \
16 file://autofs-5.0.7-do-not-check-for-modprobe.patch \
17 file://fix_disable_ldap.patch \ 16 file://fix_disable_ldap.patch \
18 file://autofs-5.0.7-fix-lib-deps.patch \ 17 file://autofs-5.0.7-fix-lib-deps.patch \
19 file://add-the-needed-stdarg.h.patch \ 18 file://add-the-needed-stdarg.h.patch \
@@ -27,8 +26,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \
27 file://0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch \ 26 file://0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch \
28 file://0001-Do-not-hardcode-path-for-pkg.m4.patch \ 27 file://0001-Do-not-hardcode-path-for-pkg.m4.patch \
29 " 28 "
30SRC_URI[md5sum] = "17bc9d371cf39d99f400ebadfc2289bb" 29
31SRC_URI[sha256sum] = "8d1c9964c8286ccb08262ad47c60bb6343492902def5399fd36d79a0ccb0e718" 30
31SRC_URI[md5sum] = "03b13168ec7bd66a6f2d5f6fea705eee"
32SRC_URI[sha256sum] = "86a8e56ea9d72bb53ff8cdfeefb5cafe983592c6b0178fb99c4a731e59879181"
32 33
33UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/" 34UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/"
34 35
@@ -62,6 +63,9 @@ do_configure_prepend () {
62} 63}
63 64
64do_install_append () { 65do_install_append () {
66 # samples have been removed from SUBDIRS from 5.1.5, need to install separately
67 oe_runmake 'DESTDIR=${D}' install_samples
68
65 if [ -d ${D}/run ]; then 69 if [ -d ${D}/run ]; then
66 rmdir ${D}/run 70 rmdir ${D}/run
67 fi 71 fi