libtdb: upgrade 1.4.8 -> 1.4.9
PATCH 1/5 libtdb: upgrade 1.4.8 -> 1.4.9
* Remove PACKAGECONFIG[libaio] as libaio is no longer required by libtdb.
* Add ptest.
* Refresh patches.
---
...b-Add-configure-options-for-packages.patch | 48 ++++++++-----------
...-pyext_PATTERN-for-cross-compilation.patch | 6 +--
.../recipes-support/libtdb/libtdb/run-ptest | 17 +++++++
.../{libtdb_1.4.8.bb => libtdb_1.4.9.bb} | 19 ++++++--
4 files changed, 53 insertions(+), 37 deletions(-)
create mode 100644 meta-networking/recipes-support/libtdb/libtdb/run-ptest
rename meta-networking/recipes-support/libtdb/{libtdb_1.4.8.bb => libtdb_1.4.9.bb} (71%)meta-networking/recipes-support/libtdb/libtdb/0001-tdb-Add-configure-options-for-packages.patch +19 -29
@@ -1,4 +1,4 @@ -From d3b1d23e01e323b9610843ab6bef096512f6c244 Mon Sep 17 00:00:00 2001 +From 613cfb43622f0138edfcf3ad7a8fecc568e17db4 Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Wed, 19 Jun 2019 17:53:34 +0800 Subject: [PATCH] tdb: Add configure options for packages
@@ -6,7 +6,6 @@ Subject: [PATCH] tdb: Add configure options for packages Add configure options for the following packages: - acl - attr - - libaio - libbsd - libcap - valgrind
@@ -18,16 +17,20 @@ Signed-off-by: Jackie Huang <[email protected]> Update to 1.4.0 Signed-off-by: Changqing Li <[email protected]> + +Rebase to 1.4.9 +Remove libaio option +Signed-off-by: Yi Zhao <[email protected]> --- - lib/replace/wscript | 92 ++++++++++++++++++++++++++++++++++----------- - wscript | 6 +++ - 2 files changed, 77 insertions(+), 21 deletions(-) + lib/replace/wscript | 79 +++++++++++++++++++++++++++++++++------------ + wscript | 6 ++++ + 2 files changed, 65 insertions(+), 20 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript -index 827d74f..70cde6f 100644 +index 199e636..cb13b62 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -25,6 +25,41 @@ def options(opt): +@@ -25,6 +25,34 @@ def options(opt): opt.PRIVATE_EXTENSION_DEFAULT('') opt.RECURSE('buildtools/wafsamba')
@@ -45,13 +48,6 @@ index 827d74f..70cde6f 100644 + help=("Disable use of attr"), + action="store_false", dest='enable_attr', default=False) + -+ opt.add_option('--with-libaio', -+ help=("Enable use of libaio"), -+ action="store_true", dest='enable_libaio') -+ opt.add_option('--without-libaio', -+ help=("Disable use of libaio"), -+ action="store_false", dest='enable_libaio', default=False) -+ + opt.add_option('--with-libbsd', + help=("Enable use of libbsd"), + action="store_true", dest='enable_libbsd')
@@ -69,51 +65,45 @@ index 827d74f..70cde6f 100644 @Utils.run_once def configure(conf): conf.RECURSE('buildtools/wafsamba') -@@ -35,12 +70,25 @@ def configure(conf): +@@ -38,12 +66,21 @@ def configure(conf): conf.DEFINE('HAVE_LIBREPLACE', 1) conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) - conf.CHECK_HEADERS('linux/types.h crypt.h locale.h acl/libacl.h compat.h') - conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h') + conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h') -+ conf.CHECK_HEADERS('attr/xattr.h compat.h ctype.h dustat.h') ++ conf.CHECK_HEADERS('compat.h ctype.h dustat.h') conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h') conf.CHECK_HEADERS('locale.h ndir.h pwd.h') - conf.CHECK_HEADERS('shadow.h sys/acl.h') - conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h') + conf.CHECK_HEADERS('shadow.h') + conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h') -+ + if Options.options.enable_acl: + conf.CHECK_HEADERS('acl/libacl.h sys/acl.h') + + if Options.options.enable_attr: + conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h') + -+ if Options.options.enable_libaio: -+ conf.CHECK_HEADERS('libaio.h') -+ + if Options.options.enable_libcap: + conf.CHECK_HEADERS('sys/capability.h') + - conf.CHECK_HEADERS('port.h') conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') -@@ -110,9 +158,10 @@ def configure(conf): + conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h') +@@ -113,8 +150,9 @@ def configure(conf): conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') -- conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') +- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') + if Options.options.enable_valgrind: + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') -+ ++ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') + conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') - conf.CHECK_HEADERS('syscall.h sys/syscall.h inttypes.h') -@@ -431,20 +480,21 @@ def configure(conf): +@@ -443,20 +481,21 @@ def configure(conf): strlcpy_in_bsd = False
@@ -150,7 +140,7 @@ index 827d74f..70cde6f 100644 conf.CHECK_CODE(''' struct ucred cred; diff --git a/wscript b/wscript -index 71ada31..10b16a7 100644 +index 5e6a928..5443b43 100644 --- a/wscript +++ b/wscript @@ -69,6 +69,12 @@ def options(opt):
meta-networking/recipes-support/libtdb/libtdb/0002-Fix-pyext_PATTERN-for-cross-compilation.patch +3 -3
@@ -1,4 +1,4 @@ -From 10b4546edb194ede7a5e8bb5e4c9f5fdc67984eb Mon Sep 17 00:00:00 2001 +From de39c696a62894fd9c6626d3e2931e42e3407be5 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 24 Nov 2021 13:33:35 +0800 Subject: [PATCH] Fix pyext_PATTERN for cross compilation
@@ -25,10 +25,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py -index a23bd01..af202e0 100644 +index b2dd1a9..2bd3545 100644 --- a/third_party/waf/waflib/Tools/python.py +++ b/third_party/waf/waflib/Tools/python.py -@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): +@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'): x = 'MACOSX_DEPLOYMENT_TARGET' if dct[x]: env[x] = conf.environ[x] = str(dct[x])
meta-networking/recipes-support/libtdb/libtdb/run-ptest new file +17 -0
@@ -0,0 +1,17 @@ +#!/bin/sh + +ptestdir=$(dirname "$(readlink -f "$0")") +cd "$ptestdir"/tests || exit + +tests=$(find * -type f -name 'tdb1-*') + +for f in replace_testsuite $tests +do + if test -x ./"$f"; then + if ./"$f" > ./"$f".out 2> ./"$f".err; then + echo "PASS: $f" + else + echo "FAIL: $f" + fi + fi +done
meta-networking/recipes-support/libtdb/libtdb_1.4.9.bb renamed from meta-networking/recipes-support/libtdb/libtdb_1.4.8.bb +14 -5
@@ -11,9 +11,10 @@ export PYTHONHASHSEED="1" SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ file://0001-tdb-Add-configure-options-for-packages.patch \ file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ + file://run-ptest \ " -SRC_URI[sha256sum] = "8434c9c857d13ce3fa8466f75601f25c3693676b36919f159e0ad6121baf5ce8" +SRC_URI[sha256sum] = "0ac226073e3a2db8648da7af744cb95f50766a52feeb001d558b2b321b74a765" PACKAGECONFIG ??= "\ ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \
@@ -22,17 +23,16 @@ PACKAGECONFIG ??= "\ PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" -PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" S = "${WORKDIR}/tdb-${PV}" -inherit waf-samba +inherit waf-samba pkgconfig ptest -#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen -#to cross Popen +# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen +# to cross Popen export WAF_NO_PREFORK="yes" EXTRA_OECONF += "--disable-rpath \
@@ -42,6 +42,15 @@ EXTRA_OECONF += "--disable-rpath \ --with-libiconv=${STAGING_DIR_HOST}${prefix}\ " +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/bin/tdb1-* ${D}${PTEST_PATH}/tests/ + install -m 0755 ${B}/bin/replace_testsuite ${D}${PTEST_PATH}/tests/ + install -d ${D}${PTEST_PATH}/tests/test + install -m 0644 ${B}/test/*.tdb ${D}${PTEST_PATH}/tests/test/ + install -m 0644 ${B}/test/*.corrupt ${D}${PTEST_PATH}/tests/test/ +} + PACKAGES += "tdb-tools python3-tdb" RPROVIDES:${PN}-dbg += "python3-tdb-dbg"
Signature · 1 line
2.25.1
PATCH 2/5 libtalloc: upgrade 2.4.0 -> 2.4.1
* Remove PACKAGECONFIG[libaio] as libaio is no longer required by libtalloc.
* Add ptest.
* Refresh patches.
---
...c-Add-configure-options-for-packages.patch | 52 +++++++++----------
...-pyext_PATTERN-for-cross-compilation.patch | 6 +--
.../libtalloc/avoid-attr-unless-wanted.patch | 11 ++--
.../libtalloc/libtalloc/run-ptest | 17 ++++++
...{libtalloc_2.4.0.bb => libtalloc_2.4.1.bb} | 15 ++++--
5 files changed, 60 insertions(+), 41 deletions(-)
create mode 100644 meta-networking/recipes-support/libtalloc/libtalloc/run-ptest
rename meta-networking/recipes-support/libtalloc/{libtalloc_2.4.0.bb => libtalloc_2.4.1.bb} (82%)meta-networking/recipes-support/libtalloc/libtalloc/0001-talloc-Add-configure-options-for-packages.patch +25 -27
@@ -1,4 +1,4 @@ -From 888bfe48236b4ce382dc3aa49791cadb70a1fbe4 Mon Sep 17 00:00:00 2001 +From 18e3d62f5c8f957acc45695cb99c24510d23b457 Mon Sep 17 00:00:00 2001 From: Wang Mingyu <[email protected]> Date: Fri, 25 Dec 2020 14:14:08 +0900 Subject: [PATCH] talloc: Add configure options for packages
@@ -6,7 +6,6 @@ Subject: [PATCH] talloc: Add configure options for packages Add configure options for the following packages: - acl - attr - - libaio - libbsd - libcap - valgrind
@@ -21,16 +20,20 @@ Signed-off-by: Joe Slater <[email protected]> Modified tp apply to version 2.2.0 Signed-off-by: Changqing Li <[email protected]> + +Rebase to 2.4.1 +Remove libaio option +Signed-off-by: Yi Zhao <[email protected]> --- - lib/replace/wscript | 89 +++++++++++++++++++++++++++++++++++---------- + lib/replace/wscript | 78 +++++++++++++++++++++++++++++++++------------ wscript | 7 +++- - 2 files changed, 75 insertions(+), 21 deletions(-) + 2 files changed, 64 insertions(+), 21 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript -index 827d74f..0348715 100644 +index 199e636..3593eaf 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -25,6 +25,41 @@ def options(opt): +@@ -25,6 +25,34 @@ def options(opt): opt.PRIVATE_EXTENSION_DEFAULT('') opt.RECURSE('buildtools/wafsamba')
@@ -48,13 +51,6 @@ index 827d74f..0348715 100644 + help=("Disable use of attr"), + action="store_false", dest='enable_attr', default=False) + -+ opt.add_option('--with-libaio', -+ help=("Enable use of libaio"), -+ action="store_true", dest='enable_libaio') -+ opt.add_option('--without-libaio', -+ help=("Disable use of libaio"), -+ action="store_false", dest='enable_libaio', default=False) -+ + opt.add_option('--with-libbsd', + help=("Enable use of libbsd"), + action="store_true", dest='enable_libbsd')
@@ -72,49 +68,51 @@ index 827d74f..0348715 100644 @Utils.run_once def configure(conf): conf.RECURSE('buildtools/wafsamba') -@@ -35,12 +70,25 @@ def configure(conf): +@@ -38,18 +66,27 @@ def configure(conf): conf.DEFINE('HAVE_LIBREPLACE', 1) conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) - conf.CHECK_HEADERS('linux/types.h crypt.h locale.h acl/libacl.h compat.h') - conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h') + conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h') -+ conf.CHECK_HEADERS('attr/xattr.h compat.h ctype.h dustat.h') ++ conf.CHECK_HEADERS('compat.h ctype.h dustat.h') conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h') conf.CHECK_HEADERS('locale.h ndir.h pwd.h') - conf.CHECK_HEADERS('shadow.h sys/acl.h') - conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h') + conf.CHECK_HEADERS('shadow.h') + conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h') -+ + conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') + conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') + conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h') + conf.CHECK_HEADERS('sys/vfs.h sys/xattr.h termio.h termios.h sys/file.h') + conf.CHECK_HEADERS('sys/ucontext.h sys/wait.h sys/stat.h') + + if Options.options.enable_acl: + conf.CHECK_HEADERS('acl/libacl.h sys/acl.h') + + if Options.options.enable_attr: + conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h') + -+ if Options.options.enable_libaio: -+ conf.CHECK_HEADERS('libaio.h') -+ + if Options.options.enable_libcap: + conf.CHECK_HEADERS('sys/capability.h') + - conf.CHECK_HEADERS('port.h') - conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') - conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') -@@ -110,8 +158,9 @@ def configure(conf): + if not conf.CHECK_DECLS('malloc', headers='stdlib.h'): + conf.CHECK_HEADERS('malloc.h') + +@@ -113,8 +150,9 @@ def configure(conf): conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') +- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') + if Options.options.enable_valgrind: + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') ++ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') -@@ -431,20 +480,20 @@ def configure(conf): +@@ -443,20 +481,20 @@ def configure(conf): strlcpy_in_bsd = False
@@ -150,7 +148,7 @@ index 827d74f..0348715 100644 conf.CHECK_CODE(''' struct ucred cred; diff --git a/wscript b/wscript -index 3089663..fdf9510 100644 +index 075f1ec..6b4f273 100644 --- a/wscript +++ b/wscript @@ -31,7 +31,12 @@ def options(opt):
meta-networking/recipes-support/libtalloc/libtalloc/0002-Fix-pyext_PATTERN-for-cross-compilation.patch +3 -3
@@ -1,4 +1,4 @@ -From 6580e8191c219909d50c991662310e668973722d Mon Sep 17 00:00:00 2001 +From 843d1dc810efc61275b1121d6b35649d00570851 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 24 Nov 2021 13:33:35 +0800 Subject: [PATCH] Fix pyext_PATTERN for cross compilation
@@ -40,10 +40,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py -index a23bd01..af202e0 100644 +index b2dd1a9..2bd3545 100644 --- a/third_party/waf/waflib/Tools/python.py +++ b/third_party/waf/waflib/Tools/python.py -@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): +@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'): x = 'MACOSX_DEPLOYMENT_TARGET' if dct[x]: env[x] = conf.environ[x] = str(dct[x])
meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch +5 -6
@@ -1,19 +1,18 @@ -From e18370c204056de799064d8ac72a656eb3745f95 Mon Sep 17 00:00:00 2001 +From 9130d340c37861a59e812e334e2b13577e705a6c Mon Sep 17 00:00:00 2001 From: Wang Mingyu <[email protected]> Date: Fri, 25 Dec 2020 15:10:58 +0900 Subject: [PATCH] avoid attr unless wanted +Upstream-Status: Inappropriate [embedded specific] --- -Upstream-Status: Pending - lib/replace/wscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript -index 0348715..a8554d9 100644 +index 3593eaf..504a1cb 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -967,8 +967,6 @@ def build(bld): +@@ -968,8 +968,6 @@ def build(bld): if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c'
@@ -22,7 +21,7 @@ index 0348715..a8554d9 100644 if not bld.CONFIG_SET('HAVE_CLOSEFROM'): REPLACE_SOURCE += ' closefrom.c' -@@ -983,7 +981,7 @@ def build(bld): +@@ -984,7 +982,7 @@ def build(bld): # hide_symbols=bld.BUILTIN_LIBRARY('replace'), private_library=True, provide_builtin_linking=True,
meta-networking/recipes-support/libtalloc/libtalloc/run-ptest new file +17 -0
@@ -0,0 +1,17 @@ +#!/bin/sh + +ptestdir=$(dirname "$(readlink -f "$0")") +cd "$ptestdir"/tests || exit + +tests="replace_testsuite talloc_testsuite" + +for f in $tests +do + if test -x ./"$f"; then + if ./"$f" > ./"$f".out 2> ./"$f".err; then + echo "PASS: $f" + else + echo "FAIL: $f" + fi + fi +done
meta-networking/recipes-support/libtalloc/libtalloc_2.4.1.bb renamed from meta-networking/recipes-support/libtalloc/libtalloc_2.4.0.bb +10 -5
@@ -11,10 +11,11 @@ export PYTHONHASHSEED="1" SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ file://0001-talloc-Add-configure-options-for-packages.patch \ file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ + file://run-ptest \ " -SRC_URI[sha256sum] = "6df36862c42466ef88f360444513870ef46934f9016c84383cc4008a7d0c46ba" +SRC_URI[sha256sum] = "410a547f08557007be0e88194f218868358edc0ab98c98ba8c167930db3d33f9" -inherit waf-samba +inherit waf-samba pkgconfig ptest PACKAGECONFIG ??= "\ ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \
@@ -22,7 +23,6 @@ PACKAGECONFIG ??= "\ " PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" -PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
@@ -31,8 +31,8 @@ SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr S = "${WORKDIR}/talloc-${PV}" -#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen -#to cross Popen +# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen +# to cross Popen export WAF_NO_PREFORK="yes" EXTRA_OECONF += "--disable-rpath \
@@ -43,6 +43,11 @@ EXTRA_OECONF += "--disable-rpath \ --with-libiconv=${STAGING_DIR_HOST}${prefix}\ " +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/bin/*_testsuite ${D}${PTEST_PATH}/tests/ +} + PACKAGES += "pytalloc pytalloc-dev" RPROVIDES:${PN}-dbg += "pytalloc-dbg"
Signature · 1 line
2.25.1
PATCH 3/5 libtevent: upgrade 0.14.1 -> 0.16.0
In reply to Yi Zhao* Remove PACKAGECONFIG[libaio] as libaio is no longer required by libtevent.
* Refresh patches.
---
...1-Add-configure-options-for-packages.patch | 70 ++++++++++++-------
...-pyext_PATTERN-for-cross-compilation.patch | 6 +-
.../libtevent/avoid-attr-unless-wanted.patch | 11 ++-
...ibtevent_0.14.1.bb => libtevent_0.16.0.bb} | 7 +-
4 files changed, 55 insertions(+), 39 deletions(-)
rename meta-networking/recipes-support/libtevent/{libtevent_0.14.1.bb => libtevent_0.16.0.bb} (87%)meta-networking/recipes-support/libtevent/libtevent/0001-Add-configure-options-for-packages.patch +44 -26
@@ -1,4 +1,4 @@ -From d9fd1c52d1646254944bfee37be611e04d4daddb Mon Sep 17 00:00:00 2001 +From c2241d7a1371ece3b89dfdad4861dcf0a152d5d4 Mon Sep 17 00:00:00 2001 From: Wang Mingyu <[email protected]> Date: Fri, 25 Dec 2020 15:03:17 +0900 Subject: [PATCH] Add configure options for packages
@@ -6,7 +6,6 @@ Subject: [PATCH] Add configure options for packages Add configure options for the following packages: - acl - attr - - libaio - libbsd - libcap - valgrind
@@ -24,16 +23,20 @@ Signed-off-by: Changqing Li <[email protected]> Update patch to version 0.14.1 Signed-off-by: Wang Mingyu <[email protected]> + +Rebase to 0.16.0 +Remove libaio option +Signed-off-by: Yi Zhao <[email protected]> --- - lib/replace/wscript | 85 +++++++++++++++++++++++++++++++++++---------- - wscript | 6 ++++ - 2 files changed, 73 insertions(+), 18 deletions(-) + lib/replace/wscript | 100 +++++++++++++++++++++++++++++++------------- + wscript | 6 +++ + 2 files changed, 77 insertions(+), 29 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript -index 5c2b750..28835ac 100644 +index 77e655b..452c741 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -25,6 +25,41 @@ def options(opt): +@@ -25,6 +25,34 @@ def options(opt): opt.PRIVATE_EXTENSION_DEFAULT('') opt.RECURSE('buildtools/wafsamba')
@@ -51,13 +54,6 @@ index 5c2b750..28835ac 100644 + help=("Disable use of attr"), + action="store_false", dest='enable_attr', default=False) + -+ opt.add_option('--with-libaio', -+ help=("Enable use of libaio"), -+ action="store_true", dest='enable_libaio') -+ opt.add_option('--without-libaio', -+ help=("Disable use of libaio"), -+ action="store_false", dest='enable_libaio', default=False) -+ + opt.add_option('--with-libbsd', + help=("Enable use of libbsd"), + action="store_true", dest='enable_libbsd')
@@ -75,7 +71,7 @@ index 5c2b750..28835ac 100644 @Utils.run_once def configure(conf): conf.RECURSE('buildtools/wafsamba') -@@ -38,12 +73,27 @@ def configure(conf): +@@ -38,12 +66,24 @@ def configure(conf): conf.DEFINE('HAVE_LIBREPLACE', 1) conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
@@ -96,28 +92,25 @@ index 5c2b750..28835ac 100644 + if Options.options.enable_attr: + conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h') + -+ if Options.options.enable_libaio: -+ conf.CHECK_HEADERS('libaio.h') -+ + if Options.options.enable_libcap: + conf.CHECK_HEADERS('sys/capability.h') + conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h') -@@ -113,8 +163,9 @@ def configure(conf): +@@ -113,8 +153,9 @@ def configure(conf): conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') +- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') + if Options.options.enable_valgrind: + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') ++ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') -@@ -436,20 +487,18 @@ def configure(conf): +@@ -443,31 +484,32 @@ def configure(conf): strlcpy_in_bsd = False
@@ -126,6 +119,17 @@ index 5c2b750..28835ac 100644 - if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', - checklibc=True): - strlcpy_in_bsd = True +- elif conf.env.enable_fuzzing: +- # Just to complicate it more, some versions of Honggfuzz have +- # got strlcpy and strlcat in libc, but not in <string.h> +- # (unless it is there coincidentally, on a BSD). Therefore we +- # can't use CHECK_FUNCS alone to decide whether to add the +- # headers to replace.h. +- # +- # As this is only known to happen on a fuzzing compiler, we'll +- # skip the check when not in fuzzing mode. +- conf.CHECK_HEADERS('bsd/string.h') +- - if not conf.CHECK_FUNCS('getpeereid'): - conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h') - if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
@@ -138,12 +142,26 @@ index 5c2b750..28835ac 100644 + if Options.options.enable_libbsd: + # libbsd on some platforms provides strlcpy and strlcat + if not conf.CHECK_FUNCS('strlcpy strlcat'): -+ conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', -+ checklibc=True) ++ if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', ++ checklibc=True): ++ strlcpy_in_bsd = True ++ elif conf.env.enable_fuzzing: ++ # Just to complicate it more, some versions of Honggfuzz have ++ # got strlcpy and strlcat in libc, but not in <string.h> ++ # (unless it is there coincidentally, on a BSD). Therefore we ++ # can't use CHECK_FUNCS alone to decide whether to add the ++ # headers to replace.h. ++ # ++ # As this is only known to happen on a fuzzing compiler, we'll ++ # skip the check when not in fuzzing mode. ++ conf.CHECK_HEADERS('bsd/string.h') ++ + if not conf.CHECK_FUNCS('getpeereid'): + conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h') + if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'): + conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h') ++ if not conf.CHECK_FUNCS('setproctitle_init'): ++ conf.CHECK_FUNCS_IN('setproctitle_init', 'bsd', headers='sys/types.h bsd/unistd.h') + + if not conf.CHECK_FUNCS('closefrom'): + conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
@@ -151,7 +169,7 @@ index 5c2b750..28835ac 100644 conf.CHECK_CODE(''' struct ucred cred; diff --git a/wscript b/wscript -index 0f6e92f..5a54f3a 100644 +index d912a8a..484a6fa 100644 --- a/wscript +++ b/wscript @@ -28,6 +28,12 @@ def options(opt):
@@ -168,5 +186,5 @@ index 0f6e92f..5a54f3a 100644 def configure(conf): conf.RECURSE('lib/replace') -- -2.34.1 +2.25.1
meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch +3 -3
@@ -1,4 +1,4 @@ -From da1dc659fd351ff6283f843eeba5e0b3f7b2d584 Mon Sep 17 00:00:00 2001 +From 2bb7bf2d945d4ea0dafe3858adc6b8faae18b1e8 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 24 Nov 2021 13:33:35 +0800 Subject: [PATCH] Fix pyext_PATTERN for cross compilation
@@ -25,10 +25,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py -index a23bd01..af202e0 100644 +index b2dd1a9..2bd3545 100644 --- a/third_party/waf/waflib/Tools/python.py +++ b/third_party/waf/waflib/Tools/python.py -@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): +@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'): x = 'MACOSX_DEPLOYMENT_TARGET' if dct[x]: env[x] = conf.environ[x] = str(dct[x])
meta-networking/recipes-support/libtevent/libtevent/avoid-attr-unless-wanted.patch +5 -6
@@ -1,19 +1,18 @@ -From 82dc31b72e77f263574645092ba1597a8f1152e7 Mon Sep 17 00:00:00 2001 +From ace8fed037ec3d03f65f861b4da217faff94015b Mon Sep 17 00:00:00 2001 From: Wang Mingyu <[email protected]> Date: Fri, 25 Dec 2020 15:10:58 +0900 Subject: [PATCH] avoid attr unless wanted +Upstream-Status: Inappropriate [embedded specific] --- -Upstream-Status: Pending - lib/replace/wscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript -index 21a746a..6be3276 100644 +index 452c741..61fcde0 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -968,8 +968,6 @@ def build(bld): +@@ -983,8 +983,6 @@ def build(bld): if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c'
@@ -22,7 +21,7 @@ index 21a746a..6be3276 100644 if not bld.CONFIG_SET('HAVE_CLOSEFROM'): REPLACE_SOURCE += ' closefrom.c' -@@ -984,7 +982,7 @@ def build(bld): +@@ -999,7 +997,7 @@ def build(bld): # hide_symbols=bld.BUILTIN_LIBRARY('replace'), private_library=True, provide_builtin_linking=True,
meta-networking/recipes-support/libtevent/libtevent_0.16.0.bb renamed from meta-networking/recipes-support/libtevent/libtevent_0.14.1.bb +3 -4
@@ -16,7 +16,7 @@ SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \ LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=47386b7c539bf2706b7ce52dc9341681" -SRC_URI[sha256sum] = "ef85fcaa80ffd2351036ba4b347630fef2a1ac3da964a7f1820466bad03cd00d" +SRC_URI[sha256sum] = "1aa58f21017ed8c2f606ae84aa7e795b5439edd4dd5f68f1a388a7d6fb40f682" inherit pkgconfig ptest waf-samba
@@ -26,7 +26,6 @@ PACKAGECONFIG ??= "\ " PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" -PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
@@ -35,8 +34,8 @@ SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr S = "${WORKDIR}/tevent-${PV}" -#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen -#to cross Popen +# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen +# to cross Popen export WAF_NO_PREFORK="yes" EXTRA_OECONF += "--disable-rpath \
Signature · 1 line
2.25.1
PATCH 4/5 libldb: upgrade 2.7.2 -> 2.8.0
In reply to Yi Zhao* Remove PACKAGECONFIG[libaio] as libaio is no longer required by libldb.
* Refresh patches.
---
...rt-target-module-while-cross-compile.patch | 6 +--
...b-Add-configure-options-for-packages.patch | 40 ++++++++-----------
...-pyext_PATTERN-for-cross-compilation.patch | 6 +--
.../libldb/avoid-openldap-unless-wanted.patch | 4 +-
.../{libldb_2.7.2.bb => libldb_2.8.0.bb} | 7 ++--
5 files changed, 27 insertions(+), 36 deletions(-)
rename meta-networking/recipes-support/libldb/{libldb_2.7.2.bb => libldb_2.8.0.bb} (91%)meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch +3 -3
@@ -1,4 +1,4 @@ -From 69c409195ede704ed7e9298ed4942cc70a52e099 Mon Sep 17 00:00:00 2001 +From 6a2f229e74804f70f4419b2a1e6843aab059e098 Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Tue, 25 Jun 2019 14:25:08 +0800 Subject: [PATCH] do not import target module while cross compile
@@ -19,7 +19,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py -index 7d2d855..01dcb56 100644 +index 2300565..26d9e8c 100644 --- a/buildtools/wafsamba/samba_bundled.py +++ b/buildtools/wafsamba/samba_bundled.py @@ -4,6 +4,7 @@ import sys
@@ -30,7 +30,7 @@ index 7d2d855..01dcb56 100644 def PRIVATE_NAME(bld, name): '''possibly rename a library to include a bundled extension''' -@@ -241,17 +242,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): +@@ -245,17 +246,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): # versions minversion = minimum_library_version(conf, libname, minversion)
meta-networking/recipes-support/libldb/libldb/0002-ldb-Add-configure-options-for-packages.patch +16 -24
@@ -1,4 +1,4 @@ -From acd3985f9c428882f1b731a6f9ce5cb1a4a3a02c Mon Sep 17 00:00:00 2001 +From e949da7cb100c571631cd9bc7532e528c1f74820 Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Mon, 1 Jul 2019 16:14:16 +0800 Subject: [PATCH] ldb: Add configure options for packages
@@ -6,7 +6,6 @@ Subject: [PATCH] ldb: Add configure options for packages Add configure options for the following packages: - acl - attr - - libaio - libbsd - libcap - valgrind
@@ -19,17 +18,20 @@ upgrade to version 1.5.4 Signed-off-by: Changqing Li <[email protected]> Rebase to 2.3.0 + +Rebase to 2.8.0 +Remove libaio option Signed-off-by: Yi Zhao <[email protected]> --- - lib/replace/wscript | 90 +++++++++++++++++++++++++++++++++++---------- - wscript | 8 ++++ - 2 files changed, 78 insertions(+), 20 deletions(-) + lib/replace/wscript | 80 +++++++++++++++++++++++++++++++++------------ + wscript | 8 +++++ + 2 files changed, 68 insertions(+), 20 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript -index 5c2b750..a38baae 100644 +index 37d7759..d0d6bb0 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -25,6 +25,41 @@ def options(opt): +@@ -25,6 +25,34 @@ def options(opt): opt.PRIVATE_EXTENSION_DEFAULT('') opt.RECURSE('buildtools/wafsamba')
@@ -47,13 +49,6 @@ index 5c2b750..a38baae 100644 + help=("Disable use of attr"), + action="store_false", dest='enable_attr', default=False) + -+ opt.add_option('--with-libaio', -+ help=("Enable use of libaio"), -+ action="store_true", dest='enable_libaio') -+ opt.add_option('--without-libaio', -+ help=("Disable use of libaio"), -+ action="store_false", dest='enable_libaio', default=False) -+ + opt.add_option('--with-libbsd', + help=("Enable use of libbsd"), + action="store_true", dest='enable_libbsd')
@@ -71,7 +66,7 @@ index 5c2b750..a38baae 100644 @Utils.run_once def configure(conf): conf.RECURSE('buildtools/wafsamba') -@@ -38,12 +73,25 @@ def configure(conf): +@@ -38,12 +66,22 @@ def configure(conf): conf.DEFINE('HAVE_LIBREPLACE', 1) conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
@@ -92,28 +87,25 @@ index 5c2b750..a38baae 100644 + if Options.options.enable_attr: + conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h') + -+ if Options.options.enable_libaio: -+ conf.CHECK_HEADERS('libaio.h') -+ + if Options.options.enable_libcap: + conf.CHECK_HEADERS('sys/capability.h') + conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h') -@@ -113,8 +161,9 @@ def configure(conf): +@@ -113,8 +151,9 @@ def configure(conf): conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') +- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') + if Options.options.enable_valgrind: + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') ++ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') -@@ -436,20 +485,21 @@ def configure(conf): +@@ -443,20 +482,21 @@ def configure(conf): strlcpy_in_bsd = False
@@ -131,7 +123,7 @@ index 5c2b750..a38baae 100644 - - if not conf.CHECK_FUNCS('closefrom'): - conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h') -+ if Options.options.enable_libbsd: ++ if Options.options.enable_libbsd: + # libbsd on some platforms provides strlcpy and strlcat + if not conf.CHECK_FUNCS('strlcpy strlcat'): + if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
@@ -150,7 +142,7 @@ index 5c2b750..a38baae 100644 conf.CHECK_CODE(''' struct ucred cred; diff --git a/wscript b/wscript -index 03076e6..5365408 100644 +index ed5d45f..6bb0b37 100644 --- a/wscript +++ b/wscript @@ -40,6 +40,14 @@ def options(opt):
meta-networking/recipes-support/libldb/libldb/0003-Fix-pyext_PATTERN-for-cross-compilation.patch +3 -3
@@ -1,4 +1,4 @@ -From d9f4d5bbd3e58ca7fd7cbc4ab7656fe27bf4c346 Mon Sep 17 00:00:00 2001 +From 989addc0ca7be8233b413d42704c5dc900e85d81 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 24 Nov 2021 13:33:35 +0800 Subject: [PATCH] Fix pyext_PATTERN for cross compilation
@@ -42,10 +42,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py -index a23bd01..af202e0 100644 +index b2dd1a9..2bd3545 100644 --- a/third_party/waf/waflib/Tools/python.py +++ b/third_party/waf/waflib/Tools/python.py -@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): +@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'): x = 'MACOSX_DEPLOYMENT_TARGET' if dct[x]: env[x] = conf.environ[x] = str(dct[x])
meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch +2 -2
@@ -1,4 +1,4 @@ -From cc86b8bdd45ca30bdf65a3b8b0960b27aeb34522 Mon Sep 17 00:00:00 2001 +From 226b75a0e9654fb3c0435256af5fed0178dc0d69 Mon Sep 17 00:00:00 2001 From: Jens Rehsack <[email protected]> Date: Thu, 19 Nov 2015 20:45:56 +0100 Subject: [PATCH] avoid openldap unless wanted
@@ -12,7 +12,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wscript b/wscript -index 7f14847..092da2d 100644 +index 6bb0b37..8ee25b1 100644 --- a/wscript +++ b/wscript @@ -154,9 +154,7 @@ def configure(conf):
meta-networking/recipes-support/libldb/libldb_2.8.0.bb renamed from meta-networking/recipes-support/libldb/libldb_2.7.2.bb +3 -4
@@ -22,7 +22,6 @@ PACKAGECONFIG ??= "\ PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" PACKAGECONFIG[ldap] = ",,openldap" -PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
@@ -34,14 +33,14 @@ LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9ada file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" -SRC_URI[sha256sum] = "26ee72d647854e662d99643eb2b2d341655abf31f4990838d6650fb5cf9209c8" +SRC_URI[sha256sum] = "358dca10fcd27207ac857a0d7f435a46dbc6cd1f7c10dbb840c1931bf1965f08" inherit pkgconfig waf-samba ptest S = "${WORKDIR}/ldb-${PV}" -#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen -#to cross Popen +# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen +# to cross Popen export WAF_NO_PREFORK="yes" EXTRA_OECONF += "--disable-rpath \
Signature · 1 line
2.25.1
PATCH 5/5 samba: upgrade 4.18.9 -> 4.19.3
In reply to Yi ZhaoAccording to samba release planning[1], 4.18 is already in maintenance mode and will be EOL in Sep 2024. Upgrade to current stable release 4.19.
Release Notes
https://www.samba.org/samba/history/samba-4.19.0.html
https://www.samba.org/samba/history/samba-4.19.3.html
[1] https://wiki.samba.org/index.php/Samba_Release_Planning
---
.../cross-answers-aarch64.txt | 2 +-
.../cross-answers-aarch64_be.txt | 2 +-
.../waf-cross-answers/cross-answers-arm.txt | 2 +-
.../waf-cross-answers/cross-answers-armeb.txt | 2 +-
.../waf-cross-answers/cross-answers-i586.txt | 2 +-
.../waf-cross-answers/cross-answers-i686.txt | 2 +-
.../waf-cross-answers/cross-answers-mips.txt | 2 +-
.../cross-answers-mips64.txt | 2 +-
.../cross-answers-mips64el.txt | 2 +-
.../cross-answers-mipsel.txt | 2 +-
.../cross-answers-powerpc.txt | 2 +-
.../cross-answers-powerpc64.txt | 2 +-
.../cross-answers-powerpc64le.txt | 2 +-
.../cross-answers-riscv32.txt | 2 +-
.../cross-answers-riscv64.txt | 2 +-
.../cross-answers-x86_64.txt | 2 +-
.../0001-Don-t-check-xsltproc-manpages.patch | 8 ++---
...rt-target-module-while-cross-compile.patch | 10 +++---
...3-Add-config-option-without-valgrind.patch | 34 +++++++++++--------
...tions-to-configure-the-use-of-libbsd.patch | 9 ++---
...-pyext_PATTERN-for-cross-compilation.patch | 6 ++--
...orture-skip-test-case-tfork_cmd_send.patch | 2 +-
...-of-python-to-fix-the-install-confli.patch | 11 +++---
.../samba/samba-4.3.9-remove-getpwent_r.patch | 8 ++---
.../samba/samba/samba-pam.patch | 12 +++----
.../{samba_4.18.9.bb => samba_4.19.3.bb} | 6 ++--
26 files changed, 73 insertions(+), 65 deletions(-)
rename meta-networking/recipes-connectivity/samba/{samba_4.18.9.bb => samba_4.19.3.bb} (98%)meta-networking/files/waf-cross-answers/cross-answers-aarch64.txt +1 -1
@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-aarch64_be.txt +1 -1
@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-arm.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-armeb.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-i586.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-i686.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-mips.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-mips64.txt +1 -1
@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt +1 -1
@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-mipsel.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-powerpc.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-powerpc64.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-powerpc64le.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-riscv32.txt +1 -1
@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-riscv64.txt +1 -1
@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/files/waf-cross-answers/cross-answers-x86_64.txt +1 -1
@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NO
meta-networking/recipes-connectivity/samba/samba/0001-Don-t-check-xsltproc-manpages.patch +4 -4
@@ -1,4 +1,4 @@ -From f6fa33bfc2e1272198db6ea08910b4162b364b18 Mon Sep 17 00:00:00 2001 +From 5c5418038e392cc00d3293e00ea0cd20b5e19c9a Mon Sep 17 00:00:00 2001 From: Bian Naimeng <[email protected]> Date: Mon, 18 Apr 2016 17:00:53 -0400 Subject: [PATCH] Don't check xsltproc manpages
@@ -16,7 +16,7 @@ Signed-off-by: Yi Zhao <[email protected]> 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ldb/wscript b/lib/ldb/wscript -index 60bb7cf..b7b0152 100644 +index ed5d45f..de3c648 100644 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -144,7 +144,7 @@ def configure(conf):
@@ -29,7 +29,7 @@ index 60bb7cf..b7b0152 100644 # we need this for the ldap backend if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): diff --git a/lib/talloc/wscript b/lib/talloc/wscript -index 3089663..76cd65e 100644 +index 075f1ec..9bd9f73 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -48,7 +48,7 @@ def configure(conf):
@@ -42,7 +42,7 @@ index 3089663..76cd65e 100644 conf.CHECK_HEADERS('sys/auxv.h') conf.CHECK_FUNCS('getauxval') diff --git a/lib/tdb/wscript b/lib/tdb/wscript -index 71ada31..accd474 100644 +index 5e6a928..f13cf2a 100644 --- a/lib/tdb/wscript +++ b/lib/tdb/wscript @@ -95,7 +95,7 @@ def configure(conf):
meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch +5 -5
@@ -1,4 +1,4 @@ -From f7b8e2e149b06a8033e31f4242c392573fa9ab52 Mon Sep 17 00:00:00 2001 +From ba492aead265edfd1da2a6c45dd7661c248309cb Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Tue, 25 Jun 2019 14:25:08 +0800 Subject: [PATCH] do not import target module while cross compile
@@ -6,18 +6,18 @@ Subject: [PATCH] do not import target module while cross compile Some modules such as dynamic library maybe cann't be imported while cross compile, we just check whether does the module exist. +Upstream-Status: Pending + Signed-off-by: Bian Naimeng <[email protected]> update to version 4.10.5, and switch to python3 Signed-off-by: Changqing Li <[email protected]> --- -Upstream-Status: Pending - buildtools/wafsamba/samba_bundled.py | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py -index 7d2d855..01dcb56 100644 +index 2300565..26d9e8c 100644 --- a/buildtools/wafsamba/samba_bundled.py +++ b/buildtools/wafsamba/samba_bundled.py @@ -4,6 +4,7 @@ import sys
@@ -28,7 +28,7 @@ index 7d2d855..01dcb56 100644 def PRIVATE_NAME(bld, name): '''possibly rename a library to include a bundled extension''' -@@ -241,17 +242,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): +@@ -245,17 +246,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): # versions minversion = minimum_library_version(conf, libname, minversion)
meta-networking/recipes-connectivity/samba/samba/0003-Add-config-option-without-valgrind.patch +20 -14
@@ -1,4 +1,4 @@ -From 556bb3cf17ccdf0b0ee0d82801c4b20cf0990ae4 Mon Sep 17 00:00:00 2001 +From cceee20e91af751469872b71155b23f0dec290a7 Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Thu, 20 Jun 2019 14:11:16 +0800 Subject: [PATCH] Add config option without-valgrind
@@ -9,38 +9,44 @@ Signed-off-by: Wenzong Fan <[email protected]> Update patch to version 4.10.5 Signed-off-by: Changqing Li <[email protected]> + +Rebase to 4.19.3 +Signed-off-by: Yi Zhao <[email protected]> --- lib/replace/wscript | 5 +++-- - wscript | 4 ++++ - 2 files changed, 7 insertions(+), 2 deletions(-) + wscript | 7 +++++++ + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript -index 2f17999..9ef9bd9 100644 +index 37d7759..9dd9b48 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -114,8 +114,9 @@ def configure(conf): +@@ -113,8 +113,9 @@ def configure(conf): conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') -+ if not Options.options.disable_valgrind: +- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') ++ if Options.options.enable_valgrind: + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') ++ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') diff --git a/wscript b/wscript -index 3af4207..54d7e9e 100644 +index 95ddd9e..6d9577a 100644 --- a/wscript +++ b/wscript -@@ -116,6 +116,10 @@ def options(opt): - help=("Disable RELRO builds"), - action="store_false", dest='enable_relro') +@@ -123,6 +123,13 @@ def options(opt): + help=('Disable kernely keyring support for credential storage'), + action='store_false', dest='enable_keyring') ++ opt.add_option('--with-valgrind', ++ help=("Enable use of valgrind"), ++ action="store_true", dest='enable_valgrind') + opt.add_option('--without-valgrind', -+ help=("Disable use of the valgrind headers"), -+ action="store_true", dest='disable_valgrind', default=False) ++ help=("Disable use of valgrind"), ++ action="store_false", dest='enable_valgrind', default=False) + gr = opt.option_group('developer options')
meta-networking/recipes-connectivity/samba/samba/0004-Add-options-to-configure-the-use-of-libbsd.patch +5 -4
@@ -1,9 +1,10 @@ -From 515f2455b4b69f5fcd2c61a532663280785db737 Mon Sep 17 00:00:00 2001 +From d302d9a4ac6eb2bbafd248064a878ba287d636b8 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt <[email protected]> Date: Tue, 28 Apr 2020 02:05:33 +0200 Subject: [PATCH] Add options to configure the use of libbsd Upstream-Status: Inappropriate [oe deterministic build specific] + Signed-off-by: Peter Kjellerstedt <[email protected]> Rebase to 4.14.4
@@ -15,7 +16,7 @@ Signed-off-by: Yi Zhao <[email protected]> 3 files changed, 29 insertions(+), 15 deletions(-) diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript -index 8729b08..1c55428 100644 +index 30cb366..d167551 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -145,6 +145,13 @@ Currently the only tested value is 'smbtorture,smbd/smbd' for Samba'''),
@@ -33,10 +34,10 @@ index 8729b08..1c55428 100644 gr.add_option('-C', diff --git a/lib/replace/wscript b/lib/replace/wscript -index 9ef9bd9..d47de4f 100644 +index 9dd9b48..a22ae59 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -439,20 +439,21 @@ def configure(conf): +@@ -444,20 +444,21 @@ def configure(conf): strlcpy_in_bsd = False
meta-networking/recipes-connectivity/samba/samba/0005-Fix-pyext_PATTERN-for-cross-compilation.patch +3 -3
@@ -1,4 +1,4 @@ -From a8b4a40b535a2c69eb408f649e7169bcc1975fc1 Mon Sep 17 00:00:00 2001 +From d2a2d0f82a37d0bf21123671774b0b03ffa976cf Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 24 Nov 2021 13:33:35 +0800 Subject: [PATCH] Fix pyext_PATTERN for cross compilation
@@ -46,10 +46,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py -index a23bd01..af202e0 100644 +index b2dd1a9..2bd3545 100644 --- a/third_party/waf/waflib/Tools/python.py +++ b/third_party/waf/waflib/Tools/python.py -@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): +@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'): x = 'MACOSX_DEPLOYMENT_TARGET' if dct[x]: env[x] = conf.environ[x] = str(dct[x])
meta-networking/recipes-connectivity/samba/samba/0006-smbtorture-skip-test-case-tfork_cmd_send.patch +1 -1
@@ -1,4 +1,4 @@ -From 950b5977ea7e72343067d0070cc35fb0dc5163d4 Mon Sep 17 00:00:00 2001 +From 4fd04fc7c94d6981f3409d088ab8d32c48460010 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Thu, 25 Aug 2022 16:46:04 +0800 Subject: [PATCH] smbtorture: skip test case tfork_cmd_send
meta-networking/recipes-connectivity/samba/samba/0007-Deleted-settiong-of-python-to-fix-the-install-confli.patch +6 -5
@@ -1,4 +1,4 @@ -From f783bb9c87ce11e824dfefca473d0dcf6edad238 Mon Sep 17 00:00:00 2001 +From bf5552f937c745940081e29ef32d52ae26bfd8c1 Mon Sep 17 00:00:00 2001 From: Lei Maohui <[email protected]> Date: Sun, 30 Oct 2022 11:59:31 +0900 Subject: [PATCH] Deleted settiong of python to fix the install conflict error
@@ -22,7 +22,8 @@ sys.path.insert(0, "/usr/lib/python3.10/site-packages") But this setting is for environment when running from source tree. There is no necessary on target. -Upstream-Status: Inappropriate +Upstream-Status: Inappropriate [embedded specific] + Signed-off-by: Lei Maohui <[email protected]> --- source4/scripting/bin/samba-gpupdate | 1 -
@@ -47,7 +48,7 @@ index 4b3f057..08fec2d 100755 import optparse from samba import getopt as options diff --git a/source4/scripting/bin/samba-tool b/source4/scripting/bin/samba-tool -index f8a70a6..3c818de 100755 +index b02ad4d..f69ae10 100755 --- a/source4/scripting/bin/samba-tool +++ b/source4/scripting/bin/samba-tool @@ -22,7 +22,6 @@
@@ -59,7 +60,7 @@ index f8a70a6..3c818de 100755 # make sure the script dies immediately when hitting control-C, # rather than raising KeyboardInterrupt. As we do all database diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate -index 1ce53f5..2cdfbf8 100755 +index 69821e2..4037870 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -36,7 +36,6 @@ os.environ['PYTHONUNBUFFERED'] = '1'
@@ -95,7 +96,7 @@ index 67d801e..2fc0d6a 100755 import optparse import time diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate -index 84ff771..b6fe041 100755 +index b421886..5e18ad9 100755 --- a/source4/scripting/bin/samba_spnupdate +++ b/source4/scripting/bin/samba_spnupdate @@ -32,7 +32,6 @@ os.environ['PYTHONUNBUFFERED'] = '1'
meta-networking/recipes-connectivity/samba/samba/samba-4.3.9-remove-getpwent_r.patch +4 -4
@@ -1,4 +1,4 @@ -From 08003ea30d86a8b983be89f6a161d3baacdaa038 Mon Sep 17 00:00:00 2001 +From e5d9527e6b3b386229747f799c725fcd68bc5228 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sun, 6 Nov 2016 23:40:54 -0800 Subject: [PATCH] Musl does not have _r versions of getent() and getpwent()
@@ -7,15 +7,15 @@ Subject: [PATCH] Musl does not have _r versions of getent() and getpwent() Taken from gentoo http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.3.9-remove-getpwent_r.patch -Signed-off-by: Khem Raj <[email protected]> ---- Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- source4/torture/local/nss_tests.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/source4/torture/local/nss_tests.c b/source4/torture/local/nss_tests.c -index 2943122..bc185ca 100644 +index e911aa2..2b39b74 100644 --- a/source4/torture/local/nss_tests.c +++ b/source4/torture/local/nss_tests.c @@ -247,7 +247,6 @@ static bool test_getgrnam_r(struct torture_context *tctx,
meta-networking/recipes-connectivity/samba/samba/samba-pam.patch +6 -6
@@ -1,22 +1,22 @@ -From 6822c61ade5617c9f109e32ad4cdc115fa9e12c8 Mon Sep 17 00:00:00 2001 +From c533bdced677e2104565fc06602e7e63d9c79ac0 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sun, 6 Nov 2016 23:40:54 -0800 Subject: [PATCH] Lifted from gentoo and ported to 4.4.5 http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.2.7-pam.patch -Signed-off-by: Khem Raj <[email protected]> ---- Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- source3/wscript | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source3/wscript b/source3/wscript -index 22be17a..ee9ce52 100644 +index b7f96f3..ed12b1e 100644 --- a/source3/wscript +++ b/source3/wscript -@@ -862,7 +862,7 @@ msg.msg_accrightslen = sizeof(fd); +@@ -863,7 +863,7 @@ msg.msg_accrightslen = sizeof(fd); if conf.env.with_iconv: conf.DEFINE('HAVE_ICONV', 1)
@@ -25,7 +25,7 @@ index 22be17a..ee9ce52 100644 use_pam=True conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h') if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'): -@@ -939,6 +939,17 @@ int i; i = PAM_RADIO_TYPE; +@@ -940,6 +940,17 @@ int i; i = PAM_RADIO_TYPE; "or headers not found. Use --without-pam to disable " "PAM support.");
meta-networking/recipes-connectivity/samba/samba_4.19.3.bb renamed from meta-networking/recipes-connectivity/samba/samba_4.18.9.bb +3 -3
@@ -31,9 +31,9 @@ SRC_URI:append:libc-musl = " \ file://samba-4.3.9-remove-getpwent_r.patch \ " -SRC_URI[sha256sum] = "f455c1d6351ed3a36fc2cb6e8ab1bfd0effe54a56686ffd495d64ab52d50f245" +SRC_URI[sha256sum] = "280553b90f131b1940580df293653c9e9bd8906201f5def6e5e8c160f0bfac96" -UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.18(\.\d+)+).tar.gz" +UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.19(\.\d+)+).tar.gz" inherit systemd waf-samba cpan-base perlnative update-rc.d perl-version pkgconfig
@@ -85,7 +85,7 @@ PACKAGECONFIG[sasl] = ",,cyrus-sasl" PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi" PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi" -PACKAGECONFIG[valgrind] = ",--without-valgrind,valgrind," +PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" PACKAGECONFIG[lttng] = "--with-lttng,--without-lttng,lttng-ust" PACKAGECONFIG[archive] = "--with-libarchive,--without-libarchive,libarchive" PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind"
Signature · 1 line
2.25.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [oe] [meta-networking][PATCH 5/5] samba: upgrade 4.18.9 -> 4.19.3
Ping...
Quoted 604 lines · Yi Zhao
According to samba release planning[1], 4.18 is already in maintenance mode and will be EOL in Sep 2024. Upgrade to current stable release 4.19.
Release Notes
https://www.samba.org/samba/history/samba-4.19.0.html
https://www.samba.org/samba/history/samba-4.19.3.html[1] https://wiki.samba.org/index.php/Samba_Release_Planning
Signed-off-by Yi Zhao <[email protected]>--- .../cross-answers-aarch64.txt | 2 +- .../cross-answers-aarch64_be.txt | 2 +- .../waf-cross-answers/cross-answers-arm.txt | 2 +- .../waf-cross-answers/cross-answers-armeb.txt | 2 +- .../waf-cross-answers/cross-answers-i586.txt | 2 +- .../waf-cross-answers/cross-answers-i686.txt | 2 +- .../waf-cross-answers/cross-answers-mips.txt | 2 +- .../cross-answers-mips64.txt | 2 +- .../cross-answers-mips64el.txt | 2 +- .../cross-answers-mipsel.txt | 2 +- .../cross-answers-powerpc.txt | 2 +- .../cross-answers-powerpc64.txt | 2 +- .../cross-answers-powerpc64le.txt | 2 +- .../cross-answers-riscv32.txt | 2 +- .../cross-answers-riscv64.txt | 2 +- .../cross-answers-x86_64.txt | 2 +- .../0001-Don-t-check-xsltproc-manpages.patch | 8 ++--- ...rt-target-module-while-cross-compile.patch | 10 +++--- ...3-Add-config-option-without-valgrind.patch | 34 +++++++++++-------- ...tions-to-configure-the-use-of-libbsd.patch | 9 ++--- ...-pyext_PATTERN-for-cross-compilation.patch | 6 ++-- ...orture-skip-test-case-tfork_cmd_send.patch | 2 +- ...-of-python-to-fix-the-install-confli.patch | 11 +++--- .../samba/samba-4.3.9-remove-getpwent_r.patch | 8 ++--- .../samba/samba/samba-pam.patch | 12 +++---- .../{samba_4.18.9.bb => samba_4.19.3.bb} | 6 ++-- 26 files changed, 73 insertions(+), 65 deletions(-)rename meta-networking/recipes-connectivity/samba/{samba_4.18.9.bb => samba_4.19.3.bb} (98%)
meta-networking/files/waf-cross-answers/cross-answers-aarch64.txt +1
-1@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-aarch64_be.txt +1
-1@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-arm.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-armeb.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-i586.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-i686.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-mips.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-mips64.txt +1
-1@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-mips64el.txt +1
-1@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-mipsel.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-powerpc.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-powerpc64.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-powerpc64le.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-riscv32.txt +1
-1@@ -43,6 +43,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-riscv64.txt +1
-1@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/files/waf-cross-answers/cross-answers-x86_64.txt +1
-1@@ -42,6 +42,6 @@ Checking errno of iconv for illegal multibyte sequence: NO Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK Checking value of GNUTLS_MAC_AES_CMAC_128: OK Checking whether fcntl supports flags to send direct I/O availability signals: NO -Checking whether fcntl supports setting/geting hints: NO +Checking whether fcntl supports setting/getting hints: NO Checking for readlink breakage: NO Checking for gnutls fips mode support: NOmeta-networking/recipes-connectivity/samba/samba/0001-Don-t-check-xsltproc-manpages.patch +4
-4@@ -1,4 +1,4 @@ -From f6fa33bfc2e1272198db6ea08910b4162b364b18 Mon Sep 17 00:00:00 2001 +From 5c5418038e392cc00d3293e00ea0cd20b5e19c9a Mon Sep 17 00:00:00 2001 From: Bian Naimeng <[email protected]> Date: Mon, 18 Apr 2016 17:00:53 -0400 Subject: [PATCH] Don't check xsltproc manpages@@ -16,7 +16,7 @@ Signed-off-by: Yi Zhao <[email protected]> 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ldb/wscript b/lib/ldb/wscript -index 60bb7cf..b7b0152 100644 +index ed5d45f..de3c648 100644 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -144,7 +144,7 @@ def configure(conf):@@ -29,7 +29,7 @@ index 60bb7cf..b7b0152 100644 # we need this for the ldap backend if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): diff --git a/lib/talloc/wscript b/lib/talloc/wscript -index 3089663..76cd65e 100644 +index 075f1ec..9bd9f73 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -48,7 +48,7 @@ def configure(conf):@@ -42,7 +42,7 @@ index 3089663..76cd65e 100644 conf.CHECK_HEADERS('sys/auxv.h') conf.CHECK_FUNCS('getauxval') diff --git a/lib/tdb/wscript b/lib/tdb/wscript -index 71ada31..accd474 100644 +index 5e6a928..f13cf2a 100644 --- a/lib/tdb/wscript +++ b/lib/tdb/wscript @@ -95,7 +95,7 @@ def configure(conf):meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch +5
-5@@ -1,4 +1,4 @@ -From f7b8e2e149b06a8033e31f4242c392573fa9ab52 Mon Sep 17 00:00:00 2001 +From ba492aead265edfd1da2a6c45dd7661c248309cb Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Tue, 25 Jun 2019 14:25:08 +0800 Subject: [PATCH] do not import target module while cross compile@@ -6,18 +6,18 @@ Subject: [PATCH] do not import target module while cross compile Some modules such as dynamic library maybe cann't be imported while cross compile, we just check whether does the module exist. +Upstream-Status: Pending + Signed-off-by: Bian Naimeng <[email protected]> update to version 4.10.5, and switch to python3 Signed-off-by: Changqing Li <[email protected]> --- -Upstream-Status: Pending - buildtools/wafsamba/samba_bundled.py | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py -index 7d2d855..01dcb56 100644 +index 2300565..26d9e8c 100644 --- a/buildtools/wafsamba/samba_bundled.py +++ b/buildtools/wafsamba/samba_bundled.py @@ -4,6 +4,7 @@ import sys@@ -28,7 +28,7 @@ index 7d2d855..01dcb56 100644 def PRIVATE_NAME(bld, name): '''possibly rename a library to include a bundled extension''' -@@ -241,17 +242,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): +@@ -245,17 +246,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): # versions minversion = minimum_library_version(conf, libname, minversion)meta-networking/recipes-connectivity/samba/samba/0003-Add-config-option-without-valgrind.patch +20
-14@@ -1,4 +1,4 @@ -From 556bb3cf17ccdf0b0ee0d82801c4b20cf0990ae4 Mon Sep 17 00:00:00 2001 +From cceee20e91af751469872b71155b23f0dec290a7 Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Thu, 20 Jun 2019 14:11:16 +0800 Subject: [PATCH] Add config option without-valgrind@@ -9,38 +9,44 @@ Signed-off-by: Wenzong Fan <[email protected]> Update patch to version 4.10.5 Signed-off-by: Changqing Li <[email protected]> + +Rebase to 4.19.3 +Signed-off-by: Yi Zhao <[email protected]> --- lib/replace/wscript | 5 +++-- - wscript | 4 ++++ - 2 files changed, 7 insertions(+), 2 deletions(-) + wscript | 7 +++++++ + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript -index 2f17999..9ef9bd9 100644 +index 37d7759..9dd9b48 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -114,8 +114,9 @@ def configure(conf): +@@ -113,8 +113,9 @@ def configure(conf): conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') -+ if not Options.options.disable_valgrind: +- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') ++ if Options.options.enable_valgrind: + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') -+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') ++ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h') conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') diff --git a/wscript b/wscript -index 3af4207..54d7e9e 100644 +index 95ddd9e..6d9577a 100644 --- a/wscript +++ b/wscript -@@ -116,6 +116,10 @@ def options(opt): - help=("Disable RELRO builds"), - action="store_false", dest='enable_relro') +@@ -123,6 +123,13 @@ def options(opt): + help=('Disable kernely keyring support for credential storage'), + action='store_false', dest='enable_keyring') ++ opt.add_option('--with-valgrind', ++ help=("Enable use of valgrind"), ++ action="store_true", dest='enable_valgrind') + opt.add_option('--without-valgrind', -+ help=("Disable use of the valgrind headers"), -+ action="store_true", dest='disable_valgrind', default=False) ++ help=("Disable use of valgrind"), ++ action="store_false", dest='enable_valgrind', default=False) + gr = opt.option_group('developer options')meta-networking/recipes-connectivity/samba/samba/0004-Add-options-to-configure-the-use-of-libbsd.patch +5
-4@@ -1,9 +1,10 @@ -From 515f2455b4b69f5fcd2c61a532663280785db737 Mon Sep 17 00:00:00 2001 +From d302d9a4ac6eb2bbafd248064a878ba287d636b8 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt <[email protected]> Date: Tue, 28 Apr 2020 02:05:33 +0200 Subject: [PATCH] Add options to configure the use of libbsd Upstream-Status: Inappropriate [oe deterministic build specific] + Signed-off-by: Peter Kjellerstedt <[email protected]> Rebase to 4.14.4@@ -15,7 +16,7 @@ Signed-off-by: Yi Zhao <[email protected]> 3 files changed, 29 insertions(+), 15 deletions(-) diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript -index 8729b08..1c55428 100644 +index 30cb366..d167551 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -145,6 +145,13 @@ Currently the only tested value is 'smbtorture,smbd/smbd' for Samba'''),@@ -33,10 +34,10 @@ index 8729b08..1c55428 100644 gr.add_option('-C', diff --git a/lib/replace/wscript b/lib/replace/wscript -index 9ef9bd9..d47de4f 100644 +index 9dd9b48..a22ae59 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript -@@ -439,20 +439,21 @@ def configure(conf): +@@ -444,20 +444,21 @@ def configure(conf): strlcpy_in_bsd = Falsemeta-networking/recipes-connectivity/samba/samba/0005-Fix-pyext_PATTERN-for-cross-compilation.patch +3
-3@@ -1,4 +1,4 @@ -From a8b4a40b535a2c69eb408f649e7169bcc1975fc1 Mon Sep 17 00:00:00 2001 +From d2a2d0f82a37d0bf21123671774b0b03ffa976cf Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 24 Nov 2021 13:33:35 +0800 Subject: [PATCH] Fix pyext_PATTERN for cross compilation@@ -46,10 +46,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py -index a23bd01..af202e0 100644 +index b2dd1a9..2bd3545 100644 --- a/third_party/waf/waflib/Tools/python.py +++ b/third_party/waf/waflib/Tools/python.py -@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): +@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'): x = 'MACOSX_DEPLOYMENT_TARGET' if dct[x]: env[x] = conf.environ[x] = str(dct[x])meta-networking/recipes-connectivity/samba/samba/0006-smbtorture-skip-test-case-tfork_cmd_send.patch +1
-1@@ -1,4 +1,4 @@ -From 950b5977ea7e72343067d0070cc35fb0dc5163d4 Mon Sep 17 00:00:00 2001 +From 4fd04fc7c94d6981f3409d088ab8d32c48460010 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Thu, 25 Aug 2022 16:46:04 +0800 Subject: [PATCH] smbtorture: skip test case tfork_cmd_sendmeta-networking/recipes-connectivity/samba/samba/0007-Deleted-settiong-of-python-to-fix-the-install-confli.patch +6
-5@@ -1,4 +1,4 @@ -From f783bb9c87ce11e824dfefca473d0dcf6edad238 Mon Sep 17 00:00:00 2001 +From bf5552f937c745940081e29ef32d52ae26bfd8c1 Mon Sep 17 00:00:00 2001 From: Lei Maohui <[email protected]> Date: Sun, 30 Oct 2022 11:59:31 +0900 Subject: [PATCH] Deleted settiong of python to fix the install conflict error@@ -22,7 +22,8 @@ sys.path.insert(0, "/usr/lib/python3.10/site-packages") But this setting is for environment when running from source tree. There is no necessary on target. -Upstream-Status: Inappropriate +Upstream-Status: Inappropriate [embedded specific] + Signed-off-by: Lei Maohui <[email protected]> --- source4/scripting/bin/samba-gpupdate | 1 -@@ -47,7 +48,7 @@ index 4b3f057..08fec2d 100755 import optparse from samba import getopt as options diff --git a/source4/scripting/bin/samba-tool b/source4/scripting/bin/samba-tool -index f8a70a6..3c818de 100755 +index b02ad4d..f69ae10 100755 --- a/source4/scripting/bin/samba-tool +++ b/source4/scripting/bin/samba-tool @@ -22,7 +22,6 @@@@ -59,7 +60,7 @@ index f8a70a6..3c818de 100755 # make sure the script dies immediately when hitting control-C, # rather than raising KeyboardInterrupt. As we do all database diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate -index 1ce53f5..2cdfbf8 100755 +index 69821e2..4037870 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -36,7 +36,6 @@ os.environ['PYTHONUNBUFFERED'] = '1'@@ -95,7 +96,7 @@ index 67d801e..2fc0d6a 100755 import optparse import time diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate -index 84ff771..b6fe041 100755 +index b421886..5e18ad9 100755 --- a/source4/scripting/bin/samba_spnupdate +++ b/source4/scripting/bin/samba_spnupdate @@ -32,7 +32,6 @@ os.environ['PYTHONUNBUFFERED'] = '1'meta-networking/recipes-connectivity/samba/samba/samba-4.3.9-remove-getpwent_r.patch +4
-4@@ -1,4 +1,4 @@ -From 08003ea30d86a8b983be89f6a161d3baacdaa038 Mon Sep 17 00:00:00 2001 +From e5d9527e6b3b386229747f799c725fcd68bc5228 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sun, 6 Nov 2016 23:40:54 -0800 Subject: [PATCH] Musl does not have _r versions of getent() and getpwent()@@ -7,15 +7,15 @@ Subject: [PATCH] Musl does not have _r versions of getent() and getpwent() Taken from gentoo http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.3.9-remove-getpwent_r.patch -Signed-off-by: Khem Raj <[email protected]> ---- Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- source4/torture/local/nss_tests.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/source4/torture/local/nss_tests.c b/source4/torture/local/nss_tests.c -index 2943122..bc185ca 100644 +index e911aa2..2b39b74 100644 --- a/source4/torture/local/nss_tests.c +++ b/source4/torture/local/nss_tests.c @@ -247,7 +247,6 @@ static bool test_getgrnam_r(struct torture_context *tctx,meta-networking/recipes-connectivity/samba/samba/samba-pam.patch +6
-6@@ -1,22 +1,22 @@ -From 6822c61ade5617c9f109e32ad4cdc115fa9e12c8 Mon Sep 17 00:00:00 2001 +From c533bdced677e2104565fc06602e7e63d9c79ac0 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sun, 6 Nov 2016 23:40:54 -0800 Subject: [PATCH] Lifted from gentoo and ported to 4.4.5 http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.2.7-pam.patch -Signed-off-by: Khem Raj <[email protected]> ---- Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- source3/wscript | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source3/wscript b/source3/wscript -index 22be17a..ee9ce52 100644 +index b7f96f3..ed12b1e 100644 --- a/source3/wscript +++ b/source3/wscript -@@ -862,7 +862,7 @@ msg.msg_accrightslen = sizeof(fd); +@@ -863,7 +863,7 @@ msg.msg_accrightslen = sizeof(fd); if conf.env.with_iconv: conf.DEFINE('HAVE_ICONV', 1)@@ -25,7 +25,7 @@ index 22be17a..ee9ce52 100644 use_pam=True conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h') if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'): -@@ -939,6 +939,17 @@ int i; i = PAM_RADIO_TYPE; +@@ -940,6 +940,17 @@ int i; i = PAM_RADIO_TYPE; "or headers not found. Use --without-pam to disable " "PAM support.");meta-networking/recipes-connectivity/samba/samba_4.19.3.bb renamed from meta-networking/recipes-connectivity/samba/samba_4.18.9.bb +3
-4@@ -31,9 +31,9 @@ SRC_URI:append:libc-musl = " \ file://samba-4.3.9-remove-getpwent_r.patch \ " -SRC_URI[sha256sum] = "f455c1d6351ed3a36fc2cb6e8ab1bfd0effe54a56686ffd495d64ab52d50f245" +SRC_URI[sha256sum] = "280553b90f131b1940580df293653c9e9bd8906201f5def6e5e8c160f0bfac96" -UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.18(\.\d+)+).tar.gz" +UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.19(\.\d+)+).tar.gz" inherit systemd waf-samba cpan-base perlnative update-rc.d perl-version pkgconfig@@ -85,7 +85,7 @@ PACKAGECONFIG[sasl] = ",,cyrus-sasl" PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi" PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi" -PACKAGECONFIG[valgrind] = ",--without-valgrind,valgrind," +PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" PACKAGECONFIG[lttng] = "--with-lttng,--without-lttng,lttng-ust" PACKAGECONFIG[archive] = "--with-libarchive,--without-libarchive,libarchive" PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#107982): https://lists.openembedded.org/g/openembedded-devel/message/107982
Mute This Topic: https://lists.openembedded.org/mt/103459767/7283133
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-