summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2024-01-01 15:49:55 +0800
committerKhem Raj <raj.khem@gmail.com>2024-01-08 19:54:39 -0800
commitcf1dd83b6fbbacc0e845137cf832990aa4cf1fc2 (patch)
tree6e7d18a0a696d9ecd44042c1e95293199a60a589
parentb2ba89eb89126360830b365f958f24f0a3528661 (diff)
downloadmeta-openembedded-cf1dd83b6fbbacc0e845137cf832990aa4cf1fc2.tar.gz
libtalloc: upgrade 2.4.0 -> 2.4.1
* Remove PACKAGECONFIG[libaio] as libaio is no longer required by libtalloc. * Add ptest. * 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/libtalloc/libtalloc/0001-talloc-Add-configure-options-for-packages.patch52
-rw-r--r--meta-networking/recipes-support/libtalloc/libtalloc/0002-Fix-pyext_PATTERN-for-cross-compilation.patch6
-rw-r--r--meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch11
-rw-r--r--meta-networking/recipes-support/libtalloc/libtalloc/run-ptest17
-rw-r--r--meta-networking/recipes-support/libtalloc/libtalloc_2.4.1.bb (renamed from meta-networking/recipes-support/libtalloc/libtalloc_2.4.0.bb)15
5 files changed, 60 insertions, 41 deletions
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/0001-talloc-Add-configure-options-for-packages.patch b/meta-networking/recipes-support/libtalloc/libtalloc/0001-talloc-Add-configure-options-for-packages.patch
index 026a348992..45d847c852 100644
--- a/meta-networking/recipes-support/libtalloc/libtalloc/0001-talloc-Add-configure-options-for-packages.patch
+++ b/meta-networking/recipes-support/libtalloc/libtalloc/0001-talloc-Add-configure-options-for-packages.patch
@@ -1,4 +1,4 @@
1From 888bfe48236b4ce382dc3aa49791cadb70a1fbe4 Mon Sep 17 00:00:00 2001 1From 18e3d62f5c8f957acc45695cb99c24510d23b457 Mon Sep 17 00:00:00 2001
2From: Wang Mingyu <wangmy@cn.fujitsu.com> 2From: Wang Mingyu <wangmy@cn.fujitsu.com>
3Date: Fri, 25 Dec 2020 14:14:08 +0900 3Date: Fri, 25 Dec 2020 14:14:08 +0900
4Subject: [PATCH] talloc: Add configure options for packages 4Subject: [PATCH] talloc: Add configure options for packages
@@ -6,7 +6,6 @@ Subject: [PATCH] talloc: 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
@@ -21,16 +20,20 @@ Signed-off-by: Joe Slater <joe.slater@windriver.com>
21 20
22Modified tp apply to version 2.2.0 21Modified tp apply to version 2.2.0
23Signed-off-by: Changqing Li <changqing.li@windriver.com> 22Signed-off-by: Changqing Li <changqing.li@windriver.com>
23
24Rebase to 2.4.1
25Remove libaio option
26Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
24--- 27---
25 lib/replace/wscript | 89 +++++++++++++++++++++++++++++++++++---------- 28 lib/replace/wscript | 78 +++++++++++++++++++++++++++++++++------------
26 wscript | 7 +++- 29 wscript | 7 +++-
27 2 files changed, 75 insertions(+), 21 deletions(-) 30 2 files changed, 64 insertions(+), 21 deletions(-)
28 31
29diff --git a/lib/replace/wscript b/lib/replace/wscript 32diff --git a/lib/replace/wscript b/lib/replace/wscript
30index 827d74f..0348715 100644 33index 199e636..3593eaf 100644
31--- a/lib/replace/wscript 34--- a/lib/replace/wscript
32+++ b/lib/replace/wscript 35+++ b/lib/replace/wscript
33@@ -25,6 +25,41 @@ def options(opt): 36@@ -25,6 +25,34 @@ def options(opt):
34 opt.PRIVATE_EXTENSION_DEFAULT('') 37 opt.PRIVATE_EXTENSION_DEFAULT('')
35 opt.RECURSE('buildtools/wafsamba') 38 opt.RECURSE('buildtools/wafsamba')
36 39
@@ -48,13 +51,6 @@ index 827d74f..0348715 100644
48+ help=("Disable use of attr"), 51+ help=("Disable use of attr"),
49+ action="store_false", dest='enable_attr', default=False) 52+ action="store_false", dest='enable_attr', default=False)
50+ 53+
51+ opt.add_option('--with-libaio',
52+ help=("Enable use of libaio"),
53+ action="store_true", dest='enable_libaio')
54+ opt.add_option('--without-libaio',
55+ help=("Disable use of libaio"),
56+ action="store_false", dest='enable_libaio', default=False)
57+
58+ opt.add_option('--with-libbsd', 54+ opt.add_option('--with-libbsd',
59+ help=("Enable use of libbsd"), 55+ help=("Enable use of libbsd"),
60+ action="store_true", dest='enable_libbsd') 56+ action="store_true", dest='enable_libbsd')
@@ -72,49 +68,51 @@ index 827d74f..0348715 100644
72 @Utils.run_once 68 @Utils.run_once
73 def configure(conf): 69 def configure(conf):
74 conf.RECURSE('buildtools/wafsamba') 70 conf.RECURSE('buildtools/wafsamba')
75@@ -35,12 +70,25 @@ def configure(conf): 71@@ -38,18 +66,27 @@ def configure(conf):
76 conf.DEFINE('HAVE_LIBREPLACE', 1) 72 conf.DEFINE('HAVE_LIBREPLACE', 1)
77 conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) 73 conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
78 74
79- conf.CHECK_HEADERS('linux/types.h crypt.h locale.h acl/libacl.h compat.h') 75- conf.CHECK_HEADERS('linux/types.h crypt.h locale.h acl/libacl.h compat.h')
80- conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h') 76- conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h')
81+ conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h') 77+ conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h')
82+ conf.CHECK_HEADERS('attr/xattr.h compat.h ctype.h dustat.h') 78+ conf.CHECK_HEADERS('compat.h ctype.h dustat.h')
83 conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h') 79 conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h')
84 conf.CHECK_HEADERS('locale.h ndir.h pwd.h') 80 conf.CHECK_HEADERS('locale.h ndir.h pwd.h')
85- conf.CHECK_HEADERS('shadow.h sys/acl.h') 81- conf.CHECK_HEADERS('shadow.h sys/acl.h')
86- conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h') 82- conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h')
87+ conf.CHECK_HEADERS('shadow.h') 83+ conf.CHECK_HEADERS('shadow.h')
88+ conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h') 84+ conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h')
89+ 85 conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h')
86 conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h')
87 conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h')
88 conf.CHECK_HEADERS('sys/vfs.h sys/xattr.h termio.h termios.h sys/file.h')
89 conf.CHECK_HEADERS('sys/ucontext.h sys/wait.h sys/stat.h')
90
90+ if Options.options.enable_acl: 91+ if Options.options.enable_acl:
91+ conf.CHECK_HEADERS('acl/libacl.h sys/acl.h') 92+ conf.CHECK_HEADERS('acl/libacl.h sys/acl.h')
92+ 93+
93+ if Options.options.enable_attr: 94+ if Options.options.enable_attr:
94+ conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h') 95+ conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h')
95+ 96+
96+ if Options.options.enable_libaio:
97+ conf.CHECK_HEADERS('libaio.h')
98+
99+ if Options.options.enable_libcap: 97+ if Options.options.enable_libcap:
100+ conf.CHECK_HEADERS('sys/capability.h') 98+ conf.CHECK_HEADERS('sys/capability.h')
101+ 99+
102 conf.CHECK_HEADERS('port.h') 100 if not conf.CHECK_DECLS('malloc', headers='stdlib.h'):
103 conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') 101 conf.CHECK_HEADERS('malloc.h')
104 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
105@@ -110,8 +158,9 @@ def configure(conf): 103@@ -113,8 +150,9 @@ def configure(conf):
106 conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') 104 conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h')
107 conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') 105 conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h')
108 106
109- conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') 107- conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h')
110- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') 108- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h')
111+ if Options.options.enable_valgrind: 109+ if Options.options.enable_valgrind:
112+ conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') 110+ conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h')
113+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') 111+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h')
114 conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') 112 conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h')
115 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')
116 conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') 114 conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h')
117@@ -431,20 +480,20 @@ def configure(conf): 115@@ -443,20 +481,20 @@ def configure(conf):
118 116
119 strlcpy_in_bsd = False 117 strlcpy_in_bsd = False
120 118
@@ -150,7 +148,7 @@ index 827d74f..0348715 100644
150 conf.CHECK_CODE(''' 148 conf.CHECK_CODE('''
151 struct ucred cred; 149 struct ucred cred;
152diff --git a/wscript b/wscript 150diff --git a/wscript b/wscript
153index 3089663..fdf9510 100644 151index 075f1ec..6b4f273 100644
154--- a/wscript 152--- a/wscript
155+++ b/wscript 153+++ b/wscript
156@@ -31,7 +31,12 @@ def options(opt): 154@@ -31,7 +31,12 @@ def options(opt):
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/0002-Fix-pyext_PATTERN-for-cross-compilation.patch b/meta-networking/recipes-support/libtalloc/libtalloc/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
index 058ac34f81..59461412a6 100644
--- a/meta-networking/recipes-support/libtalloc/libtalloc/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
+++ b/meta-networking/recipes-support/libtalloc/libtalloc/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
@@ -1,4 +1,4 @@
1From 6580e8191c219909d50c991662310e668973722d Mon Sep 17 00:00:00 2001 1From 843d1dc810efc61275b1121d6b35649d00570851 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
@@ -40,10 +40,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
40 1 file changed, 1 insertion(+), 1 deletion(-) 40 1 file changed, 1 insertion(+), 1 deletion(-)
41 41
42diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py 42diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py
43index a23bd01..af202e0 100644 43index b2dd1a9..2bd3545 100644
44--- a/third_party/waf/waflib/Tools/python.py 44--- a/third_party/waf/waflib/Tools/python.py
45+++ b/third_party/waf/waflib/Tools/python.py 45+++ b/third_party/waf/waflib/Tools/python.py
46@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): 46@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'):
47 x = 'MACOSX_DEPLOYMENT_TARGET' 47 x = 'MACOSX_DEPLOYMENT_TARGET'
48 if dct[x]: 48 if dct[x]:
49 env[x] = conf.environ[x] = str(dct[x]) 49 env[x] = conf.environ[x] = str(dct[x])
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch b/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch
index fe8d10d6f4..93c8a1e846 100644
--- a/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch
+++ b/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch
@@ -1,19 +1,18 @@
1From e18370c204056de799064d8ac72a656eb3745f95 Mon Sep 17 00:00:00 2001 1From 9130d340c37861a59e812e334e2b13577e705a6c Mon Sep 17 00:00:00 2001
2From: Wang Mingyu <wangmy@cn.fujitsu.com> 2From: Wang Mingyu <wangmy@cn.fujitsu.com>
3Date: Fri, 25 Dec 2020 15:10:58 +0900 3Date: Fri, 25 Dec 2020 15:10:58 +0900
4Subject: [PATCH] avoid attr unless wanted 4Subject: [PATCH] avoid attr unless wanted
5 5
6Upstream-Status: Inappropriate [embedded specific]
6--- 7---
7Upstream-Status: Pending
8
9 lib/replace/wscript | 4 +--- 8 lib/replace/wscript | 4 +---
10 1 file changed, 1 insertion(+), 3 deletions(-) 9 1 file changed, 1 insertion(+), 3 deletions(-)
11 10
12diff --git a/lib/replace/wscript b/lib/replace/wscript 11diff --git a/lib/replace/wscript b/lib/replace/wscript
13index 0348715..a8554d9 100644 12index 3593eaf..504a1cb 100644
14--- a/lib/replace/wscript 13--- a/lib/replace/wscript
15+++ b/lib/replace/wscript 14+++ b/lib/replace/wscript
16@@ -967,8 +967,6 @@ def build(bld): 15@@ -968,8 +968,6 @@ def build(bld):
17 if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' 16 if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c'
18 if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' 17 if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c'
19 if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c' 18 if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c'
@@ -22,7 +21,7 @@ index 0348715..a8554d9 100644
22 21
23 if not bld.CONFIG_SET('HAVE_CLOSEFROM'): 22 if not bld.CONFIG_SET('HAVE_CLOSEFROM'):
24 REPLACE_SOURCE += ' closefrom.c' 23 REPLACE_SOURCE += ' closefrom.c'
25@@ -983,7 +981,7 @@ def build(bld): 24@@ -984,7 +982,7 @@ def build(bld):
26 # hide_symbols=bld.BUILTIN_LIBRARY('replace'), 25 # hide_symbols=bld.BUILTIN_LIBRARY('replace'),
27 private_library=True, 26 private_library=True,
28 provide_builtin_linking=True, 27 provide_builtin_linking=True,
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/run-ptest b/meta-networking/recipes-support/libtalloc/libtalloc/run-ptest
new file mode 100644
index 0000000000..84e5381501
--- /dev/null
+++ b/meta-networking/recipes-support/libtalloc/libtalloc/run-ptest
@@ -0,0 +1,17 @@
1#!/bin/sh
2
3ptestdir=$(dirname "$(readlink -f "$0")")
4cd "$ptestdir"/tests || exit
5
6tests="replace_testsuite talloc_testsuite"
7
8for f in $tests
9do
10 if test -x ./"$f"; then
11 if ./"$f" > ./"$f".out 2> ./"$f".err; then
12 echo "PASS: $f"
13 else
14 echo "FAIL: $f"
15 fi
16 fi
17done
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc_2.4.0.bb b/meta-networking/recipes-support/libtalloc/libtalloc_2.4.1.bb
index f8fef9f825..bf7fbc8649 100644
--- a/meta-networking/recipes-support/libtalloc/libtalloc_2.4.0.bb
+++ b/meta-networking/recipes-support/libtalloc/libtalloc_2.4.1.bb
@@ -11,10 +11,11 @@ export PYTHONHASHSEED="1"
11SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ 11SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \
12 file://0001-talloc-Add-configure-options-for-packages.patch \ 12 file://0001-talloc-Add-configure-options-for-packages.patch \
13 file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ 13 file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \
14 file://run-ptest \
14" 15"
15SRC_URI[sha256sum] = "6df36862c42466ef88f360444513870ef46934f9016c84383cc4008a7d0c46ba" 16SRC_URI[sha256sum] = "410a547f08557007be0e88194f218868358edc0ab98c98ba8c167930db3d33f9"
16 17
17inherit waf-samba 18inherit waf-samba pkgconfig ptest
18 19
19PACKAGECONFIG ??= "\ 20PACKAGECONFIG ??= "\
20 ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ 21 ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \
@@ -22,7 +23,6 @@ PACKAGECONFIG ??= "\
22" 23"
23PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" 24PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl"
24PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" 25PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
25PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio"
26PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" 26PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd"
27PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" 27PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap"
28PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" 28PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
@@ -31,8 +31,8 @@ SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr
31 31
32S = "${WORKDIR}/talloc-${PV}" 32S = "${WORKDIR}/talloc-${PV}"
33 33
34#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen 34# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen
35#to cross Popen 35# to cross Popen
36export WAF_NO_PREFORK="yes" 36export WAF_NO_PREFORK="yes"
37 37
38EXTRA_OECONF += "--disable-rpath \ 38EXTRA_OECONF += "--disable-rpath \
@@ -43,6 +43,11 @@ EXTRA_OECONF += "--disable-rpath \
43 --with-libiconv=${STAGING_DIR_HOST}${prefix}\ 43 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
44 " 44 "
45 45
46do_install_ptest() {
47 install -d ${D}${PTEST_PATH}/tests
48 install -m 0755 ${B}/bin/*_testsuite ${D}${PTEST_PATH}/tests/
49}
50
46PACKAGES += "pytalloc pytalloc-dev" 51PACKAGES += "pytalloc pytalloc-dev"
47 52
48RPROVIDES:${PN}-dbg += "pytalloc-dbg" 53RPROVIDES:${PN}-dbg += "pytalloc-dbg"