diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2024-01-01 15:49:57 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-01-08 19:54:40 -0800 |
commit | 5905144554d8d5f33b5439b42518584813a33134 (patch) | |
tree | 9f3fd438cd6c47dd42ae9bfb5fe5b8f7b0e475f1 | |
parent | 03e1353cb72c7fa4362cf70c802ddd9de62ab186 (diff) | |
download | meta-openembedded-5905144554d8d5f33b5439b42518584813a33134.tar.gz |
libldb: upgrade 2.7.2 -> 2.8.0
* Remove PACKAGECONFIG[libaio] as libaio is no longer required by
libldb.
* Refresh patches.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch | 6 | ||||
-rw-r--r-- | meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch | 40 | ||||
-rw-r--r-- | meta-networking/recipes-support/libldb/libldb/0003-Fix-pyext_PATTERN-for-cross-compilation.patch | 6 | ||||
-rw-r--r-- | meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch | 4 | ||||
-rw-r--r-- | meta-networking/recipes-support/libldb/libldb_2.8.0.bb (renamed from meta-networking/recipes-support/libldb/libldb_2.7.2.bb) | 7 |
5 files changed, 27 insertions, 36 deletions
diff --git a/meta-networking/recipes-support/libldb/libldb/0001-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 e215242371..09c84b4405 100644 --- a/meta-networking/recipes-support/libldb/libldb/0001-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 @@ | |||
1 | From 69c409195ede704ed7e9298ed4942cc70a52e099 Mon Sep 17 00:00:00 2001 | 1 | From 6a2f229e74804f70f4419b2a1e6843aab059e098 Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Tue, 25 Jun 2019 14:25:08 +0800 | 3 | Date: Tue, 25 Jun 2019 14:25:08 +0800 |
4 | Subject: [PATCH] do not import target module while cross compile | 4 | Subject: [PATCH] do not import target module while cross compile |
@@ -19,7 +19,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
19 | 1 file changed, 19 insertions(+), 8 deletions(-) | 19 | 1 file changed, 19 insertions(+), 8 deletions(-) |
20 | 20 | ||
21 | diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py | 21 | diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py |
22 | index 7d2d855..01dcb56 100644 | 22 | index 2300565..26d9e8c 100644 |
23 | --- a/buildtools/wafsamba/samba_bundled.py | 23 | --- a/buildtools/wafsamba/samba_bundled.py |
24 | +++ b/buildtools/wafsamba/samba_bundled.py | 24 | +++ b/buildtools/wafsamba/samba_bundled.py |
25 | @@ -4,6 +4,7 @@ import sys | 25 | @@ -4,6 +4,7 @@ import sys |
@@ -30,7 +30,7 @@ index 7d2d855..01dcb56 100644 | |||
30 | 30 | ||
31 | def PRIVATE_NAME(bld, name): | 31 | def PRIVATE_NAME(bld, name): |
32 | '''possibly rename a library to include a bundled extension''' | 32 | '''possibly rename a library to include a bundled extension''' |
33 | @@ -241,17 +242,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): | 33 | @@ -245,17 +246,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): |
34 | # versions | 34 | # versions |
35 | minversion = minimum_library_version(conf, libname, minversion) | 35 | minversion = minimum_library_version(conf, libname, minversion) |
36 | 36 | ||
diff --git a/meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch b/meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch index 4b74a877b3..15e093fd68 100644 --- a/meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch +++ b/meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From acd3985f9c428882f1b731a6f9ce5cb1a4a3a02c Mon Sep 17 00:00:00 2001 | 1 | From e949da7cb100c571631cd9bc7532e528c1f74820 Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Mon, 1 Jul 2019 16:14:16 +0800 | 3 | Date: Mon, 1 Jul 2019 16:14:16 +0800 |
4 | Subject: [PATCH] ldb: Add configure options for packages | 4 | Subject: [PATCH] ldb: Add configure options for packages |
@@ -6,7 +6,6 @@ Subject: [PATCH] ldb: Add configure options for packages | |||
6 | Add configure options for the following packages: | 6 | Add configure options for the following packages: |
7 | - acl | 7 | - acl |
8 | - attr | 8 | - attr |
9 | - libaio | ||
10 | - libbsd | 9 | - libbsd |
11 | - libcap | 10 | - libcap |
12 | - valgrind | 11 | - valgrind |
@@ -19,17 +18,20 @@ upgrade to version 1.5.4 | |||
19 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 18 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
20 | 19 | ||
21 | Rebase to 2.3.0 | 20 | Rebase to 2.3.0 |
21 | |||
22 | Rebase to 2.8.0 | ||
23 | Remove libaio option | ||
22 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | 24 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
23 | --- | 25 | --- |
24 | lib/replace/wscript | 90 +++++++++++++++++++++++++++++++++++---------- | 26 | lib/replace/wscript | 80 +++++++++++++++++++++++++++++++++------------ |
25 | wscript | 8 ++++ | 27 | wscript | 8 +++++ |
26 | 2 files changed, 78 insertions(+), 20 deletions(-) | 28 | 2 files changed, 68 insertions(+), 20 deletions(-) |
27 | 29 | ||
28 | diff --git a/lib/replace/wscript b/lib/replace/wscript | 30 | diff --git a/lib/replace/wscript b/lib/replace/wscript |
29 | index 5c2b750..a38baae 100644 | 31 | index 37d7759..d0d6bb0 100644 |
30 | --- a/lib/replace/wscript | 32 | --- a/lib/replace/wscript |
31 | +++ b/lib/replace/wscript | 33 | +++ b/lib/replace/wscript |
32 | @@ -25,6 +25,41 @@ def options(opt): | 34 | @@ -25,6 +25,34 @@ def options(opt): |
33 | opt.PRIVATE_EXTENSION_DEFAULT('') | 35 | opt.PRIVATE_EXTENSION_DEFAULT('') |
34 | opt.RECURSE('buildtools/wafsamba') | 36 | opt.RECURSE('buildtools/wafsamba') |
35 | 37 | ||
@@ -47,13 +49,6 @@ index 5c2b750..a38baae 100644 | |||
47 | + help=("Disable use of attr"), | 49 | + help=("Disable use of attr"), |
48 | + action="store_false", dest='enable_attr', default=False) | 50 | + action="store_false", dest='enable_attr', default=False) |
49 | + | 51 | + |
50 | + opt.add_option('--with-libaio', | ||
51 | + help=("Enable use of libaio"), | ||
52 | + action="store_true", dest='enable_libaio') | ||
53 | + opt.add_option('--without-libaio', | ||
54 | + help=("Disable use of libaio"), | ||
55 | + action="store_false", dest='enable_libaio', default=False) | ||
56 | + | ||
57 | + opt.add_option('--with-libbsd', | 52 | + opt.add_option('--with-libbsd', |
58 | + help=("Enable use of libbsd"), | 53 | + help=("Enable use of libbsd"), |
59 | + action="store_true", dest='enable_libbsd') | 54 | + action="store_true", dest='enable_libbsd') |
@@ -71,7 +66,7 @@ index 5c2b750..a38baae 100644 | |||
71 | @Utils.run_once | 66 | @Utils.run_once |
72 | def configure(conf): | 67 | def configure(conf): |
73 | conf.RECURSE('buildtools/wafsamba') | 68 | conf.RECURSE('buildtools/wafsamba') |
74 | @@ -38,12 +73,25 @@ def configure(conf): | 69 | @@ -38,12 +66,22 @@ def configure(conf): |
75 | conf.DEFINE('HAVE_LIBREPLACE', 1) | 70 | conf.DEFINE('HAVE_LIBREPLACE', 1) |
76 | conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) | 71 | conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) |
77 | 72 | ||
@@ -92,28 +87,25 @@ index 5c2b750..a38baae 100644 | |||
92 | + if Options.options.enable_attr: | 87 | + if Options.options.enable_attr: |
93 | + conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h') | 88 | + conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h') |
94 | + | 89 | + |
95 | + if Options.options.enable_libaio: | ||
96 | + conf.CHECK_HEADERS('libaio.h') | ||
97 | + | ||
98 | + if Options.options.enable_libcap: | 90 | + if Options.options.enable_libcap: |
99 | + conf.CHECK_HEADERS('sys/capability.h') | 91 | + conf.CHECK_HEADERS('sys/capability.h') |
100 | + | 92 | + |
101 | conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') | 93 | conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') |
102 | conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') | 94 | 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/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h') | 95 | conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h') |
104 | @@ -113,8 +161,9 @@ def configure(conf): | 96 | @@ -113,8 +151,9 @@ def configure(conf): |
105 | conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') | 97 | conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') |
106 | conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') | 98 | conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') |
107 | 99 | ||
108 | - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') | 100 | - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') |
109 | - conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') | 101 | - conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') |
110 | + if Options.options.enable_valgrind: | 102 | + if Options.options.enable_valgrind: |
111 | + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') | 103 | + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') |
112 | + conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') | 104 | + conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') |
113 | conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') | 105 | conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') |
114 | conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') | 106 | conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') |
115 | conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') | 107 | conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') |
116 | @@ -436,20 +485,21 @@ def configure(conf): | 108 | @@ -443,20 +482,21 @@ def configure(conf): |
117 | 109 | ||
118 | strlcpy_in_bsd = False | 110 | strlcpy_in_bsd = False |
119 | 111 | ||
@@ -131,7 +123,7 @@ index 5c2b750..a38baae 100644 | |||
131 | - | 123 | - |
132 | - if not conf.CHECK_FUNCS('closefrom'): | 124 | - if not conf.CHECK_FUNCS('closefrom'): |
133 | - conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h') | 125 | - conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h') |
134 | + if Options.options.enable_libbsd: | 126 | + if Options.options.enable_libbsd: |
135 | + # libbsd on some platforms provides strlcpy and strlcat | 127 | + # libbsd on some platforms provides strlcpy and strlcat |
136 | + if not conf.CHECK_FUNCS('strlcpy strlcat'): | 128 | + if not conf.CHECK_FUNCS('strlcpy strlcat'): |
137 | + if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', | 129 | + if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', |
@@ -150,7 +142,7 @@ index 5c2b750..a38baae 100644 | |||
150 | conf.CHECK_CODE(''' | 142 | conf.CHECK_CODE(''' |
151 | struct ucred cred; | 143 | struct ucred cred; |
152 | diff --git a/wscript b/wscript | 144 | diff --git a/wscript b/wscript |
153 | index 03076e6..5365408 100644 | 145 | index ed5d45f..6bb0b37 100644 |
154 | --- a/wscript | 146 | --- a/wscript |
155 | +++ b/wscript | 147 | +++ b/wscript |
156 | @@ -40,6 +40,14 @@ def options(opt): | 148 | @@ -40,6 +40,14 @@ def options(opt): |
diff --git a/meta-networking/recipes-support/libldb/libldb/0003-Fix-pyext_PATTERN-for-cross-compilation.patch b/meta-networking/recipes-support/libldb/libldb/0003-Fix-pyext_PATTERN-for-cross-compilation.patch index acd521e69f..71934795b1 100644 --- a/meta-networking/recipes-support/libldb/libldb/0003-Fix-pyext_PATTERN-for-cross-compilation.patch +++ b/meta-networking/recipes-support/libldb/libldb/0003-Fix-pyext_PATTERN-for-cross-compilation.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d9f4d5bbd3e58ca7fd7cbc4ab7656fe27bf4c346 Mon Sep 17 00:00:00 2001 | 1 | From 989addc0ca7be8233b413d42704c5dc900e85d81 Mon Sep 17 00:00:00 2001 |
2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
3 | Date: Wed, 24 Nov 2021 13:33:35 +0800 | 3 | Date: Wed, 24 Nov 2021 13:33:35 +0800 |
4 | Subject: [PATCH] Fix pyext_PATTERN for cross compilation | 4 | Subject: [PATCH] Fix pyext_PATTERN for cross compilation |
@@ -42,10 +42,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
42 | 1 file changed, 1 insertion(+), 1 deletion(-) | 42 | 1 file changed, 1 insertion(+), 1 deletion(-) |
43 | 43 | ||
44 | diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py | 44 | diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py |
45 | index a23bd01..af202e0 100644 | 45 | index b2dd1a9..2bd3545 100644 |
46 | --- a/third_party/waf/waflib/Tools/python.py | 46 | --- a/third_party/waf/waflib/Tools/python.py |
47 | +++ b/third_party/waf/waflib/Tools/python.py | 47 | +++ b/third_party/waf/waflib/Tools/python.py |
48 | @@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): | 48 | @@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'): |
49 | x = 'MACOSX_DEPLOYMENT_TARGET' | 49 | x = 'MACOSX_DEPLOYMENT_TARGET' |
50 | if dct[x]: | 50 | if dct[x]: |
51 | env[x] = conf.environ[x] = str(dct[x]) | 51 | env[x] = conf.environ[x] = str(dct[x]) |
diff --git a/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch b/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch index 87909c952a..7e60b53051 100644 --- a/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch +++ b/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From cc86b8bdd45ca30bdf65a3b8b0960b27aeb34522 Mon Sep 17 00:00:00 2001 | 1 | From 226b75a0e9654fb3c0435256af5fed0178dc0d69 Mon Sep 17 00:00:00 2001 |
2 | From: Jens Rehsack <rehsack@gmail.com> | 2 | From: Jens Rehsack <rehsack@gmail.com> |
3 | Date: Thu, 19 Nov 2015 20:45:56 +0100 | 3 | Date: Thu, 19 Nov 2015 20:45:56 +0100 |
4 | Subject: [PATCH] avoid openldap unless wanted | 4 | Subject: [PATCH] avoid openldap unless wanted |
@@ -12,7 +12,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
12 | 1 file changed, 1 insertion(+), 3 deletions(-) | 12 | 1 file changed, 1 insertion(+), 3 deletions(-) |
13 | 13 | ||
14 | diff --git a/wscript b/wscript | 14 | diff --git a/wscript b/wscript |
15 | index 7f14847..092da2d 100644 | 15 | index 6bb0b37..8ee25b1 100644 |
16 | --- a/wscript | 16 | --- a/wscript |
17 | +++ b/wscript | 17 | +++ b/wscript |
18 | @@ -154,9 +154,7 @@ def configure(conf): | 18 | @@ -154,9 +154,7 @@ def configure(conf): |
diff --git a/meta-networking/recipes-support/libldb/libldb_2.7.2.bb b/meta-networking/recipes-support/libldb/libldb_2.8.0.bb index c4b7602bf8..ec56eb0205 100644 --- a/meta-networking/recipes-support/libldb/libldb_2.7.2.bb +++ b/meta-networking/recipes-support/libldb/libldb_2.8.0.bb | |||
@@ -22,7 +22,6 @@ PACKAGECONFIG ??= "\ | |||
22 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" | 22 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
23 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | 23 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
24 | PACKAGECONFIG[ldap] = ",,openldap" | 24 | PACKAGECONFIG[ldap] = ",,openldap" |
25 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" | ||
26 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" | 25 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
27 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" | 26 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
28 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" | 27 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
@@ -34,14 +33,14 @@ LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9ada | |||
34 | file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ | 33 | file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ |
35 | file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" | 34 | file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" |
36 | 35 | ||
37 | SRC_URI[sha256sum] = "26ee72d647854e662d99643eb2b2d341655abf31f4990838d6650fb5cf9209c8" | 36 | SRC_URI[sha256sum] = "358dca10fcd27207ac857a0d7f435a46dbc6cd1f7c10dbb840c1931bf1965f08" |
38 | 37 | ||
39 | inherit pkgconfig waf-samba ptest | 38 | inherit pkgconfig waf-samba ptest |
40 | 39 | ||
41 | S = "${WORKDIR}/ldb-${PV}" | 40 | S = "${WORKDIR}/ldb-${PV}" |
42 | 41 | ||
43 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen | 42 | # Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
44 | #to cross Popen | 43 | # to cross Popen |
45 | export WAF_NO_PREFORK="yes" | 44 | export WAF_NO_PREFORK="yes" |
46 | 45 | ||
47 | EXTRA_OECONF += "--disable-rpath \ | 46 | EXTRA_OECONF += "--disable-rpath \ |