summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2023-01-01 15:27:36 +0800
committerKhem Raj <raj.khem@gmail.com>2023-01-01 02:23:29 -0800
commitcf53340f000b770faba44560e81a3d1e15138805 (patch)
tree1fd88b389f3ab1ca618e8a4f7404176dd2ddbcf7
parent944e9dcdc8a05294f79a69c2f2b6ed8c5bdb0819 (diff)
downloadmeta-openembedded-cf53340f000b770faba44560e81a3d1e15138805.tar.gz
libtdb: upgrade 1.4.3 -> 1.4.7
* Refresh patches * Add a patch to skip checking PYTHONHASHSEED 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/libtdb/libtdb/0001-tdb-Add-configure-options-for-packages.patch (renamed from meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch)21
-rw-r--r--meta-networking/recipes-support/libtdb/libtdb/0002-Fix-pyext_PATTERN-for-cross-compilation.patch (renamed from meta-networking/recipes-support/libtdb/libtdb/0001-Fix-pyext_PATTERN-for-cross-compilation.patch)10
-rw-r--r--meta-networking/recipes-support/libtdb/libtdb/0003-wscript-skip-checking-PYTHONHASHSEED.patch30
-rw-r--r--meta-networking/recipes-support/libtdb/libtdb_1.4.7.bb (renamed from meta-networking/recipes-support/libtdb/libtdb_1.4.3.bb)12
4 files changed, 52 insertions, 21 deletions
diff --git a/meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch b/meta-networking/recipes-support/libtdb/libtdb/0001-tdb-Add-configure-options-for-packages.patch
index c35cab7c2f..93a85e8545 100644
--- a/meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch
+++ b/meta-networking/recipes-support/libtdb/libtdb/0001-tdb-Add-configure-options-for-packages.patch
@@ -1,4 +1,4 @@
1From 71a10c176c34da898c0169371b3c1b032d2f88b1 Mon Sep 17 00:00:00 2001 1From d3b1d23e01e323b9610843ab6bef096512f6c244 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Wed, 19 Jun 2019 17:53:34 +0800 3Date: Wed, 19 Jun 2019 17:53:34 +0800
4Subject: [PATCH] tdb: Add configure options for packages 4Subject: [PATCH] tdb: Add configure options for packages
@@ -19,12 +19,12 @@ Update to 1.4.0
19 19
20Signed-off-by: Changqing Li <changqing.li@windriver.com> 20Signed-off-by: Changqing Li <changqing.li@windriver.com>
21--- 21---
22 lib/replace/wscript | 94 ++++++++++++++++++++++++++++++++++++++++------------- 22 lib/replace/wscript | 92 ++++++++++++++++++++++++++++++++++-----------
23 wscript | 6 ++++ 23 wscript | 6 +++
24 2 files changed, 78 insertions(+), 22 deletions(-) 24 2 files changed, 77 insertions(+), 21 deletions(-)
25 25
26diff --git a/lib/replace/wscript b/lib/replace/wscript 26diff --git a/lib/replace/wscript b/lib/replace/wscript
27index 1d01e1e..2336dc3 100644 27index 827d74f..70cde6f 100644
28--- a/lib/replace/wscript 28--- a/lib/replace/wscript
29+++ b/lib/replace/wscript 29+++ b/lib/replace/wscript
30@@ -25,6 +25,41 @@ def options(opt): 30@@ -25,6 +25,41 @@ def options(opt):
@@ -69,7 +69,7 @@ index 1d01e1e..2336dc3 100644
69 @Utils.run_once 69 @Utils.run_once
70 def configure(conf): 70 def configure(conf):
71 conf.RECURSE('buildtools/wafsamba') 71 conf.RECURSE('buildtools/wafsamba')
72@@ -34,12 +69,25 @@ def configure(conf): 72@@ -35,12 +70,25 @@ def configure(conf):
73 conf.DEFINE('HAVE_LIBREPLACE', 1) 73 conf.DEFINE('HAVE_LIBREPLACE', 1)
74 conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) 74 conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
75 75
@@ -78,10 +78,9 @@ index 1d01e1e..2336dc3 100644
78+ conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h') 78+ conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h')
79+ conf.CHECK_HEADERS('attr/xattr.h compat.h ctype.h dustat.h') 79+ conf.CHECK_HEADERS('attr/xattr.h compat.h ctype.h dustat.h')
80 conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h') 80 conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h')
81- conf.CHECK_HEADERS('locale.h ndir.h pwd.h') 81 conf.CHECK_HEADERS('locale.h ndir.h pwd.h')
82- conf.CHECK_HEADERS('shadow.h sys/acl.h') 82- conf.CHECK_HEADERS('shadow.h sys/acl.h')
83- conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h') 83- conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h')
84+ conf.CHECK_HEADERS('locale.h ndir.h pwd.h')
85+ conf.CHECK_HEADERS('shadow.h') 84+ conf.CHECK_HEADERS('shadow.h')
86+ conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h') 85+ conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h')
87+ 86+
@@ -114,7 +113,7 @@ index 1d01e1e..2336dc3 100644
114 conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') 113 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') 114 conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h')
116 conf.CHECK_HEADERS('syscall.h sys/syscall.h inttypes.h') 115 conf.CHECK_HEADERS('syscall.h sys/syscall.h inttypes.h')
117@@ -380,20 +429,21 @@ def configure(conf): 116@@ -431,20 +480,21 @@ def configure(conf):
118 117
119 strlcpy_in_bsd = False 118 strlcpy_in_bsd = False
120 119
@@ -151,7 +150,7 @@ index 1d01e1e..2336dc3 100644
151 conf.CHECK_CODE(''' 150 conf.CHECK_CODE('''
152 struct ucred cred; 151 struct ucred cred;
153diff --git a/wscript b/wscript 152diff --git a/wscript b/wscript
154index 5598d02..8d47244 100644 153index 71ada31..10b16a7 100644
155--- a/wscript 154--- a/wscript
156+++ b/wscript 155+++ b/wscript
157@@ -69,6 +69,12 @@ def options(opt): 156@@ -69,6 +69,12 @@ def options(opt):
@@ -168,5 +167,5 @@ index 5598d02..8d47244 100644
168 def configure(conf): 167 def configure(conf):
169 conf.env.disable_tdb_mutex_locking = getattr(Options.options, 168 conf.env.disable_tdb_mutex_locking = getattr(Options.options,
170-- 169--
1712.7.4 1702.25.1
172 171
diff --git a/meta-networking/recipes-support/libtdb/libtdb/0001-Fix-pyext_PATTERN-for-cross-compilation.patch b/meta-networking/recipes-support/libtdb/libtdb/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
index 6f221989fa..6bd118b536 100644
--- a/meta-networking/recipes-support/libtdb/libtdb/0001-Fix-pyext_PATTERN-for-cross-compilation.patch
+++ b/meta-networking/recipes-support/libtdb/libtdb/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
@@ -1,4 +1,4 @@
1From 00bd6680ad38c20c95a35c963d7077269f3a3aa2 Mon Sep 17 00:00:00 2001 1From 10b4546edb194ede7a5e8bb5e4c9f5fdc67984eb 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
@@ -25,18 +25,18 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
25 1 file changed, 1 insertion(+), 1 deletion(-) 25 1 file changed, 1 insertion(+), 1 deletion(-)
26 26
27diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py 27diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py
28index 7c45a76..c9a90f7 100644 28index a23bd01..af202e0 100644
29--- a/third_party/waf/waflib/Tools/python.py 29--- a/third_party/waf/waflib/Tools/python.py
30+++ b/third_party/waf/waflib/Tools/python.py 30+++ b/third_party/waf/waflib/Tools/python.py
31@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): 31@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'):
32 x = 'MACOSX_DEPLOYMENT_TARGET' 32 x = 'MACOSX_DEPLOYMENT_TARGET'
33 if dct[x]: 33 if dct[x]:
34 env[x] = conf.environ[x] = dct[x] 34 env[x] = conf.environ[x] = str(dct[x])
35- env.pyext_PATTERN = '%s' + dct['SO'] # not a mistake 35- env.pyext_PATTERN = '%s' + (dct['EXT_SUFFIX'] or dct['SO']) # SO is deprecated in 3.5 and removed in 3.11
36+ env.pyext_PATTERN = '%s.so' 36+ env.pyext_PATTERN = '%s.so'
37 37
38 38
39 # Try to get pythonX.Y-config 39 # Try to get pythonX.Y-config
40-- 40--
412.17.1 412.25.1
42 42
diff --git a/meta-networking/recipes-support/libtdb/libtdb/0003-wscript-skip-checking-PYTHONHASHSEED.patch b/meta-networking/recipes-support/libtdb/libtdb/0003-wscript-skip-checking-PYTHONHASHSEED.patch
new file mode 100644
index 0000000000..ebe3198f16
--- /dev/null
+++ b/meta-networking/recipes-support/libtdb/libtdb/0003-wscript-skip-checking-PYTHONHASHSEED.patch
@@ -0,0 +1,30 @@
1From b5864f0d542485c4fbfeb7b02fdd99e0b4e1dbc7 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 28 Dec 2022 16:31:05 +0800
4Subject: [PATCH] wscript: skip checking PYTHONHASHSEED
5
6Skip checking PYTHONHASHSEED as it is set to 0 in oe-core by default.
7
8Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
9---
10 buildtools/wafsamba/wscript | 4 ----
11 1 file changed, 4 deletions(-)
12
13diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
14index 8729b08..a4d6f3e 100644
15--- a/buildtools/wafsamba/wscript
16+++ b/buildtools/wafsamba/wscript
17@@ -8,10 +8,6 @@ import wafsamba
18 from samba_utils import symlink
19 from optparse import SUPPRESS_HELP
20
21-phs = os.environ.get("PYTHONHASHSEED", None)
22-if phs != "1":
23- raise Errors.WafError('''PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!''')
24-
25 # this forces configure to be re-run if any of the configure
26 # sections of the build scripts change. We have to check
27 # for this in sys.argv as options have not yet been parsed when
28--
292.25.1
30
diff --git a/meta-networking/recipes-support/libtdb/libtdb_1.4.3.bb b/meta-networking/recipes-support/libtdb/libtdb_1.4.7.bb
index 2affcf754e..6775e6f061 100644
--- a/meta-networking/recipes-support/libtdb/libtdb_1.4.3.bb
+++ b/meta-networking/recipes-support/libtdb/libtdb_1.4.7.bb
@@ -1,5 +1,5 @@
1SUMMARY = "The tdb library" 1SUMMARY = "The tdb library"
2HOMEPAGE = "http://tdb.samba.org/" 2HOMEPAGE = "https://tdb.samba.org/"
3SECTION = "libs" 3SECTION = "libs"
4LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later" 4LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later"
5 5
@@ -7,12 +7,13 @@ LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c
7 file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" 7 file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6"
8 8
9SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ 9SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \
10 file://tdb-Add-configure-options-for-packages.patch \ 10 file://0001-tdb-Add-configure-options-for-packages.patch \
11 file://0001-Fix-pyext_PATTERN-for-cross-compilation.patch \ 11 file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \
12 file://0003-wscript-skip-checking-PYTHONHASHSEED.patch \
12" 13"
13 14
14SRC_URI[md5sum] = "e638e8890f743624a754304b3f994f4d" 15SRC_URI[md5sum] = "bc27d5b20c7f013305c40b3bced43b3a"
15SRC_URI[sha256sum] = "c8058393dfa15f47e11ebd2f1d132693f0b3b3b8bf22d0201bfb305026f88a1b" 16SRC_URI[sha256sum] = "a4fb168def533f31ff2c07f7d9844bb3131e6799f094ebe77d0380adc987c20e"
16 17
17PACKAGECONFIG ??= "\ 18PACKAGECONFIG ??= "\
18 ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ 19 ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \
@@ -35,6 +36,7 @@ inherit waf-samba
35export WAF_NO_PREFORK="yes" 36export WAF_NO_PREFORK="yes"
36 37
37EXTRA_OECONF += "--disable-rpath \ 38EXTRA_OECONF += "--disable-rpath \
39 --disable-rpath-install \
38 --bundled-libraries=NONE \ 40 --bundled-libraries=NONE \
39 --builtin-libraries=replace \ 41 --builtin-libraries=replace \
40 --with-libiconv=${STAGING_DIR_HOST}${prefix}\ 42 --with-libiconv=${STAGING_DIR_HOST}${prefix}\