summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch (renamed from meta-networking/recipes-support/libldb/libldb/do-not-import-target-module-while-cross-compile.patch)12
-rw-r--r--meta-networking/recipes-support/libldb/libldb/0001-waf-add-support-of-cross_compile.patch62
-rw-r--r--meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch (renamed from meta-networking/recipes-support/libldb/libldb/options-1.5.4.patch)38
-rw-r--r--meta-networking/recipes-support/libldb/libldb/0003-avoid-openldap-unless-wanted.patch (renamed from meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch)13
-rw-r--r--meta-networking/recipes-support/libldb/libldb/libldb-fix-musl-libc-unkown-type-error.patch31
-rw-r--r--meta-networking/recipes-support/libldb/libldb_2.3.0.bb (renamed from meta-networking/recipes-support/libldb/libldb_1.5.8.bb)12
6 files changed, 43 insertions, 125 deletions
diff --git a/meta-networking/recipes-support/libldb/libldb/do-not-import-target-module-while-cross-compile.patch b/meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch
index 3f2921ed33..74f8d8ad0b 100644
--- a/meta-networking/recipes-support/libldb/libldb/do-not-import-target-module-while-cross-compile.patch
+++ b/meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch
@@ -1,4 +1,4 @@
1From cc0576405803bcae45ee353c4333c449cead9207 Mon Sep 17 00:00:00 2001 1From 00500909ebb0f51dd3b4e90c665f07158e7fe255 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 25 Jun 2019 14:25:08 +0800 3Date: Tue, 25 Jun 2019 14:25:08 +0800
4Subject: [PATCH] do not import target module while cross compile 4Subject: [PATCH] do not import target module while cross compile
@@ -10,12 +10,16 @@ Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
10 10
11update to version 4.10.5, and switch to python3 11update to version 4.10.5, and switch to python3
12Signed-off-by: Changqing Li <changqing.li@windriver.com> 12Signed-off-by: Changqing Li <changqing.li@windriver.com>
13
14Upstream-Status: Inappropriate [embedded specific]
15
16Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
13--- 17---
14 buildtools/wafsamba/samba_bundled.py | 27 +++++++++++++++++++-------- 18 buildtools/wafsamba/samba_bundled.py | 27 +++++++++++++++++++--------
15 1 file changed, 18 insertions(+), 8 deletions(-) 19 1 file changed, 19 insertions(+), 8 deletions(-)
16 20
17diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py 21diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py
18index 60ce7da..5468a36 100644 22index 5f080dd..cdc115e 100644
19--- a/buildtools/wafsamba/samba_bundled.py 23--- a/buildtools/wafsamba/samba_bundled.py
20+++ b/buildtools/wafsamba/samba_bundled.py 24+++ b/buildtools/wafsamba/samba_bundled.py
21@@ -4,6 +4,7 @@ import sys 25@@ -4,6 +4,7 @@ import sys
@@ -63,5 +67,5 @@ index 60ce7da..5468a36 100644
63 Logs.error('ERROR: Python module %s of version %s not found, and bundling disabled' % (libname, minversion)) 67 Logs.error('ERROR: Python module %s of version %s not found, and bundling disabled' % (libname, minversion))
64 sys.exit(1) 68 sys.exit(1)
65-- 69--
662.7.4 702.17.1
67 71
diff --git a/meta-networking/recipes-support/libldb/libldb/0001-waf-add-support-of-cross_compile.patch b/meta-networking/recipes-support/libldb/libldb/0001-waf-add-support-of-cross_compile.patch
deleted file mode 100644
index 45c5acabb3..0000000000
--- a/meta-networking/recipes-support/libldb/libldb/0001-waf-add-support-of-cross_compile.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From 4b8463ff43f8983a706b181c5292491f9f954be1 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Fri, 25 Jan 2019 15:00:59 +0800
4Subject: [PATCH] waf: add support of cross_compile
5
6After upgrade, waf build system also upgraded.
7
8on 1.5.19, for cross_compile, subprocess.Popen is set to be
9samba_cross.cross_Popen, which will not execute testprog on
10host, but only read result from cross-answers.txt which is
11passed by option --cross-answer
12
13part of old code:
14 args = Utils.to_list(kw.get('exec_args', []))
15 proc = Utils.pproc.Popen([lastprog] + args, stdout=Utils.pproc.PIPE, stderr=Utils.pproc.PIPE)
16
17but on new version, exec_args is not used and cause do_configure
18failed with Exec format error
19
20fixed by append cross anser related args to cmd
21
22Upstream-Status: Submitted [https://gitlab.com/samba-team/samba/merge_requests/211]
23
24Signed-off-by: Changqing Li <changqing.li@windriver.com>
25---
26 third_party/waf/waflib/Tools/c_config.py | 11 ++++++-----
27 1 file changed, 6 insertions(+), 5 deletions(-)
28
29diff --git a/third_party/waf/waflib/Tools/c_config.py b/third_party/waf/waflib/Tools/c_config.py
30index 7608215..767cf33 100644
31--- a/third_party/waf/waflib/Tools/c_config.py
32+++ b/third_party/waf/waflib/Tools/c_config.py
33@@ -660,20 +660,21 @@ class test_exec(Task.Task):
34 """
35 color = 'PINK'
36 def run(self):
37+ args = self.generator.bld.kw.get('exec_args', [])
38 if getattr(self.generator, 'rpath', None):
39 if getattr(self.generator, 'define_ret', False):
40- self.generator.bld.retval = self.generator.bld.cmd_and_log([self.inputs[0].abspath()])
41- else:
42- self.generator.bld.retval = self.generator.bld.exec_command([self.inputs[0].abspath()])
43+ self.generator.bld.retval = self.generator.bld.cmd_and_log([self.inputs[0].abspath()] + args)
44+ else:
45+ self.generator.bld.retval = self.generator.bld.exec_command([self.inputs[0].abspath()] + args)
46 else:
47 env = self.env.env or {}
48 env.update(dict(os.environ))
49 for var in ('LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH', 'PATH'):
50 env[var] = self.inputs[0].parent.abspath() + os.path.pathsep + env.get(var, '')
51 if getattr(self.generator, 'define_ret', False):
52- self.generator.bld.retval = self.generator.bld.cmd_and_log([self.inputs[0].abspath()], env=env)
53+ self.generator.bld.retval = self.generator.bld.cmd_and_log([self.inputs[0].abspath()] + args, env=env)
54 else:
55- self.generator.bld.retval = self.generator.bld.exec_command([self.inputs[0].abspath()], env=env)
56+ self.generator.bld.retval = self.generator.bld.exec_command([self.inputs[0].abspath()] + args, env=env)
57
58 @feature('test_exec')
59 @after_method('apply_link')
60--
612.7.4
62
diff --git a/meta-networking/recipes-support/libldb/libldb/options-1.5.4.patch b/meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch
index bffd0653b7..a55d46bf75 100644
--- a/meta-networking/recipes-support/libldb/libldb/options-1.5.4.patch
+++ b/meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch
@@ -1,4 +1,4 @@
1From 0841c3ed69c388251c1aeae63f2c3813555a54f6 Mon Sep 17 00:00:00 2001 1From 100d16aaa6fe9a28a5ba77b2de2bde81a3fa3dac Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 1 Jul 2019 16:14:16 +0800 3Date: Mon, 1 Jul 2019 16:14:16 +0800
4Subject: [PATCH] ldb: Add configure options for packages 4Subject: [PATCH] ldb: Add configure options for packages
@@ -17,20 +17,22 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
17 17
18upgrade to version 1.5.4 18upgrade to version 1.5.4
19Signed-off-by: Changqing Li <changqing.li@windriver.com> 19Signed-off-by: Changqing Li <changqing.li@windriver.com>
20
21Rebase to 2.3.0
22Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
20--- 23---
21 lib/replace/wscript | 92 +++++++++++++++++++++++++++++++++++++++++------------ 24 lib/replace/wscript | 90 +++++++++++++++++++++++++++++++++++----------
22 wscript | 8 +++++ 25 wscript | 8 ++++
23 2 files changed, 79 insertions(+), 21 deletions(-) 26 2 files changed, 78 insertions(+), 20 deletions(-)
24 27
25diff --git a/lib/replace/wscript b/lib/replace/wscript 28diff --git a/lib/replace/wscript b/lib/replace/wscript
26index a7fd25d..ad26041 100644 29index 2c856b6..36b696d 100644
27--- a/lib/replace/wscript 30--- a/lib/replace/wscript
28+++ b/lib/replace/wscript 31+++ b/lib/replace/wscript
29@@ -24,6 +24,41 @@ def options(opt): 32@@ -25,6 +25,41 @@ def options(opt):
30 opt.BUILTIN_DEFAULT('NONE')
31 opt.PRIVATE_EXTENSION_DEFAULT('') 33 opt.PRIVATE_EXTENSION_DEFAULT('')
32 opt.RECURSE('buildtools/wafsamba') 34 opt.RECURSE('buildtools/wafsamba')
33+ 35
34+ opt.add_option('--with-acl', 36+ opt.add_option('--with-acl',
35+ help=("Enable use of acl"), 37+ help=("Enable use of acl"),
36+ action="store_true", dest='enable_acl') 38+ action="store_true", dest='enable_acl')
@@ -65,10 +67,11 @@ index a7fd25d..ad26041 100644
65+ opt.add_option('--without-libcap', 67+ opt.add_option('--without-libcap',
66+ help=("Disable use of libcap"), 68+ help=("Disable use of libcap"),
67+ action="store_false", dest='enable_libcap', default=False) 69+ action="store_false", dest='enable_libcap', default=False)
68 70+
69 @Utils.run_once 71 @Utils.run_once
70 def configure(conf): 72 def configure(conf):
71@@ -34,12 +69,25 @@ def configure(conf): 73 conf.RECURSE('buildtools/wafsamba')
74@@ -35,12 +70,25 @@ def configure(conf):
72 conf.DEFINE('HAVE_LIBREPLACE', 1) 75 conf.DEFINE('HAVE_LIBREPLACE', 1)
73 conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) 76 conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
74 77
@@ -77,10 +80,9 @@ index a7fd25d..ad26041 100644
77+ conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h') 80+ conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h')
78+ conf.CHECK_HEADERS('compat.h ctype.h dustat.h') 81+ conf.CHECK_HEADERS('compat.h ctype.h dustat.h')
79 conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h') 82 conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h')
80- conf.CHECK_HEADERS('libaio.h locale.h ndir.h pwd.h') 83 conf.CHECK_HEADERS('locale.h ndir.h pwd.h')
81- conf.CHECK_HEADERS('shadow.h sys/acl.h') 84- conf.CHECK_HEADERS('shadow.h sys/acl.h')
82- conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h') 85- conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h')
83+ conf.CHECK_HEADERS('locale.h ndir.h pwd.h')
84+ conf.CHECK_HEADERS('shadow.h') 86+ conf.CHECK_HEADERS('shadow.h')
85+ conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h') 87+ conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h')
86+ 88+
@@ -97,9 +99,9 @@ index a7fd25d..ad26041 100644
97+ conf.CHECK_HEADERS('sys/capability.h') 99+ conf.CHECK_HEADERS('sys/capability.h')
98+ 100+
99 conf.CHECK_HEADERS('port.h') 101 conf.CHECK_HEADERS('port.h')
100 conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h sys/fs/vx/quota.h') 102 conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h')
101 conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') 103 conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h')
102@@ -110,8 +158,9 @@ def configure(conf): 104@@ -121,8 +169,9 @@ def configure(conf):
103 conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') 105 conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h')
104 conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') 106 conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h')
105 107
@@ -111,7 +113,7 @@ index a7fd25d..ad26041 100644
111 conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') 113 conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h')
112 conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') 114 conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h')
113 conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') 115 conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h')
114@@ -380,20 +429,21 @@ def configure(conf): 116@@ -418,20 +467,21 @@ def configure(conf):
115 117
116 strlcpy_in_bsd = False 118 strlcpy_in_bsd = False
117 119
@@ -148,10 +150,10 @@ index a7fd25d..ad26041 100644
148 conf.CHECK_CODE(''' 150 conf.CHECK_CODE('''
149 struct ucred cred; 151 struct ucred cred;
150diff --git a/wscript b/wscript 152diff --git a/wscript b/wscript
151index d3402a7..d4e0ce1 100644 153index bf6129b..722fdf6 100644
152--- a/wscript 154--- a/wscript
153+++ b/wscript 155+++ b/wscript
154@@ -38,6 +38,14 @@ def options(opt): 156@@ -39,6 +39,14 @@ def options(opt):
155 help='disable new LMDB backend for LDB', 157 help='disable new LMDB backend for LDB',
156 action='store_true', dest='without_ldb_lmdb', default=False) 158 action='store_true', dest='without_ldb_lmdb', default=False)
157 159
@@ -167,5 +169,5 @@ index d3402a7..d4e0ce1 100644
167 def configure(conf): 169 def configure(conf):
168 conf.RECURSE('lib/tdb') 170 conf.RECURSE('lib/tdb')
169-- 171--
1702.7.4 1722.17.1
171 173
diff --git a/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch b/meta-networking/recipes-support/libldb/libldb/0003-avoid-openldap-unless-wanted.patch
index b30afeee20..dd1246538c 100644
--- a/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch
+++ b/meta-networking/recipes-support/libldb/libldb/0003-avoid-openldap-unless-wanted.patch
@@ -1,16 +1,20 @@
1From 63570b98ef63c91d8508478fcbe6b89c90c8398f Mon Sep 17 00:00:00 2001 1From 1f24231095a59debcf25d0e3309dc5d1056a7fad Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 19 Nov 2015 20:45:56 +0100 3Date: Thu, 19 Nov 2015 20:45:56 +0100
4Subject: [PATCH] avoid openldap unless wanted
4 5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
5--- 9---
6 wscript | 4 +--- 10 wscript | 4 +---
7 1 file changed, 1 insertion(+), 3 deletions(-) 11 1 file changed, 1 insertion(+), 3 deletions(-)
8 12
9diff --git a/wscript b/wscript 13diff --git a/wscript b/wscript
10index e7c05d2..1633593 100644 14index 722fdf6..22700d5 100644
11--- a/wscript 15--- a/wscript
12+++ b/wscript 16+++ b/wscript
13@@ -161,9 +161,7 @@ def configure(conf): 17@@ -153,9 +153,7 @@ def configure(conf):
14 if conf.env.standalone_ldb: 18 if conf.env.standalone_ldb:
15 conf.CHECK_XSLTPROC_MANPAGES() 19 conf.CHECK_XSLTPROC_MANPAGES()
16 20
@@ -21,3 +25,6 @@ index e7c05d2..1633593 100644
21 25
22 # we don't want any libraries or modules to rely on runtime 26 # we don't want any libraries or modules to rely on runtime
23 # resolution of symbols 27 # resolution of symbols
28--
292.17.1
30
diff --git a/meta-networking/recipes-support/libldb/libldb/libldb-fix-musl-libc-unkown-type-error.patch b/meta-networking/recipes-support/libldb/libldb/libldb-fix-musl-libc-unkown-type-error.patch
deleted file mode 100644
index c0e7e8907d..0000000000
--- a/meta-networking/recipes-support/libldb/libldb/libldb-fix-musl-libc-unkown-type-error.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From d90534469c5c43bf2a97e5698a5ddb4b7471f92a Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 24 Jul 2018 10:53:16 +0800
4Subject: [PATCH] libldb: fix musl libc unkoown type error
5
6tevent.h:1440:8: error: unknown type name 'pid_t'; did you mean 'div_t'?
7 pid_t *pid,
8 ^~~~~
9 div_t
10
11Signed-off-by: Changqing Li <changqing.li@windriver.com>
12---
13 lib/tevent/tevent.h | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h
17index aa6fe0d..2572696 100644
18--- a/lib/tevent/tevent.h
19+++ b/lib/tevent/tevent.h
20@@ -32,6 +32,8 @@
21 #include <talloc.h>
22 #include <sys/time.h>
23 #include <stdbool.h>
24+#include <sys/stat.h>
25+#include <sys/types.h>
26
27 struct tevent_context;
28 struct tevent_ops;
29--
302.7.4
31
diff --git a/meta-networking/recipes-support/libldb/libldb_1.5.8.bb b/meta-networking/recipes-support/libldb/libldb_2.3.0.bb
index 199db797a1..3731c260b6 100644
--- a/meta-networking/recipes-support/libldb/libldb_1.5.8.bb
+++ b/meta-networking/recipes-support/libldb/libldb_2.3.0.bb
@@ -7,11 +7,9 @@ DEPENDS += "libtdb libtalloc libtevent popt"
7RDEPENDS_pyldb += "python3" 7RDEPENDS_pyldb += "python3"
8 8
9SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ 9SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
10 file://do-not-import-target-module-while-cross-compile.patch \ 10 file://0001-do-not-import-target-module-while-cross-compile.patch \
11 file://libldb-fix-musl-libc-unkown-type-error.patch \ 11 file://0002-ldb-Add-configure-options-for-packages.patch \
12 file://libldb-fix-musl-libc-conflict-type-error.patch \ 12 file://libldb-fix-musl-libc-conflict-type-error.patch \
13 file://0001-waf-add-support-of-cross_compile.patch \
14 file://options-1.5.4.patch \
15 " 13 "
16 14
17PACKAGECONFIG ??= "\ 15PACKAGECONFIG ??= "\
@@ -27,14 +25,14 @@ PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap"
27PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" 25PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
28PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb," 26PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb,"
29 27
30SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'ldap', '', 'file://avoid-openldap-unless-wanted.patch', d)}" 28SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'ldap', '', 'file://0003-avoid-openldap-unless-wanted.patch', d)}"
31 29
32LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9adade \ 30LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9adade \
33 file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ 31 file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \
34 file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" 32 file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42"
35 33
36SRC_URI[md5sum] = "d9b4bea8b48cd4c4d0c492e65881164b" 34SRC_URI[md5sum] = "fe4b1f17f77e2ea52b4e1320d927844c"
37SRC_URI[sha256sum] = "ddf7f770643e0a0dda60f2818913f883caeed37fa1e8d6eda0dfe9588c1e3a83" 35SRC_URI[sha256sum] = "a4d308b3d0922ef01f3661a69ebc373e772374defa76cf0979ad21b21f91922d"
38 36
39inherit waf-samba 37inherit waf-samba
40 38