diff options
| author | Yi Zhao <yi.zhao@windriver.com> | 2023-01-01 15:27:39 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-01-01 02:23:29 -0800 |
| commit | 5494dc9ff377a8c102d862bf0db896341aae3ac8 (patch) | |
| tree | 703e49db414912e92801ca9f79659e7fb1893a5e /meta-networking | |
| parent | 82b8d99ab705edc67cb288c054abaa18f74b102a (diff) | |
| download | meta-openembedded-5494dc9ff377a8c102d862bf0db896341aae3ac8.tar.gz | |
samba upgrade 4.14.14 -> 4.17.4
The 4.14.x is EOL:
https://wiki.samba.org/index.php/Samba_Release_Planning
Upgrade to latest 4.17.x.
Release Notes:
https://www.samba.org/samba/history/samba-4.17.0.html
https://www.samba.org/samba/history/samba-4.17.4.html
* Refresh patches
* Update PACKAGECONFIG
* Split a new package ctdb
* Add a patch to skip checking PYTHONHASHSEED
* Drop the following patches as these issues have been fixed upstream:
0005-samba-build-dnsserver_common-code.patch
netdb_defines.patch
samba-fix-musl-lib-without-innetgr.patch
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
32 files changed, 177 insertions, 208 deletions
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-aarch64.txt b/meta-networking/files/waf-cross-answers/cross-answers-aarch64.txt index e91df71ea2..fa960ea2b9 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-aarch64.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-aarch64.txt | |||
| @@ -44,3 +44,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 45 | Checking whether fcntl supports setting/geting hints: NO | 45 | Checking whether fcntl supports setting/geting hints: NO |
| 46 | Checking for readlink breakage: NO | 46 | Checking for readlink breakage: NO |
| 47 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-aarch64_be.txt b/meta-networking/files/waf-cross-answers/cross-answers-aarch64_be.txt index e91df71ea2..fa960ea2b9 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-aarch64_be.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-aarch64_be.txt | |||
| @@ -44,3 +44,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 45 | Checking whether fcntl supports setting/geting hints: NO | 45 | Checking whether fcntl supports setting/geting hints: NO |
| 46 | Checking for readlink breakage: NO | 46 | Checking for readlink breakage: NO |
| 47 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-arm.txt b/meta-networking/files/waf-cross-answers/cross-answers-arm.txt index b670e4ac44..19d0b6f765 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-arm.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-arm.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-armeb.txt b/meta-networking/files/waf-cross-answers/cross-answers-armeb.txt index b670e4ac44..19d0b6f765 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-armeb.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-armeb.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-i586.txt b/meta-networking/files/waf-cross-answers/cross-answers-i586.txt index b670e4ac44..19d0b6f765 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-i586.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-i586.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-i686.txt b/meta-networking/files/waf-cross-answers/cross-answers-i686.txt index b670e4ac44..19d0b6f765 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-i686.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-i686.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-mips.txt b/meta-networking/files/waf-cross-answers/cross-answers-mips.txt index ad52b4a9ab..aa87368802 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-mips.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-mips.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-mips64.txt b/meta-networking/files/waf-cross-answers/cross-answers-mips64.txt index c799942d4b..407e4154c2 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-mips64.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-mips64.txt | |||
| @@ -44,3 +44,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 45 | Checking whether fcntl supports setting/geting hints: NO | 45 | Checking whether fcntl supports setting/geting hints: NO |
| 46 | Checking for readlink breakage: NO | 46 | Checking for readlink breakage: NO |
| 47 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt b/meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt index c799942d4b..407e4154c2 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt | |||
| @@ -44,3 +44,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 45 | Checking whether fcntl supports setting/geting hints: NO | 45 | Checking whether fcntl supports setting/geting hints: NO |
| 46 | Checking for readlink breakage: NO | 46 | Checking for readlink breakage: NO |
| 47 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-mipsel.txt b/meta-networking/files/waf-cross-answers/cross-answers-mipsel.txt index ad52b4a9ab..aa87368802 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-mipsel.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-mipsel.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-powerpc.txt b/meta-networking/files/waf-cross-answers/cross-answers-powerpc.txt index ac857d46ed..e94a5a4731 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-powerpc.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-powerpc.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-powerpc64.txt b/meta-networking/files/waf-cross-answers/cross-answers-powerpc64.txt index dfc48754cb..a5c0d0d61e 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-powerpc64.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-powerpc64.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-powerpc64le.txt b/meta-networking/files/waf-cross-answers/cross-answers-powerpc64le.txt index dfc48754cb..a5c0d0d61e 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-powerpc64le.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-powerpc64le.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-riscv32.txt b/meta-networking/files/waf-cross-answers/cross-answers-riscv32.txt index b670e4ac44..19d0b6f765 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-riscv32.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-riscv32.txt | |||
| @@ -45,3 +45,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 45 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 46 | Checking whether fcntl supports setting/geting hints: NO | 46 | Checking whether fcntl supports setting/geting hints: NO |
| 47 | Checking for readlink breakage: NO | 47 | Checking for readlink breakage: NO |
| 48 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-riscv64.txt b/meta-networking/files/waf-cross-answers/cross-answers-riscv64.txt index e91df71ea2..fa960ea2b9 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-riscv64.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-riscv64.txt | |||
| @@ -44,3 +44,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 45 | Checking whether fcntl supports setting/geting hints: NO | 45 | Checking whether fcntl supports setting/geting hints: NO |
| 46 | Checking for readlink breakage: NO | 46 | Checking for readlink breakage: NO |
| 47 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/files/waf-cross-answers/cross-answers-x86_64.txt b/meta-networking/files/waf-cross-answers/cross-answers-x86_64.txt index e91df71ea2..fa960ea2b9 100644 --- a/meta-networking/files/waf-cross-answers/cross-answers-x86_64.txt +++ b/meta-networking/files/waf-cross-answers/cross-answers-x86_64.txt | |||
| @@ -44,3 +44,4 @@ Checking value of GNUTLS_MAC_AES_CMAC_128: OK | |||
| 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO | 44 | Checking whether fcntl supports flags to send direct I/O availability signals: NO |
| 45 | Checking whether fcntl supports setting/geting hints: NO | 45 | Checking whether fcntl supports setting/geting hints: NO |
| 46 | Checking for readlink breakage: NO | 46 | Checking for readlink breakage: NO |
| 47 | Checking for gnutls fips mode support: NO | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0001-Don-t-check-xsltproc-manpages.patch b/meta-networking/recipes-connectivity/samba/samba/0001-Don-t-check-xsltproc-manpages.patch index f4668dc6fd..9f597bee2d 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0001-Don-t-check-xsltproc-manpages.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0001-Don-t-check-xsltproc-manpages.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3bc1ebc3d2758af4067b3aace7ddd0ea0cb0b57b Mon Sep 17 00:00:00 2001 | 1 | From f6fa33bfc2e1272198db6ea08910b4162b364b18 Mon Sep 17 00:00:00 2001 |
| 2 | From: Bian Naimeng <biannm@cn.fujitsu.com> | 2 | From: Bian Naimeng <biannm@cn.fujitsu.com> |
| 3 | Date: Mon, 18 Apr 2016 17:00:53 -0400 | 3 | Date: Mon, 18 Apr 2016 17:00:53 -0400 |
| 4 | Subject: [PATCH] Don't check xsltproc manpages | 4 | Subject: [PATCH] Don't check xsltproc manpages |
| @@ -16,10 +16,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
| 16 | 3 files changed, 3 insertions(+), 3 deletions(-) | 16 | 3 files changed, 3 insertions(+), 3 deletions(-) |
| 17 | 17 | ||
| 18 | diff --git a/lib/ldb/wscript b/lib/ldb/wscript | 18 | diff --git a/lib/ldb/wscript b/lib/ldb/wscript |
| 19 | index bf6129b..c515deb 100644 | 19 | index 60bb7cf..b7b0152 100644 |
| 20 | --- a/lib/ldb/wscript | 20 | --- a/lib/ldb/wscript |
| 21 | +++ b/lib/ldb/wscript | 21 | +++ b/lib/ldb/wscript |
| 22 | @@ -143,7 +143,7 @@ def configure(conf): | 22 | @@ -144,7 +144,7 @@ def configure(conf): |
| 23 | conf.DEFINE('EXPECTED_SYSTEM_LDB_VERSION_RELEASE', int(v[2])) | 23 | conf.DEFINE('EXPECTED_SYSTEM_LDB_VERSION_RELEASE', int(v[2])) |
| 24 | 24 | ||
| 25 | if conf.env.standalone_ldb: | 25 | if conf.env.standalone_ldb: |
| @@ -29,7 +29,7 @@ index bf6129b..c515deb 100644 | |||
| 29 | # we need this for the ldap backend | 29 | # we need this for the ldap backend |
| 30 | if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): | 30 | if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): |
| 31 | diff --git a/lib/talloc/wscript b/lib/talloc/wscript | 31 | diff --git a/lib/talloc/wscript b/lib/talloc/wscript |
| 32 | index a767477..f754819 100644 | 32 | index 3089663..76cd65e 100644 |
| 33 | --- a/lib/talloc/wscript | 33 | --- a/lib/talloc/wscript |
| 34 | +++ b/lib/talloc/wscript | 34 | +++ b/lib/talloc/wscript |
| 35 | @@ -48,7 +48,7 @@ def configure(conf): | 35 | @@ -48,7 +48,7 @@ def configure(conf): |
| @@ -42,7 +42,7 @@ index a767477..f754819 100644 | |||
| 42 | conf.CHECK_HEADERS('sys/auxv.h') | 42 | conf.CHECK_HEADERS('sys/auxv.h') |
| 43 | conf.CHECK_FUNCS('getauxval') | 43 | conf.CHECK_FUNCS('getauxval') |
| 44 | diff --git a/lib/tdb/wscript b/lib/tdb/wscript | 44 | diff --git a/lib/tdb/wscript b/lib/tdb/wscript |
| 45 | index e56ddd0..467dd65 100644 | 45 | index 71ada31..accd474 100644 |
| 46 | --- a/lib/tdb/wscript | 46 | --- a/lib/tdb/wscript |
| 47 | +++ b/lib/tdb/wscript | 47 | +++ b/lib/tdb/wscript |
| 48 | @@ -95,7 +95,7 @@ def configure(conf): | 48 | @@ -95,7 +95,7 @@ def configure(conf): |
| @@ -55,5 +55,5 @@ index e56ddd0..467dd65 100644 | |||
| 55 | conf.SAMBA_CHECK_PYTHON() | 55 | conf.SAMBA_CHECK_PYTHON() |
| 56 | conf.SAMBA_CHECK_PYTHON_HEADERS() | 56 | conf.SAMBA_CHECK_PYTHON_HEADERS() |
| 57 | -- | 57 | -- |
| 58 | 2.17.1 | 58 | 2.25.1 |
| 59 | 59 | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch b/meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch index 292e614ebf..186ee553a2 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 9ebea97a52e4f70e831dd6402b865c77753ce1cc Mon Sep 17 00:00:00 2001 | 1 | From f7b8e2e149b06a8033e31f4242c392573fa9ab52 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Tue, 25 Jun 2019 14:25:08 +0800 | 3 | Date: Tue, 25 Jun 2019 14:25:08 +0800 |
| 4 | Subject: [PATCH] do not import target module while cross compile | 4 | Subject: [PATCH] do not import target module while cross compile |
| @@ -15,7 +15,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
| 15 | 1 file changed, 19 insertions(+), 8 deletions(-) | 15 | 1 file changed, 19 insertions(+), 8 deletions(-) |
| 16 | 16 | ||
| 17 | diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py | 17 | diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py |
| 18 | index 5f080dd..cdc115e 100644 | 18 | index 7d2d855..01dcb56 100644 |
| 19 | --- a/buildtools/wafsamba/samba_bundled.py | 19 | --- a/buildtools/wafsamba/samba_bundled.py |
| 20 | +++ b/buildtools/wafsamba/samba_bundled.py | 20 | +++ b/buildtools/wafsamba/samba_bundled.py |
| 21 | @@ -4,6 +4,7 @@ import sys | 21 | @@ -4,6 +4,7 @@ import sys |
| @@ -24,9 +24,9 @@ index 5f080dd..cdc115e 100644 | |||
| 24 | from wafsamba import samba_utils | 24 | from wafsamba import samba_utils |
| 25 | +import importlib.util, os | 25 | +import importlib.util, os |
| 26 | 26 | ||
| 27 | def PRIVATE_NAME(bld, name, private_extension, private_library): | 27 | def PRIVATE_NAME(bld, name): |
| 28 | '''possibly rename a library to include a bundled extension''' | 28 | '''possibly rename a library to include a bundled extension''' |
| 29 | @@ -249,17 +250,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): | 29 | @@ -241,17 +242,27 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, libname, modulename, minversion='0.0.0'): |
| 30 | # versions | 30 | # versions |
| 31 | minversion = minimum_library_version(conf, libname, minversion) | 31 | minversion = minimum_library_version(conf, libname, minversion) |
| 32 | 32 | ||
| @@ -63,5 +63,5 @@ index 5f080dd..cdc115e 100644 | |||
| 63 | Logs.error('ERROR: Python module %s of version %s not found, and bundling disabled' % (libname, minversion)) | 63 | Logs.error('ERROR: Python module %s of version %s not found, and bundling disabled' % (libname, minversion)) |
| 64 | sys.exit(1) | 64 | sys.exit(1) |
| 65 | -- | 65 | -- |
| 66 | 2.17.1 | 66 | 2.25.1 |
| 67 | 67 | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0003-Add-config-option-without-valgrind.patch b/meta-networking/recipes-connectivity/samba/samba/0003-Add-config-option-without-valgrind.patch index 93ca005d68..f2e25eb105 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0003-Add-config-option-without-valgrind.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0003-Add-config-option-without-valgrind.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 6455448eb060d03a534539f1a424e2d3e44319e1 Mon Sep 17 00:00:00 2001 | 1 | From 556bb3cf17ccdf0b0ee0d82801c4b20cf0990ae4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Thu, 20 Jun 2019 14:11:16 +0800 | 3 | Date: Thu, 20 Jun 2019 14:11:16 +0800 |
| 4 | Subject: [PATCH] Add config option without-valgrind | 4 | Subject: [PATCH] Add config option without-valgrind |
| @@ -15,10 +15,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
| 15 | 2 files changed, 7 insertions(+), 2 deletions(-) | 15 | 2 files changed, 7 insertions(+), 2 deletions(-) |
| 16 | 16 | ||
| 17 | diff --git a/lib/replace/wscript b/lib/replace/wscript | 17 | diff --git a/lib/replace/wscript b/lib/replace/wscript |
| 18 | index 2c856b6..bc726f7 100644 | 18 | index 2f17999..9ef9bd9 100644 |
| 19 | --- a/lib/replace/wscript | 19 | --- a/lib/replace/wscript |
| 20 | +++ b/lib/replace/wscript | 20 | +++ b/lib/replace/wscript |
| 21 | @@ -121,8 +121,9 @@ def configure(conf): | 21 | @@ -114,8 +114,9 @@ def configure(conf): |
| 22 | conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') | 22 | conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') |
| 23 | conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') | 23 | conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') |
| 24 | 24 | ||
| @@ -31,10 +31,10 @@ index 2c856b6..bc726f7 100644 | |||
| 31 | conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') | 31 | conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') |
| 32 | conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') | 32 | conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') |
| 33 | diff --git a/wscript b/wscript | 33 | diff --git a/wscript b/wscript |
| 34 | index 83d9421..969b07a 100644 | 34 | index 3af4207..54d7e9e 100644 |
| 35 | --- a/wscript | 35 | --- a/wscript |
| 36 | +++ b/wscript | 36 | +++ b/wscript |
| 37 | @@ -123,6 +123,10 @@ def options(opt): | 37 | @@ -116,6 +116,10 @@ def options(opt): |
| 38 | help=("Disable RELRO builds"), | 38 | help=("Disable RELRO builds"), |
| 39 | action="store_false", dest='enable_relro') | 39 | action="store_false", dest='enable_relro') |
| 40 | 40 | ||
| @@ -46,5 +46,5 @@ index 83d9421..969b07a 100644 | |||
| 46 | 46 | ||
| 47 | opt.load('python') # options for disabling pyc or pyo compilation | 47 | opt.load('python') # options for disabling pyc or pyo compilation |
| 48 | -- | 48 | -- |
| 49 | 2.17.1 | 49 | 2.25.1 |
| 50 | 50 | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0004-Add-options-to-configure-the-use-of-libbsd.patch b/meta-networking/recipes-connectivity/samba/samba/0004-Add-options-to-configure-the-use-of-libbsd.patch index 5fd32f3851..2b0fbff8e7 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0004-Add-options-to-configure-the-use-of-libbsd.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0004-Add-options-to-configure-the-use-of-libbsd.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 5abf3c2efa1cd4e16878b6b26068ff153973ebd3 Mon Sep 17 00:00:00 2001 | 1 | From 515f2455b4b69f5fcd2c61a532663280785db737 Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Kjellerstedt <pkj@axis.com> | 2 | From: Peter Kjellerstedt <pkj@axis.com> |
| 3 | Date: Tue, 28 Apr 2020 02:05:33 +0200 | 3 | Date: Tue, 28 Apr 2020 02:05:33 +0200 |
| 4 | Subject: [PATCH] Add options to configure the use of libbsd | 4 | Subject: [PATCH] Add options to configure the use of libbsd |
| @@ -15,10 +15,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
| 15 | 3 files changed, 29 insertions(+), 15 deletions(-) | 15 | 3 files changed, 29 insertions(+), 15 deletions(-) |
| 16 | 16 | ||
| 17 | diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript | 17 | diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript |
| 18 | index 1aadb95..e7b47c0 100644 | 18 | index 8729b08..1c55428 100644 |
| 19 | --- a/buildtools/wafsamba/wscript | 19 | --- a/buildtools/wafsamba/wscript |
| 20 | +++ b/buildtools/wafsamba/wscript | 20 | +++ b/buildtools/wafsamba/wscript |
| 21 | @@ -88,6 +88,13 @@ def options(opt): | 21 | @@ -145,6 +145,13 @@ Currently the only tested value is 'smbtorture,smbd/smbd' for Samba'''), |
| 22 | help=("Disable use of gettext"), | 22 | help=("Disable use of gettext"), |
| 23 | action="store_true", dest='disable_gettext', default=False) | 23 | action="store_true", dest='disable_gettext', default=False) |
| 24 | 24 | ||
| @@ -33,10 +33,10 @@ index 1aadb95..e7b47c0 100644 | |||
| 33 | 33 | ||
| 34 | gr.add_option('-C', | 34 | gr.add_option('-C', |
| 35 | diff --git a/lib/replace/wscript b/lib/replace/wscript | 35 | diff --git a/lib/replace/wscript b/lib/replace/wscript |
| 36 | index bc726f7..44ad0d6 100644 | 36 | index 9ef9bd9..d47de4f 100644 |
| 37 | --- a/lib/replace/wscript | 37 | --- a/lib/replace/wscript |
| 38 | +++ b/lib/replace/wscript | 38 | +++ b/lib/replace/wscript |
| 39 | @@ -419,20 +419,21 @@ def configure(conf): | 39 | @@ -439,20 +439,21 @@ def configure(conf): |
| 40 | 40 | ||
| 41 | strlcpy_in_bsd = False | 41 | strlcpy_in_bsd = False |
| 42 | 42 | ||
| @@ -73,7 +73,7 @@ index bc726f7..44ad0d6 100644 | |||
| 73 | conf.CHECK_CODE(''' | 73 | conf.CHECK_CODE(''' |
| 74 | struct ucred cred; | 74 | struct ucred cred; |
| 75 | diff --git a/lib/texpect/wscript b/lib/texpect/wscript | 75 | diff --git a/lib/texpect/wscript b/lib/texpect/wscript |
| 76 | index 82f6b25..33eea64 100644 | 76 | index 44f92a8..79e8d09 100644 |
| 77 | --- a/lib/texpect/wscript | 77 | --- a/lib/texpect/wscript |
| 78 | +++ b/lib/texpect/wscript | 78 | +++ b/lib/texpect/wscript |
| 79 | @@ -1,7 +1,13 @@ | 79 | @@ -1,7 +1,13 @@ |
| @@ -92,5 +92,5 @@ index 82f6b25..33eea64 100644 | |||
| 92 | def build(bld): | 92 | def build(bld): |
| 93 | bld.SAMBA_BINARY('texpect', | 93 | bld.SAMBA_BINARY('texpect', |
| 94 | -- | 94 | -- |
| 95 | 2.17.1 | 95 | 2.25.1 |
| 96 | 96 | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0001-Fix-pyext_PATTERN-for-cross-compilation.patch b/meta-networking/recipes-connectivity/samba/samba/0005-Fix-pyext_PATTERN-for-cross-compilation.patch index d497dd32ca..e1b5fac0d0 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0001-Fix-pyext_PATTERN-for-cross-compilation.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0005-Fix-pyext_PATTERN-for-cross-compilation.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From a0547cacaddcb2fbef1fb9991c5ad522226e6817 Mon Sep 17 00:00:00 2001 | 1 | From a8b4a40b535a2c69eb408f649e7169bcc1975fc1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
| 3 | Date: Wed, 24 Nov 2021 13:33:35 +0800 | 3 | Date: Wed, 24 Nov 2021 13:33:35 +0800 |
| 4 | Subject: [PATCH] Fix pyext_PATTERN for cross compilation | 4 | Subject: [PATCH] Fix pyext_PATTERN for cross compilation |
| @@ -46,18 +46,18 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
| 46 | 1 file changed, 1 insertion(+), 1 deletion(-) | 46 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 47 | 47 | ||
| 48 | diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py | 48 | diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py |
| 49 | index b1c8dd0..24faa31 100644 | 49 | index a23bd01..af202e0 100644 |
| 50 | --- a/third_party/waf/waflib/Tools/python.py | 50 | --- a/third_party/waf/waflib/Tools/python.py |
| 51 | +++ b/third_party/waf/waflib/Tools/python.py | 51 | +++ b/third_party/waf/waflib/Tools/python.py |
| 52 | @@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): | 52 | @@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): |
| 53 | x = 'MACOSX_DEPLOYMENT_TARGET' | 53 | x = 'MACOSX_DEPLOYMENT_TARGET' |
| 54 | if dct[x]: | 54 | if dct[x]: |
| 55 | env[x] = conf.environ[x] = dct[x] | 55 | env[x] = conf.environ[x] = str(dct[x]) |
| 56 | - env.pyext_PATTERN = '%s' + dct['SO'] # not a mistake | 56 | - env.pyext_PATTERN = '%s' + (dct['EXT_SUFFIX'] or dct['SO']) # SO is deprecated in 3.5 and removed in 3.11 |
| 57 | + env.pyext_PATTERN = '%s.so' | 57 | + env.pyext_PATTERN = '%s.so' |
| 58 | 58 | ||
| 59 | 59 | ||
| 60 | # Try to get pythonX.Y-config | 60 | # Try to get pythonX.Y-config |
| 61 | -- | 61 | -- |
| 62 | 2.17.1 | 62 | 2.25.1 |
| 63 | 63 | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0005-samba-build-dnsserver_common-code.patch b/meta-networking/recipes-connectivity/samba/samba/0005-samba-build-dnsserver_common-code.patch deleted file mode 100644 index 2abbe563ae..0000000000 --- a/meta-networking/recipes-connectivity/samba/samba/0005-samba-build-dnsserver_common-code.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From 10d7abc8f1aa99ae45209aeb704978d206f329c0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Joe Slater <joe.slater@windriver.com> | ||
| 3 | Date: Tue, 1 Jun 2021 11:09:19 +0800 | ||
| 4 | Subject: [PATCH] samba: build dnsserver_common code | ||
| 5 | |||
| 6 | Just 'install' does not seem to do it. | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | |||
| 10 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
| 11 | --- | ||
| 12 | source4/dns_server/wscript_build | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/source4/dns_server/wscript_build b/source4/dns_server/wscript_build | ||
| 16 | index e97c85d..a49fbb9 100644 | ||
| 17 | --- a/source4/dns_server/wscript_build | ||
| 18 | +++ b/source4/dns_server/wscript_build | ||
| 19 | @@ -4,7 +4,7 @@ bld.SAMBA_LIBRARY('dnsserver_common', | ||
| 20 | source='dnsserver_common.c', | ||
| 21 | deps='samba-util samba-errors ldbsamba clidns', | ||
| 22 | private_library=True, | ||
| 23 | - install=bld.AD_DC_BUILD_IS_ENABLED() | ||
| 24 | + enabled=bld.AD_DC_BUILD_IS_ENABLED() | ||
| 25 | ) | ||
| 26 | |||
| 27 | bld.SAMBA_MODULE('service_dns', | ||
| 28 | -- | ||
| 29 | 2.17.1 | ||
| 30 | |||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0001-smbtorture-skip-test-case-tfork_cmd_send.patch b/meta-networking/recipes-connectivity/samba/samba/0006-smbtorture-skip-test-case-tfork_cmd_send.patch index 90ee317860..cc4c15e099 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0001-smbtorture-skip-test-case-tfork_cmd_send.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0006-smbtorture-skip-test-case-tfork_cmd_send.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 059b517f9ef6cbdc696e0983ce255b1728042827 Mon Sep 17 00:00:00 2001 | 1 | From 950b5977ea7e72343067d0070cc35fb0dc5163d4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
| 3 | Date: Thu, 25 Aug 2022 16:46:04 +0800 | 3 | Date: Thu, 25 Aug 2022 16:46:04 +0800 |
| 4 | Subject: [PATCH] smbtorture: skip test case tfork_cmd_send | 4 | Subject: [PATCH] smbtorture: skip test case tfork_cmd_send |
diff --git a/meta-networking/recipes-connectivity/samba/samba/0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch b/meta-networking/recipes-connectivity/samba/samba/0007-waf-Fix-errors-with-Werror-implicit-function-declara.patch index 4a89f76782..91eb22967a 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0007-waf-Fix-errors-with-Werror-implicit-function-declara.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 28ec4c9323e67cd114a0465015c9f3c2e64e6829 Mon Sep 17 00:00:00 2001 | 1 | From 95946ce8b6317f68c51338d19d237ce6da61d1c3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 27 Aug 2022 13:05:26 -0700 | 3 | Date: Sat, 27 Aug 2022 13:05:26 -0700 |
| 4 | Subject: [PATCH] waf: Fix errors with Werror=implicit-function-declaration | 4 | Subject: [PATCH] waf: Fix errors with Werror=implicit-function-declaration |
| @@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | 16 | ||
| 17 | diff --git a/buildtools/wafsamba/samba_waf18.py b/buildtools/wafsamba/samba_waf18.py | 17 | diff --git a/buildtools/wafsamba/samba_waf18.py b/buildtools/wafsamba/samba_waf18.py |
| 18 | index 7a0a08e..c0d2c3e 100644 | 18 | index e2a078b..e145c77 100644 |
| 19 | --- a/buildtools/wafsamba/samba_waf18.py | 19 | --- a/buildtools/wafsamba/samba_waf18.py |
| 20 | +++ b/buildtools/wafsamba/samba_waf18.py | 20 | +++ b/buildtools/wafsamba/samba_waf18.py |
| 21 | @@ -209,7 +209,7 @@ def CHECK_LIBRARY_SUPPORT(conf, rpath=False, version_script=False, msg=None): | 21 | @@ -209,7 +209,7 @@ def CHECK_LIBRARY_SUPPORT(conf, rpath=False, version_script=False, msg=None): |
| @@ -28,5 +28,5 @@ index 7a0a08e..c0d2c3e 100644 | |||
| 28 | if version_script: | 28 | if version_script: |
| 29 | script = bld.srcnode.make_node('ldscript') | 29 | script = bld.srcnode.make_node('ldscript') |
| 30 | -- | 30 | -- |
| 31 | 2.37.2 | 31 | 2.25.1 |
| 32 | 32 | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0001-Deleted-settiong-of-python-to-fix-the-install-confli.patch b/meta-networking/recipes-connectivity/samba/samba/0008-Deleted-settiong-of-python-to-fix-the-install-confli.patch index 6e4cdf12d6..45a7c82d80 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0001-Deleted-settiong-of-python-to-fix-the-install-confli.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0008-Deleted-settiong-of-python-to-fix-the-install-confli.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From f8e1d71e702dfc6965ecb3109738b5d188af4267 Mon Sep 17 00:00:00 2001 | 1 | From f783bb9c87ce11e824dfefca473d0dcf6edad238 Mon Sep 17 00:00:00 2001 |
| 2 | From: Lei Maohui <leimaohui@fujitsu.com> | 2 | From: Lei Maohui <leimaohui@fujitsu.com> |
| 3 | Date: Sun, 30 Oct 2022 11:59:31 +0900 | 3 | Date: Sun, 30 Oct 2022 11:59:31 +0900 |
| 4 | Subject: [PATCH] Deleted settiong of python to fix the install conflict error | 4 | Subject: [PATCH] Deleted settiong of python to fix the install conflict error |
| @@ -35,15 +35,15 @@ Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> | |||
| 35 | 7 files changed, 7 deletions(-) | 35 | 7 files changed, 7 deletions(-) |
| 36 | 36 | ||
| 37 | diff --git a/source4/scripting/bin/samba-gpupdate b/source4/scripting/bin/samba-gpupdate | 37 | diff --git a/source4/scripting/bin/samba-gpupdate b/source4/scripting/bin/samba-gpupdate |
| 38 | index 85300e1..02f40cd 100755 | 38 | index 4b3f057..08fec2d 100755 |
| 39 | --- a/source4/scripting/bin/samba-gpupdate | 39 | --- a/source4/scripting/bin/samba-gpupdate |
| 40 | +++ b/source4/scripting/bin/samba-gpupdate | 40 | +++ b/source4/scripting/bin/samba-gpupdate |
| 41 | @@ -25,7 +25,6 @@ applied, have changed, or is in the right container''' | 41 | @@ -25,7 +25,6 @@ applied, have changed, or is in the right container''' |
| 42 | import os | 42 | import os |
| 43 | import sys | 43 | import sys |
| 44 | 44 | ||
| 45 | -sys.path.insert(0, "bin/python") | 45 | -sys.path.insert(0, "bin/python") |
| 46 | 46 | ||
| 47 | import optparse | 47 | import optparse |
| 48 | from samba import getopt as options | 48 | from samba import getopt as options |
| 49 | diff --git a/source4/scripting/bin/samba-tool b/source4/scripting/bin/samba-tool | 49 | diff --git a/source4/scripting/bin/samba-tool b/source4/scripting/bin/samba-tool |
| @@ -52,46 +52,46 @@ index f8a70a6..3c818de 100755 | |||
| 52 | +++ b/source4/scripting/bin/samba-tool | 52 | +++ b/source4/scripting/bin/samba-tool |
| 53 | @@ -22,7 +22,6 @@ | 53 | @@ -22,7 +22,6 @@ |
| 54 | import sys | 54 | import sys |
| 55 | 55 | ||
| 56 | # Find right direction when running from source tree | 56 | # Find right direction when running from source tree |
| 57 | -sys.path.insert(0, "bin/python") | 57 | -sys.path.insert(0, "bin/python") |
| 58 | 58 | ||
| 59 | # make sure the script dies immediately when hitting control-C, | 59 | # make sure the script dies immediately when hitting control-C, |
| 60 | # rather than raising KeyboardInterrupt. As we do all database | 60 | # rather than raising KeyboardInterrupt. As we do all database |
| 61 | diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate | 61 | diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate |
| 62 | index 518bb89..277f0ee 100755 | 62 | index 1ce53f5..2cdfbf8 100755 |
| 63 | --- a/source4/scripting/bin/samba_dnsupdate | 63 | --- a/source4/scripting/bin/samba_dnsupdate |
| 64 | +++ b/source4/scripting/bin/samba_dnsupdate | 64 | +++ b/source4/scripting/bin/samba_dnsupdate |
| 65 | @@ -36,7 +36,6 @@ os.environ['PYTHONUNBUFFERED'] = '1' | 65 | @@ -36,7 +36,6 @@ os.environ['PYTHONUNBUFFERED'] = '1' |
| 66 | os.environ["TZ"] = "GMT" | 66 | os.environ["TZ"] = "GMT" |
| 67 | 67 | ||
| 68 | # Find right directory when running from source tree | 68 | # Find right directory when running from source tree |
| 69 | -sys.path.insert(0, "bin/python") | 69 | -sys.path.insert(0, "bin/python") |
| 70 | 70 | ||
| 71 | import samba | 71 | import samba |
| 72 | import optparse | 72 | import optparse |
| 73 | diff --git a/source4/scripting/bin/samba_downgrade_db b/source4/scripting/bin/samba_downgrade_db | 73 | diff --git a/source4/scripting/bin/samba_downgrade_db b/source4/scripting/bin/samba_downgrade_db |
| 74 | index 87a989b..93a7f8c 100755 | 74 | index b9a0909..80f581e 100755 |
| 75 | --- a/source4/scripting/bin/samba_downgrade_db | 75 | --- a/source4/scripting/bin/samba_downgrade_db |
| 76 | +++ b/source4/scripting/bin/samba_downgrade_db | 76 | +++ b/source4/scripting/bin/samba_downgrade_db |
| 77 | @@ -24,7 +24,6 @@ import optparse | 77 | @@ -23,7 +23,6 @@ import optparse |
| 78 | import sys | 78 | import sys |
| 79 | 79 | ||
| 80 | # Find right directory when running from source tree | 80 | # Find right directory when running from source tree |
| 81 | -sys.path.insert(0, "bin/python") | 81 | -sys.path.insert(0, "bin/python") |
| 82 | 82 | ||
| 83 | 83 | ||
| 84 | import samba | 84 | import samba |
| 85 | diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc | 85 | diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc |
| 86 | index 122a5ed..79165f3 100755 | 86 | index 67d801e..2fc0d6a 100755 |
| 87 | --- a/source4/scripting/bin/samba_kcc | 87 | --- a/source4/scripting/bin/samba_kcc |
| 88 | +++ b/source4/scripting/bin/samba_kcc | 88 | +++ b/source4/scripting/bin/samba_kcc |
| 89 | @@ -37,7 +37,6 @@ os.environ['PYTHONUNBUFFERED'] = '1' | 89 | @@ -36,7 +36,6 @@ os.environ['PYTHONUNBUFFERED'] = '1' |
| 90 | os.environ["TZ"] = "GMT" | 90 | os.environ["TZ"] = "GMT" |
| 91 | 91 | ||
| 92 | # Find right directory when running from source tree | 92 | # Find right directory when running from source tree |
| 93 | -sys.path.insert(0, "bin/python") | 93 | -sys.path.insert(0, "bin/python") |
| 94 | 94 | ||
| 95 | import optparse | 95 | import optparse |
| 96 | import time | 96 | import time |
| 97 | diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate | 97 | diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate |
| @@ -100,23 +100,24 @@ index 84ff771..b6fe041 100755 | |||
| 100 | +++ b/source4/scripting/bin/samba_spnupdate | 100 | +++ b/source4/scripting/bin/samba_spnupdate |
| 101 | @@ -32,7 +32,6 @@ os.environ['PYTHONUNBUFFERED'] = '1' | 101 | @@ -32,7 +32,6 @@ os.environ['PYTHONUNBUFFERED'] = '1' |
| 102 | os.environ["TZ"] = "GMT" | 102 | os.environ["TZ"] = "GMT" |
| 103 | 103 | ||
| 104 | # Find right directory when running from source tree | 104 | # Find right directory when running from source tree |
| 105 | -sys.path.insert(0, "bin/python") | 105 | -sys.path.insert(0, "bin/python") |
| 106 | 106 | ||
| 107 | import samba, ldb | 107 | import samba, ldb |
| 108 | import optparse | 108 | import optparse |
| 109 | diff --git a/source4/scripting/bin/samba_upgradedns b/source4/scripting/bin/samba_upgradedns | 109 | diff --git a/source4/scripting/bin/samba_upgradedns b/source4/scripting/bin/samba_upgradedns |
| 110 | index 308dbb0..d00244f 100755 | 110 | index afc5807..727a3cc 100755 |
| 111 | --- a/source4/scripting/bin/samba_upgradedns | 111 | --- a/source4/scripting/bin/samba_upgradedns |
| 112 | +++ b/source4/scripting/bin/samba_upgradedns | 112 | +++ b/source4/scripting/bin/samba_upgradedns |
| 113 | @@ -27,7 +27,6 @@ import grp | 113 | @@ -27,7 +27,6 @@ import grp |
| 114 | from base64 import b64encode | 114 | from base64 import b64encode |
| 115 | import shlex | 115 | import shlex |
| 116 | 116 | ||
| 117 | -sys.path.insert(0, "bin/python") | 117 | -sys.path.insert(0, "bin/python") |
| 118 | 118 | ||
| 119 | import ldb | 119 | import ldb |
| 120 | import samba | 120 | import samba |
| 121 | -- | 121 | -- |
| 122 | 2.25.1 | 122 | 2.25.1 |
| 123 | |||
diff --git a/meta-networking/recipes-connectivity/samba/samba/0009-wscript-skip-checking-PYTHONHASHSEED.patch b/meta-networking/recipes-connectivity/samba/samba/0009-wscript-skip-checking-PYTHONHASHSEED.patch new file mode 100644 index 0000000000..af659a1e53 --- /dev/null +++ b/meta-networking/recipes-connectivity/samba/samba/0009-wscript-skip-checking-PYTHONHASHSEED.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 342a233eb0abb00a4d6a0c824a1337ff71d93c32 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
| 3 | Date: Wed, 28 Dec 2022 16:31:05 +0800 | ||
| 4 | Subject: [PATCH] wscript: skip checking PYTHONHASHSEED | ||
| 5 | |||
| 6 | Skip checking PYTHONHASHSEED as it is set to 0 in oe-core by default. | ||
| 7 | |||
| 8 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 9 | --- | ||
| 10 | buildtools/wafsamba/wscript | 4 ---- | ||
| 11 | 1 file changed, 4 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript | ||
| 14 | index 1c55428..01b242d 100644 | ||
| 15 | --- a/buildtools/wafsamba/wscript | ||
| 16 | +++ b/buildtools/wafsamba/wscript | ||
| 17 | @@ -8,10 +8,6 @@ import wafsamba | ||
| 18 | from samba_utils import symlink | ||
| 19 | from optparse import SUPPRESS_HELP | ||
| 20 | |||
| 21 | -phs = os.environ.get("PYTHONHASHSEED", None) | ||
| 22 | -if phs != "1": | ||
| 23 | - raise Errors.WafError('''PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!''') | ||
| 24 | - | ||
| 25 | # this forces configure to be re-run if any of the configure | ||
| 26 | # sections of the build scripts change. We have to check | ||
| 27 | # for this in sys.argv as options have not yet been parsed when | ||
| 28 | -- | ||
| 29 | 2.25.1 | ||
| 30 | |||
diff --git a/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch b/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch index 5c299d617b..e6e8784338 100644 --- a/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch +++ b/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 5bd7b5d04435bd593349825973ce32290f5f604d Mon Sep 17 00:00:00 2001 | 1 | From 14f8ee7cd1318567b00e52217d57f0a528fd2cf7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Wed, 25 Jul 2018 09:55:25 +0800 | 3 | Date: Wed, 25 Jul 2018 09:55:25 +0800 |
| 4 | Subject: [PATCH] samba: cmocka.h: fix musl libc conflicting types error | 4 | Subject: [PATCH] samba: cmocka.h: fix musl libc conflicting types error |
| @@ -22,10 +22,10 @@ Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | |||
| 22 | 1 file changed, 3 insertions(+), 4 deletions(-) | 22 | 1 file changed, 3 insertions(+), 4 deletions(-) |
| 23 | 23 | ||
| 24 | diff --git a/third_party/cmocka/cmocka.h b/third_party/cmocka/cmocka.h | 24 | diff --git a/third_party/cmocka/cmocka.h b/third_party/cmocka/cmocka.h |
| 25 | index 4fd82a9..5443a08 100644 | 25 | index e6861c8..238201d 100644 |
| 26 | --- a/third_party/cmocka/cmocka.h | 26 | --- a/third_party/cmocka/cmocka.h |
| 27 | +++ b/third_party/cmocka/cmocka.h | 27 | +++ b/third_party/cmocka/cmocka.h |
| 28 | @@ -110,7 +110,7 @@ typedef uintmax_t LargestIntegralType; | 28 | @@ -111,7 +111,7 @@ typedef uintmax_t LargestIntegralType; |
| 29 | ((LargestIntegralType)(value)) | 29 | ((LargestIntegralType)(value)) |
| 30 | 30 | ||
| 31 | /* Smallest integral type capable of holding a pointer. */ | 31 | /* Smallest integral type capable of holding a pointer. */ |
| @@ -34,7 +34,7 @@ index 4fd82a9..5443a08 100644 | |||
| 34 | # if defined(_WIN32) | 34 | # if defined(_WIN32) |
| 35 | /* WIN32 is an ILP32 platform */ | 35 | /* WIN32 is an ILP32 platform */ |
| 36 | typedef unsigned int uintptr_t; | 36 | typedef unsigned int uintptr_t; |
| 37 | @@ -134,9 +134,8 @@ typedef uintmax_t LargestIntegralType; | 37 | @@ -135,9 +135,8 @@ typedef uintmax_t LargestIntegralType; |
| 38 | # endif /* __WORDSIZE */ | 38 | # endif /* __WORDSIZE */ |
| 39 | # endif /* _WIN32 */ | 39 | # endif /* _WIN32 */ |
| 40 | 40 | ||
| @@ -47,5 +47,5 @@ index 4fd82a9..5443a08 100644 | |||
| 47 | /* Perform an unsigned cast to uintptr_t. */ | 47 | /* Perform an unsigned cast to uintptr_t. */ |
| 48 | #define cast_to_pointer_integral_type(value) \ | 48 | #define cast_to_pointer_integral_type(value) \ |
| 49 | -- | 49 | -- |
| 50 | 2.7.4 | 50 | 2.25.1 |
| 51 | 51 | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/netdb_defines.patch b/meta-networking/recipes-connectivity/samba/samba/netdb_defines.patch deleted file mode 100644 index eb06866f46..0000000000 --- a/meta-networking/recipes-connectivity/samba/samba/netdb_defines.patch +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | Index: samba-4.6.2/nsswitch/wins.c | ||
| 2 | =================================================================== | ||
| 3 | --- samba-4.6.2.orig/nsswitch/wins.c | ||
| 4 | +++ samba-4.6.2/nsswitch/wins.c | ||
| 5 | @@ -39,6 +39,14 @@ static pthread_mutex_t wins_nss_mutex = | ||
| 6 | #define INADDRSZ 4 | ||
| 7 | #endif | ||
| 8 | |||
| 9 | +#ifndef NETDB_INTERNAL | ||
| 10 | +#define NETDB_INTERNAL (-1) | ||
| 11 | +#endif | ||
| 12 | + | ||
| 13 | +#ifndef NETDB_SUCCESS | ||
| 14 | +#define NETDB_SUCCESS 0 | ||
| 15 | +#endif | ||
| 16 | + | ||
| 17 | NSS_STATUS _nss_wins_gethostbyname_r(const char *hostname, | ||
| 18 | struct hostent *he, | ||
| 19 | char *buffer, | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/samba-4.3.9-remove-getpwent_r.patch b/meta-networking/recipes-connectivity/samba/samba/samba-4.3.9-remove-getpwent_r.patch index a75ac2bbae..22451a2d11 100644 --- a/meta-networking/recipes-connectivity/samba/samba/samba-4.3.9-remove-getpwent_r.patch +++ b/meta-networking/recipes-connectivity/samba/samba/samba-4.3.9-remove-getpwent_r.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 02e0b14d8fa025a5db410d60a7c0dfebd536aaeb Mon Sep 17 00:00:00 2001 | 1 | From 08003ea30d86a8b983be89f6a161d3baacdaa038 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 6 Nov 2016 23:40:54 -0800 | 3 | Date: Sun, 6 Nov 2016 23:40:54 -0800 |
| 4 | Subject: [PATCH] Musl does not have _r versions of getent() and getpwent() | 4 | Subject: [PATCH] Musl does not have _r versions of getent() and getpwent() |
| @@ -8,13 +8,12 @@ Taken from gentoo | |||
| 8 | http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.3.9-remove-getpwent_r.patch | 8 | http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.3.9-remove-getpwent_r.patch |
| 9 | 9 | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | |||
| 12 | --- | 11 | --- |
| 13 | source4/torture/local/nss_tests.c | 13 ++++++++----- | 12 | source4/torture/local/nss_tests.c | 13 ++++++++----- |
| 14 | 1 file changed, 8 insertions(+), 5 deletions(-) | 13 | 1 file changed, 8 insertions(+), 5 deletions(-) |
| 15 | 14 | ||
| 16 | diff --git a/source4/torture/local/nss_tests.c b/source4/torture/local/nss_tests.c | 15 | diff --git a/source4/torture/local/nss_tests.c b/source4/torture/local/nss_tests.c |
| 17 | index 2cd6122..04f13c6 100644 | 16 | index 2943122..bc185ca 100644 |
| 18 | --- a/source4/torture/local/nss_tests.c | 17 | --- a/source4/torture/local/nss_tests.c |
| 19 | +++ b/source4/torture/local/nss_tests.c | 18 | +++ b/source4/torture/local/nss_tests.c |
| 20 | @@ -247,7 +247,6 @@ static bool test_getgrnam_r(struct torture_context *tctx, | 19 | @@ -247,7 +247,6 @@ static bool test_getgrnam_r(struct torture_context *tctx, |
| @@ -33,7 +32,7 @@ index 2cd6122..04f13c6 100644 | |||
| 33 | static bool test_enum_r_passwd(struct torture_context *tctx, | 32 | static bool test_enum_r_passwd(struct torture_context *tctx, |
| 34 | struct passwd **pwd_array_p, | 33 | struct passwd **pwd_array_p, |
| 35 | size_t *num_pwd_p) | 34 | size_t *num_pwd_p) |
| 36 | @@ -381,6 +381,7 @@ static bool test_enum_r_passwd(struct torture_context *tctx, | 35 | @@ -383,6 +383,7 @@ static bool test_enum_r_passwd(struct torture_context *tctx, |
| 37 | 36 | ||
| 38 | return true; | 37 | return true; |
| 39 | } | 38 | } |
| @@ -41,7 +40,7 @@ index 2cd6122..04f13c6 100644 | |||
| 41 | 40 | ||
| 42 | static bool torture_assert_passwd_equal(struct torture_context *tctx, | 41 | static bool torture_assert_passwd_equal(struct torture_context *tctx, |
| 43 | const struct passwd *p1, | 42 | const struct passwd *p1, |
| 44 | @@ -432,7 +433,7 @@ static bool test_passwd_r(struct torture_context *tctx) | 43 | @@ -434,7 +435,7 @@ static bool test_passwd_r(struct torture_context *tctx) |
| 45 | struct passwd *pwd, pwd1, pwd2; | 44 | struct passwd *pwd, pwd1, pwd2; |
| 46 | size_t num_pwd; | 45 | size_t num_pwd; |
| 47 | 46 | ||
| @@ -50,7 +49,7 @@ index 2cd6122..04f13c6 100644 | |||
| 50 | "failed to enumerate passwd"); | 49 | "failed to enumerate passwd"); |
| 51 | 50 | ||
| 52 | for (i=0; i < num_pwd; i++) { | 51 | for (i=0; i < num_pwd; i++) { |
| 53 | @@ -460,7 +461,7 @@ static bool test_passwd_r_cross(struct torture_context *tctx) | 52 | @@ -462,7 +463,7 @@ static bool test_passwd_r_cross(struct torture_context *tctx) |
| 54 | struct passwd *pwd, pwd1, pwd2, pwd3, pwd4; | 53 | struct passwd *pwd, pwd1, pwd2, pwd3, pwd4; |
| 55 | size_t num_pwd; | 54 | size_t num_pwd; |
| 56 | 55 | ||
| @@ -59,7 +58,7 @@ index 2cd6122..04f13c6 100644 | |||
| 59 | "failed to enumerate passwd"); | 58 | "failed to enumerate passwd"); |
| 60 | 59 | ||
| 61 | for (i=0; i < num_pwd; i++) { | 60 | for (i=0; i < num_pwd; i++) { |
| 62 | @@ -531,6 +532,7 @@ static bool test_enum_group(struct torture_context *tctx, | 61 | @@ -533,6 +534,7 @@ static bool test_enum_group(struct torture_context *tctx, |
| 63 | return true; | 62 | return true; |
| 64 | } | 63 | } |
| 65 | 64 | ||
| @@ -67,7 +66,7 @@ index 2cd6122..04f13c6 100644 | |||
| 67 | static bool test_enum_r_group(struct torture_context *tctx, | 66 | static bool test_enum_r_group(struct torture_context *tctx, |
| 68 | struct group **grp_array_p, | 67 | struct group **grp_array_p, |
| 69 | size_t *num_grp_p) | 68 | size_t *num_grp_p) |
| 70 | @@ -579,6 +581,7 @@ static bool test_enum_r_group(struct torture_context *tctx, | 69 | @@ -583,6 +585,7 @@ static bool test_enum_r_group(struct torture_context *tctx, |
| 71 | 70 | ||
| 72 | return true; | 71 | return true; |
| 73 | } | 72 | } |
| @@ -75,7 +74,7 @@ index 2cd6122..04f13c6 100644 | |||
| 75 | 74 | ||
| 76 | static bool torture_assert_group_equal(struct torture_context *tctx, | 75 | static bool torture_assert_group_equal(struct torture_context *tctx, |
| 77 | const struct group *g1, | 76 | const struct group *g1, |
| 78 | @@ -635,7 +638,7 @@ static bool test_group_r(struct torture_context *tctx) | 77 | @@ -639,7 +642,7 @@ static bool test_group_r(struct torture_context *tctx) |
| 79 | struct group *grp, grp1, grp2; | 78 | struct group *grp, grp1, grp2; |
| 80 | size_t num_grp; | 79 | size_t num_grp; |
| 81 | 80 | ||
| @@ -84,7 +83,7 @@ index 2cd6122..04f13c6 100644 | |||
| 84 | "failed to enumerate group"); | 83 | "failed to enumerate group"); |
| 85 | 84 | ||
| 86 | for (i=0; i < num_grp; i++) { | 85 | for (i=0; i < num_grp; i++) { |
| 87 | @@ -663,7 +666,7 @@ static bool test_group_r_cross(struct torture_context *tctx) | 86 | @@ -667,7 +670,7 @@ static bool test_group_r_cross(struct torture_context *tctx) |
| 88 | struct group *grp, grp1, grp2, grp3, grp4; | 87 | struct group *grp, grp1, grp2, grp3, grp4; |
| 89 | size_t num_grp; | 88 | size_t num_grp; |
| 90 | 89 | ||
| @@ -93,3 +92,6 @@ index 2cd6122..04f13c6 100644 | |||
| 93 | "failed to enumerate group"); | 92 | "failed to enumerate group"); |
| 94 | 93 | ||
| 95 | for (i=0; i < num_grp; i++) { | 94 | for (i=0; i < num_grp; i++) { |
| 95 | -- | ||
| 96 | 2.25.1 | ||
| 97 | |||
diff --git a/meta-networking/recipes-connectivity/samba/samba/samba-fix-musl-lib-without-innetgr.patch b/meta-networking/recipes-connectivity/samba/samba/samba-fix-musl-lib-without-innetgr.patch deleted file mode 100644 index fb12a10e26..0000000000 --- a/meta-networking/recipes-connectivity/samba/samba/samba-fix-musl-lib-without-innetgr.patch +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | From fcb8ecd530b2d151e373974741601483326f7528 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Changqing Li <changqing.li@windriver.com> | ||
| 3 | Date: Thu, 27 Jun 2019 11:09:47 +0800 | ||
| 4 | Subject: [PATCH] samba: fix musl lib without innetgr | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 9 | --- | ||
| 10 | lib/util/access.c | 2 +- | ||
| 11 | source3/auth/user_util.c | 2 +- | ||
| 12 | 2 file changed, 2 insertion(+), 2 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/lib/util/access.c b/lib/util/access.c | ||
| 15 | index 7da0573..b94949e 100644 | ||
| 16 | --- a/lib/util/access.c | ||
| 17 | +++ b/lib/util/access.c | ||
| 18 | @@ -112,7 +112,7 @@ static bool string_match(const char *tok,const char *s) | ||
| 19 | return true; | ||
| 20 | } | ||
| 21 | } else if (tok[0] == '@') { /* netgroup: look it up */ | ||
| 22 | -#ifdef HAVE_NETGROUP | ||
| 23 | +#if defined(HAVE_NETGROUP) && defined(HAVE_INNETGR) | ||
| 24 | DATA_BLOB tmp; | ||
| 25 | char *mydomain = NULL; | ||
| 26 | char *hostname = NULL; | ||
| 27 | diff --git a/source3/auth/user_util.c b/source3/auth/user_util.c | ||
| 28 | index a76b5d4..30f523d 100644 | ||
| 29 | --- a/source3/auth/user_util.c | ||
| 30 | +++ b/source3/auth/user_util.c | ||
| 31 | @@ -148,7 +148,7 @@ static void store_map_in_gencache(TALLOC_CTX *ctx, const char *from, const char | ||
| 32 | |||
| 33 | bool user_in_netgroup(TALLOC_CTX *ctx, const char *user, const char *ngname) | ||
| 34 | { | ||
| 35 | -#ifdef HAVE_NETGROUP | ||
| 36 | +#if defined(HAVE_NETGROUP) && defined(HAVE_INNETGR) | ||
| 37 | static char *my_yp_domain = NULL; | ||
| 38 | char *lowercase_user = NULL; | ||
| 39 | |||
| 40 | -- | ||
| 41 | 2.7.4 | ||
| 42 | |||
diff --git a/meta-networking/recipes-connectivity/samba/samba/samba-pam.patch b/meta-networking/recipes-connectivity/samba/samba/samba-pam.patch index 27b40f2152..9e45459931 100644 --- a/meta-networking/recipes-connectivity/samba/samba/samba-pam.patch +++ b/meta-networking/recipes-connectivity/samba/samba/samba-pam.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 54a5279cb33abd23ef7c094d51f16078ece2da0c Mon Sep 17 00:00:00 2001 | 1 | From 6822c61ade5617c9f109e32ad4cdc115fa9e12c8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 6 Nov 2016 23:40:54 -0800 | 3 | Date: Sun, 6 Nov 2016 23:40:54 -0800 |
| 4 | Subject: [PATCH] Lifted from gentoo and ported to 4.4.5 | 4 | Subject: [PATCH] Lifted from gentoo and ported to 4.4.5 |
| @@ -6,16 +6,15 @@ Subject: [PATCH] Lifted from gentoo and ported to 4.4.5 | |||
| 6 | http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.2.7-pam.patch | 6 | http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.2.7-pam.patch |
| 7 | 7 | ||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | |||
| 10 | --- | 9 | --- |
| 11 | source3/wscript | 13 ++++++++++++- | 10 | source3/wscript | 13 ++++++++++++- |
| 12 | 1 file changed, 12 insertions(+), 1 deletion(-) | 11 | 1 file changed, 12 insertions(+), 1 deletion(-) |
| 13 | 12 | ||
| 14 | diff --git a/source3/wscript b/source3/wscript | 13 | diff --git a/source3/wscript b/source3/wscript |
| 15 | index 5436db2..864f614 100644 | 14 | index 22be17a..ee9ce52 100644 |
| 16 | --- a/source3/wscript | 15 | --- a/source3/wscript |
| 17 | +++ b/source3/wscript | 16 | +++ b/source3/wscript |
| 18 | @@ -879,7 +879,7 @@ msg.msg_accrightslen = sizeof(fd); | 17 | @@ -862,7 +862,7 @@ msg.msg_accrightslen = sizeof(fd); |
| 19 | if conf.env.with_iconv: | 18 | if conf.env.with_iconv: |
| 20 | conf.DEFINE('HAVE_ICONV', 1) | 19 | conf.DEFINE('HAVE_ICONV', 1) |
| 21 | 20 | ||
| @@ -24,7 +23,7 @@ index 5436db2..864f614 100644 | |||
| 24 | use_pam=True | 23 | use_pam=True |
| 25 | conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h') | 24 | conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h') |
| 26 | if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'): | 25 | if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'): |
| 27 | @@ -956,6 +956,17 @@ int i; i = PAM_RADIO_TYPE; | 26 | @@ -939,6 +939,17 @@ int i; i = PAM_RADIO_TYPE; |
| 28 | "or headers not found. Use --without-pam to disable " | 27 | "or headers not found. Use --without-pam to disable " |
| 29 | "PAM support."); | 28 | "PAM support."); |
| 30 | 29 | ||
| @@ -42,3 +41,6 @@ index 5436db2..864f614 100644 | |||
| 42 | seteuid = False | 41 | seteuid = False |
| 43 | 42 | ||
| 44 | # | 43 | # |
| 44 | -- | ||
| 45 | 2.25.1 | ||
| 46 | |||
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.14.14.bb b/meta-networking/recipes-connectivity/samba/samba_4.17.4.bb index 9d7259e96f..b79d23c2dd 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.14.14.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.17.4.bb | |||
| @@ -19,29 +19,31 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ | |||
| 19 | file://0002-do-not-import-target-module-while-cross-compile.patch \ | 19 | file://0002-do-not-import-target-module-while-cross-compile.patch \ |
| 20 | file://0003-Add-config-option-without-valgrind.patch \ | 20 | file://0003-Add-config-option-without-valgrind.patch \ |
| 21 | file://0004-Add-options-to-configure-the-use-of-libbsd.patch \ | 21 | file://0004-Add-options-to-configure-the-use-of-libbsd.patch \ |
| 22 | file://0005-samba-build-dnsserver_common-code.patch \ | 22 | file://0005-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
| 23 | file://0001-Fix-pyext_PATTERN-for-cross-compilation.patch \ | 23 | file://0006-smbtorture-skip-test-case-tfork_cmd_send.patch \ |
| 24 | file://0001-smbtorture-skip-test-case-tfork_cmd_send.patch \ | 24 | file://0007-waf-Fix-errors-with-Werror-implicit-function-declara.patch \ |
| 25 | file://0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch \ | 25 | file://0008-Deleted-settiong-of-python-to-fix-the-install-confli.patch \ |
| 26 | file://0001-Deleted-settiong-of-python-to-fix-the-install-confli.patch \ | 26 | file://0009-wscript-skip-checking-PYTHONHASHSEED.patch \ |
| 27 | " | 27 | " |
| 28 | 28 | ||
| 29 | SRC_URI:append:libc-musl = " \ | 29 | SRC_URI:append:libc-musl = " \ |
| 30 | file://netdb_defines.patch \ | ||
| 31 | file://samba-pam.patch \ | 30 | file://samba-pam.patch \ |
| 32 | file://samba-4.3.9-remove-getpwent_r.patch \ | 31 | file://samba-4.3.9-remove-getpwent_r.patch \ |
| 33 | file://cmocka-uintptr_t.patch \ | 32 | file://cmocka-uintptr_t.patch \ |
| 34 | file://samba-fix-musl-lib-without-innetgr.patch \ | ||
| 35 | " | 33 | " |
| 36 | 34 | ||
| 37 | SRC_URI[sha256sum] = "abd5e9e6aa45e55114b188ba189ebdfc8fd3d7718d43f749e477ce7f791e5519" | 35 | SRC_URI[sha256sum] = "c0512079db4cac707ccea4c18aebbd6b2eb3acf6e90735e7f645a326be1f4537" |
| 38 | 36 | ||
| 39 | UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.14(\.\d+)+).tar.gz" | 37 | UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.17(\.\d+)+).tar.gz" |
| 40 | 38 | ||
| 41 | inherit systemd waf-samba cpan-base perlnative update-rc.d perl-version pkgconfig | 39 | inherit systemd waf-samba cpan-base perlnative update-rc.d perl-version pkgconfig |
| 42 | 40 | ||
| 43 | # CVE-2011-2411 is valnerble only on HP NonStop Servers. | 41 | # CVE-2011-2411 is valnerble only on HP NonStop Servers. |
| 44 | CVE_CHECK_IGNORE += "CVE-2011-2411" | 42 | CVE_CHECK_IGNORE += "CVE-2011-2411" |
| 43 | # Patch for CVE-2018-1050 is applied in version 4.5.15, 4.6.13, 4.7.5. | ||
| 44 | CVE_CHECK_IGNORE += "CVE-2018-1050" | ||
| 45 | # Patch for CVE-2018-1057 is applied in version 4.3.13, 4.4.16. | ||
| 46 | CVE_CHECK_IGNORE += "CVE-2018-1057" | ||
| 45 | 47 | ||
| 46 | # remove default added RDEPENDS on perl | 48 | # remove default added RDEPENDS on perl |
| 47 | RDEPENDS:${PN}:remove = "perl" | 49 | RDEPENDS:${PN}:remove = "perl" |
| @@ -60,10 +62,11 @@ COMPATIBLE_HOST:riscv32 = "null" | |||
| 60 | INITSCRIPT_NAME = "samba" | 62 | INITSCRIPT_NAME = "samba" |
| 61 | INITSCRIPT_PARAMS = "start 20 3 5 . stop 20 0 1 6 ." | 63 | INITSCRIPT_PARAMS = "start 20 3 5 . stop 20 0 1 6 ." |
| 62 | 64 | ||
| 63 | SYSTEMD_PACKAGES = "${PN}-base ${PN}-ad-dc winbind" | 65 | SYSTEMD_PACKAGES = "${PN}-base ${PN}-ad-dc winbind ctdb" |
| 64 | SYSTEMD_SERVICE:${PN}-base = "nmb.service smb.service" | 66 | SYSTEMD_SERVICE:${PN}-base = "nmb.service smb.service" |
| 65 | SYSTEMD_SERVICE:${PN}-ad-dc = "${@bb.utils.contains('PACKAGECONFIG', 'ad-dc', 'samba.service', '', d)}" | 67 | SYSTEMD_SERVICE:${PN}-ad-dc = "${@bb.utils.contains('PACKAGECONFIG', 'ad-dc', 'samba.service', '', d)}" |
| 66 | SYSTEMD_SERVICE:winbind = "winbind.service" | 68 | SYSTEMD_SERVICE:winbind = "winbind.service" |
| 69 | SYSTEMD_SERVICE:ctdb = "ctdb.service" | ||
| 67 | 70 | ||
| 68 | # There are prerequisite settings to enable ad-dc, so disable the service by default. | 71 | # There are prerequisite settings to enable ad-dc, so disable the service by default. |
| 69 | # Reference: | 72 | # Reference: |
| @@ -74,14 +77,12 @@ SYSTEMD_AUTO_ENABLE:${PN}-ad-dc = "disable" | |||
| 74 | #to cross Popen | 77 | #to cross Popen |
| 75 | export WAF_NO_PREFORK="yes" | 78 | export WAF_NO_PREFORK="yes" |
| 76 | 79 | ||
| 77 | # Use krb5. Build active domain controller. | 80 | # Use krb5. Build active domain controller. |
| 78 | # | 81 | # |
| 79 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd zeroconf', d)} \ | 82 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd zeroconf', d)} \ |
| 80 | acl cups ad-dc ldap mitkrb5 \ | 83 | acl cups ad-dc ldap mitkrb5 \ |
| 81 | " | 84 | " |
| 82 | 85 | ||
| 83 | RDEPENDS:${PN}-ctdb-tests += "bash util-linux-getopt" | ||
| 84 | |||
| 85 | PACKAGECONFIG[acl] = "--with-acl-support,--without-acl-support,acl" | 86 | PACKAGECONFIG[acl] = "--with-acl-support,--without-acl-support,acl" |
| 86 | PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin" | 87 | PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin" |
| 87 | PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups" | 88 | PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups" |
| @@ -91,12 +92,12 @@ PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" | |||
| 91 | PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi" | 92 | PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi" |
| 92 | PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi" | 93 | PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi" |
| 93 | PACKAGECONFIG[valgrind] = ",--without-valgrind,valgrind," | 94 | PACKAGECONFIG[valgrind] = ",--without-valgrind,valgrind," |
| 94 | PACKAGECONFIG[lttng] = "--with-lttng, --without-lttng,lttng-ust" | 95 | PACKAGECONFIG[lttng] = "--with-lttng,--without-lttng,lttng-ust" |
| 95 | PACKAGECONFIG[archive] = "--with-libarchive, --without-libarchive, libarchive" | 96 | PACKAGECONFIG[archive] = "--with-libarchive,--without-libarchive,libarchive" |
| 96 | PACKAGECONFIG[libunwind] = ", , libunwind" | 97 | PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" |
| 97 | PACKAGECONFIG[gpgme] = ",--without-gpgme,," | 98 | PACKAGECONFIG[gpgme] = "--with-gpgme,--without-gpgme,gpgme" |
| 98 | PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb," | 99 | PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb" |
| 99 | PACKAGECONFIG[libbsd] = "--with-libbsd, --without-libbsd, libbsd" | 100 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 100 | PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,python3-markdown python3-dnspython," | 101 | PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,python3-markdown python3-dnspython," |
| 101 | PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=/usr/sbin/krb5kdc,,krb5," | 102 | PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=/usr/sbin/krb5kdc,,krb5," |
| 102 | 103 | ||
| @@ -131,15 +132,14 @@ EXTRA_OECONF += "--enable-fhs \ | |||
| 131 | 132 | ||
| 132 | LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | 133 | LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
| 133 | 134 | ||
| 134 | do_configure:append () { | 135 | do_configure:append() { |
| 135 | cd ${S}/pidl/ | 136 | cd ${S}/pidl/ |
| 136 | perl Makefile.PL PREFIX=${prefix} | 137 | perl Makefile.PL PREFIX=${prefix} |
| 137 | sed -e 's,VENDORPREFIX)/lib/perl,VENDORPREFIX)/${baselib}/perl,g' \ | 138 | sed -e 's,VENDORPREFIX)/lib/perl,VENDORPREFIX)/${baselib}/perl,g' \ |
| 138 | -e 's,PERLPREFIX)/lib/perl,PERLPREFIX)/${baselib}/perl,g' -i Makefile | 139 | -e 's,PERLPREFIX)/lib/perl,PERLPREFIX)/${baselib}/perl,g' -i Makefile |
| 139 | |||
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | do_compile:append () { | 142 | do_compile:append() { |
| 143 | oe_runmake -C ${S}/pidl | 143 | oe_runmake -C ${S}/pidl |
| 144 | } | 144 | } |
| 145 | 145 | ||
| @@ -199,7 +199,7 @@ do_install:append() { | |||
| 199 | 199 | ||
| 200 | chmod 0750 ${D}${sysconfdir}/sudoers.d || true | 200 | chmod 0750 ${D}${sysconfdir}/sudoers.d || true |
| 201 | rm -rf ${D}/run ${D}${localstatedir}/run ${D}${localstatedir}/log | 201 | rm -rf ${D}/run ${D}${localstatedir}/run ${D}${localstatedir}/log |
| 202 | 202 | ||
| 203 | for f in samba-gpupdate samba_upgradedns samba_spnupdate samba_kcc samba_dnsupdate samba_downgrade_db; do | 203 | for f in samba-gpupdate samba_upgradedns samba_spnupdate samba_kcc samba_dnsupdate samba_downgrade_db; do |
| 204 | if [ -f "${D}${sbindir}/$f" ]; then | 204 | if [ -f "${D}${sbindir}/$f" ]; then |
| 205 | sed -i -e 's,${PYTHON},/usr/bin/env python3,g' ${D}${sbindir}/$f | 205 | sed -i -e 's,${PYTHON},/usr/bin/env python3,g' ${D}${sbindir}/$f |
| @@ -217,8 +217,8 @@ do_install:append() { | |||
| 217 | 217 | ||
| 218 | PACKAGES =+ "${PN}-python3 ${PN}-pidl \ | 218 | PACKAGES =+ "${PN}-python3 ${PN}-pidl \ |
| 219 | ${PN}-dsdb-modules ${PN}-testsuite registry-tools \ | 219 | ${PN}-dsdb-modules ${PN}-testsuite registry-tools \ |
| 220 | winbind \ | 220 | winbind ctdb ctdb-tests \ |
| 221 | ${PN}-common ${PN}-base ${PN}-ad-dc ${PN}-ctdb-tests \ | 221 | ${PN}-common ${PN}-base ${PN}-ad-dc \ |
| 222 | smbclient ${PN}-client ${PN}-server ${PN}-test" | 222 | smbclient ${PN}-client ${PN}-server ${PN}-test" |
| 223 | 223 | ||
| 224 | python samba_populate_packages() { | 224 | python samba_populate_packages() { |
| @@ -257,15 +257,30 @@ FILES:${PN}-ad-dc = "${sbindir}/samba \ | |||
| 257 | ${systemd_system_unitdir}/samba.service \ | 257 | ${systemd_system_unitdir}/samba.service \ |
| 258 | ${libdir}/krb5/plugins/kdb/samba.so \ | 258 | ${libdir}/krb5/plugins/kdb/samba.so \ |
| 259 | " | 259 | " |
| 260 | |||
| 260 | RDEPENDS:${PN}-ad-dc = "krb5-kdc" | 261 | RDEPENDS:${PN}-ad-dc = "krb5-kdc" |
| 261 | 262 | ||
| 262 | FILES:${PN}-ctdb-tests = "${bindir}/ctdb_run_tests \ | 263 | FILES:ctdb = "${bindir}/ctdb \ |
| 263 | ${bindir}/ctdb_run_cluster_tests \ | 264 | ${bindir}/ctdb_diagnostics \ |
| 264 | ${sysconfdir}/ctdb/nodes \ | 265 | ${bindir}/ltdbtool \ |
| 265 | ${datadir}/ctdb-tests \ | 266 | ${bindir}/onnode \ |
| 266 | ${datadir}/ctdb/tests \ | 267 | ${bindir}/ping_pong \ |
| 267 | ${localstatedir}/lib/ctdb \ | 268 | ${sbindir}/ctdbd \ |
| 268 | " | 269 | ${datadir}/ctdb \ |
| 270 | ${libexecdir}/ctdb \ | ||
| 271 | ${localstatedir}/lib/ctdb \ | ||
| 272 | ${sysconfdir}/ctdb \ | ||
| 273 | ${sysconfdir}/sudoers.d/ctdb \ | ||
| 274 | ${systemd_system_unitdir}/ctdb.service \ | ||
| 275 | " | ||
| 276 | |||
| 277 | FILES:ctdb-tests = "${bindir}/ctdb_run_tests \ | ||
| 278 | ${bindir}/ctdb_run_cluster_tests \ | ||
| 279 | ${datadir}/ctdb-tests \ | ||
| 280 | ${datadir}/ctdb/tests \ | ||
| 281 | " | ||
| 282 | |||
| 283 | RDEPENDS:ctdb-tests += "bash util-linux-getopt ctdb" | ||
| 269 | 284 | ||
| 270 | FILES:${BPN}-common = "${sysconfdir}/default \ | 285 | FILES:${BPN}-common = "${sysconfdir}/default \ |
| 271 | ${sysconfdir}/samba \ | 286 | ${sysconfdir}/samba \ |
| @@ -278,7 +293,6 @@ FILES:${PN} += "${libdir}/vfs/*.so \ | |||
| 278 | ${libdir}/charset/*.so \ | 293 | ${libdir}/charset/*.so \ |
| 279 | ${libdir}/*.dat \ | 294 | ${libdir}/*.dat \ |
| 280 | ${libdir}/auth/*.so \ | 295 | ${libdir}/auth/*.so \ |
| 281 | ${datadir}/ctdb/events/* \ | ||
| 282 | " | 296 | " |
| 283 | 297 | ||
| 284 | FILES:${PN}-dsdb-modules = "${libdir}/samba/ldb" | 298 | FILES:${PN}-dsdb-modules = "${libdir}/samba/ldb" |
| @@ -317,10 +331,10 @@ FILES:smbclient = "${bindir}/cifsdd \ | |||
| 317 | ${bindir}/smbtree \ | 331 | ${bindir}/smbtree \ |
| 318 | ${libdir}/samba/smbspool_krb5_wrapper" | 332 | ${libdir}/samba/smbspool_krb5_wrapper" |
| 319 | 333 | ||
| 320 | RDEPENDS:${PN}-pidl:append = " perl libparse-yapp-perl" | ||
| 321 | FILES:${PN}-pidl = "${bindir}/pidl \ | 334 | FILES:${PN}-pidl = "${bindir}/pidl \ |
| 322 | ${libdir}/perl5 \ | 335 | ${libdir}/perl5 \ |
| 323 | " | 336 | " |
| 337 | RDEPENDS:${PN}-pidl:append = " perl libparse-yapp-perl" | ||
| 324 | 338 | ||
| 325 | RDEPENDS:${PN}-client = "\ | 339 | RDEPENDS:${PN}-client = "\ |
| 326 | smbclient \ | 340 | smbclient \ |
| @@ -340,13 +354,8 @@ RDEPENDS:${PN}-server = "\ | |||
| 340 | ALLOW_EMPTY:${PN}-server = "1" | 354 | ALLOW_EMPTY:${PN}-server = "1" |
| 341 | 355 | ||
| 342 | RDEPENDS:${PN}-test = "\ | 356 | RDEPENDS:${PN}-test = "\ |
| 343 | ${PN}-ctdb-tests \ | 357 | ctdb-tests \ |
| 344 | ${PN}-testsuite \ | 358 | ${PN}-testsuite \ |
| 345 | " | 359 | " |
| 346 | 360 | ||
| 347 | ALLOW_EMPTY:${PN}-test = "1" | 361 | ALLOW_EMPTY:${PN}-test = "1" |
| 348 | |||
| 349 | # Patch for CVE-2018-1050 is applied in version 4.5.15, 4.6.13, 4.7.5. | ||
| 350 | # Patch for CVE-2018-1057 is applied in version 4.3.13, 4.4.16. | ||
| 351 | CVE_CHECK_IGNORE += "CVE-2018-1050" | ||
| 352 | CVE_CHECK_IGNORE += "CVE-2018-1057" | ||
