summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2024-01-01 15:49:57 +0800
committerKhem Raj <raj.khem@gmail.com>2024-01-08 19:54:40 -0800
commit5905144554d8d5f33b5439b42518584813a33134 (patch)
tree9f3fd438cd6c47dd42ae9bfb5fe5b8f7b0e475f1
parent03e1353cb72c7fa4362cf70c802ddd9de62ab186 (diff)
downloadmeta-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.patch6
-rw-r--r--meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch40
-rw-r--r--meta-networking/recipes-support/libldb/libldb/0003-Fix-pyext_PATTERN-for-cross-compilation.patch6
-rw-r--r--meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch4
-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 @@
1From 69c409195ede704ed7e9298ed4942cc70a52e099 Mon Sep 17 00:00:00 2001 1From 6a2f229e74804f70f4419b2a1e6843aab059e098 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
@@ -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
21diff --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
22index 7d2d855..01dcb56 100644 22index 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 @@
1From acd3985f9c428882f1b731a6f9ce5cb1a4a3a02c Mon Sep 17 00:00:00 2001 1From e949da7cb100c571631cd9bc7532e528c1f74820 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
@@ -6,7 +6,6 @@ Subject: [PATCH] ldb: Add configure options for packages
6Add configure options for the following packages: 6Add 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
19Signed-off-by: Changqing Li <changqing.li@windriver.com> 18Signed-off-by: Changqing Li <changqing.li@windriver.com>
20 19
21Rebase to 2.3.0 20Rebase to 2.3.0
21
22Rebase to 2.8.0
23Remove libaio option
22Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 24Signed-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
28diff --git a/lib/replace/wscript b/lib/replace/wscript 30diff --git a/lib/replace/wscript b/lib/replace/wscript
29index 5c2b750..a38baae 100644 31index 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;
152diff --git a/wscript b/wscript 144diff --git a/wscript b/wscript
153index 03076e6..5365408 100644 145index 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 @@
1From d9f4d5bbd3e58ca7fd7cbc4ab7656fe27bf4c346 Mon Sep 17 00:00:00 2001 1From 989addc0ca7be8233b413d42704c5dc900e85d81 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com> 2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 24 Nov 2021 13:33:35 +0800 3Date: Wed, 24 Nov 2021 13:33:35 +0800
4Subject: [PATCH] Fix pyext_PATTERN for cross compilation 4Subject: [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
44diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py 44diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py
45index a23bd01..af202e0 100644 45index 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 @@
1From cc86b8bdd45ca30bdf65a3b8b0960b27aeb34522 Mon Sep 17 00:00:00 2001 1From 226b75a0e9654fb3c0435256af5fed0178dc0d69 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 4Subject: [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
14diff --git a/wscript b/wscript 14diff --git a/wscript b/wscript
15index 7f14847..092da2d 100644 15index 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 ??= "\
22PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" 22PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl"
23PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" 23PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
24PACKAGECONFIG[ldap] = ",,openldap" 24PACKAGECONFIG[ldap] = ",,openldap"
25PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio"
26PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" 25PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd"
27PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" 26PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap"
28PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" 27PACKAGECONFIG[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
37SRC_URI[sha256sum] = "26ee72d647854e662d99643eb2b2d341655abf31f4990838d6650fb5cf9209c8" 36SRC_URI[sha256sum] = "358dca10fcd27207ac857a0d7f435a46dbc6cd1f7c10dbb840c1931bf1965f08"
38 37
39inherit pkgconfig waf-samba ptest 38inherit pkgconfig waf-samba ptest
40 39
41S = "${WORKDIR}/ldb-${PV}" 40S = "${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
45export WAF_NO_PREFORK="yes" 44export WAF_NO_PREFORK="yes"
46 45
47EXTRA_OECONF += "--disable-rpath \ 46EXTRA_OECONF += "--disable-rpath \