diff options
author | persianpros <persianpros@yahoo.com> | 2023-01-01 20:17:35 +0330 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-01-01 10:00:20 -0800 |
commit | 92deb5f329e77e9f8dfcc390b7d3f6e7a733c4c7 (patch) | |
tree | cd13f185bc4647d3bd7a1ed204c6b19750e8a16d | |
parent | 18a9d6d38615e298f41dc8f44da4bada9858801e (diff) | |
download | meta-openembedded-92deb5f329e77e9f8dfcc390b7d3f6e7a733c4c7.tar.gz |
samba: Remove samba related PYTHONHASHSEED patches and use export function
With export PYTHONHASHSEED="1" there will be no need for patching samba and its related libs
So easier maintenance and a cleaner OE
Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 files changed, 10 insertions, 155 deletions
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 deleted file mode 100644 index af659a1e53..0000000000 --- a/meta-networking/recipes-connectivity/samba/samba/0009-wscript-skip-checking-PYTHONHASHSEED.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
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_4.17.4.bb b/meta-networking/recipes-connectivity/samba/samba_4.17.4.bb index b79d23c2dd..966eaf9bf9 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.17.4.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.17.4.bb | |||
@@ -12,6 +12,8 @@ ${SAMBA_MIRROR} http://mirror.internode.on.net/pub/samba \n \ | |||
12 | ${SAMBA_MIRROR} http://www.mirrorservice.org/sites/ftp.samba.org \n \ | 12 | ${SAMBA_MIRROR} http://www.mirrorservice.org/sites/ftp.samba.org \n \ |
13 | " | 13 | " |
14 | 14 | ||
15 | export PYTHONHASHSEED="1" | ||
16 | |||
15 | SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ | 17 | SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ |
16 | file://smb.conf \ | 18 | file://smb.conf \ |
17 | file://volatiles.03_samba \ | 19 | file://volatiles.03_samba \ |
@@ -23,7 +25,6 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ | |||
23 | file://0006-smbtorture-skip-test-case-tfork_cmd_send.patch \ | 25 | file://0006-smbtorture-skip-test-case-tfork_cmd_send.patch \ |
24 | file://0007-waf-Fix-errors-with-Werror-implicit-function-declara.patch \ | 26 | file://0007-waf-Fix-errors-with-Werror-implicit-function-declara.patch \ |
25 | file://0008-Deleted-settiong-of-python-to-fix-the-install-confli.patch \ | 27 | file://0008-Deleted-settiong-of-python-to-fix-the-install-confli.patch \ |
26 | file://0009-wscript-skip-checking-PYTHONHASHSEED.patch \ | ||
27 | " | 28 | " |
28 | 29 | ||
29 | SRC_URI:append:libc-musl = " \ | 30 | SRC_URI:append:libc-musl = " \ |
diff --git a/meta-networking/recipes-support/libldb/libldb/0004-wscript-skip-checking-PYTHONHASHSEED.patch b/meta-networking/recipes-support/libldb/libldb/0004-wscript-skip-checking-PYTHONHASHSEED.patch deleted file mode 100644 index 8747175d28..0000000000 --- a/meta-networking/recipes-support/libldb/libldb/0004-wscript-skip-checking-PYTHONHASHSEED.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 6e403b3bac2edadb67776434da54ac2fc2e8de04 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 8729b08..a4d6f3e 100644 | ||
15 | --- a/buildtools/wafsamba/wscript | ||
16 | +++ b/buildtools/wafsamba/wscript | ||
17 | @@ -8,10 +8,6 @@ import wafsamba | ||
18 | from samba_utils import symlink | ||
19 | from optparse import SUPPRESS_HELP | ||
20 | |||
21 | -phs = os.environ.get("PYTHONHASHSEED", None) | ||
22 | -if phs != "1": | ||
23 | - raise Errors.WafError('''PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!''') | ||
24 | - | ||
25 | # this forces configure to be re-run if any of the configure | ||
26 | # sections of the build scripts change. We have to check | ||
27 | # for this in sys.argv as options have not yet been parsed when | ||
28 | -- | ||
29 | 2.25.1 | ||
30 | |||
diff --git a/meta-networking/recipes-support/libldb/libldb_2.6.1.bb b/meta-networking/recipes-support/libldb/libldb_2.6.1.bb index d5440cce24..7c7701acc3 100644 --- a/meta-networking/recipes-support/libldb/libldb_2.6.1.bb +++ b/meta-networking/recipes-support/libldb/libldb_2.6.1.bb | |||
@@ -6,11 +6,12 @@ LICENSE = "LGPL-3.0-or-later & LGPL-2.1-or-later & GPL-3.0-or-later" | |||
6 | DEPENDS += "libtdb libtalloc libtevent popt" | 6 | DEPENDS += "libtdb libtalloc libtevent popt" |
7 | RDEPENDS:pyldb += "python3" | 7 | RDEPENDS:pyldb += "python3" |
8 | 8 | ||
9 | export PYTHONHASHSEED="1" | ||
10 | |||
9 | SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ | 11 | SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ |
10 | file://0001-do-not-import-target-module-while-cross-compile.patch \ | 12 | file://0001-do-not-import-target-module-while-cross-compile.patch \ |
11 | file://0002-ldb-Add-configure-options-for-packages.patch \ | 13 | file://0002-ldb-Add-configure-options-for-packages.patch \ |
12 | file://0003-Fix-pyext_PATTERN-for-cross-compilation.patch \ | 14 | file://0003-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
13 | file://0004-wscript-skip-checking-PYTHONHASHSEED.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | SRC_URI:append:libc-musl = " file://cmocka-fix-musl-libc-conflicting-types-error.patch" | 17 | SRC_URI:append:libc-musl = " file://cmocka-fix-musl-libc-conflicting-types-error.patch" |
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/0003-wscript-skip-checking-PYTHONHASHSEED.patch b/meta-networking/recipes-support/libtalloc/libtalloc/0003-wscript-skip-checking-PYTHONHASHSEED.patch deleted file mode 100644 index 617eaa7dc5..0000000000 --- a/meta-networking/recipes-support/libtalloc/libtalloc/0003-wscript-skip-checking-PYTHONHASHSEED.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 4a1b8659235dcac5382a627a4add4d636a65a886 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 8729b08..a4d6f3e 100644 | ||
15 | --- a/buildtools/wafsamba/wscript | ||
16 | +++ b/buildtools/wafsamba/wscript | ||
17 | @@ -8,10 +8,6 @@ import wafsamba | ||
18 | from samba_utils import symlink | ||
19 | from optparse import SUPPRESS_HELP | ||
20 | |||
21 | -phs = os.environ.get("PYTHONHASHSEED", None) | ||
22 | -if phs != "1": | ||
23 | - raise Errors.WafError('''PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!''') | ||
24 | - | ||
25 | # this forces configure to be re-run if any of the configure | ||
26 | # sections of the build scripts change. We have to check | ||
27 | # for this in sys.argv as options have not yet been parsed when | ||
28 | -- | ||
29 | 2.25.1 | ||
30 | |||
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc_2.3.4.bb b/meta-networking/recipes-support/libtalloc/libtalloc_2.3.4.bb index ad812da803..1c5922205e 100644 --- a/meta-networking/recipes-support/libtalloc/libtalloc_2.3.4.bb +++ b/meta-networking/recipes-support/libtalloc/libtalloc_2.3.4.bb | |||
@@ -6,10 +6,11 @@ LIC_FILES_CHKSUM = "file://talloc.h;beginline=3;endline=27;md5=a301712782cad6dd6 | |||
6 | file://pytalloc.h;beginline=1;endline=18;md5=21ab13bd853679d7d47a1739cb3b7db6 \ | 6 | file://pytalloc.h;beginline=1;endline=18;md5=21ab13bd853679d7d47a1739cb3b7db6 \ |
7 | " | 7 | " |
8 | 8 | ||
9 | export PYTHONHASHSEED="1" | ||
10 | |||
9 | SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ | 11 | SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ |
10 | file://0001-talloc-Add-configure-options-for-packages.patch \ | 12 | file://0001-talloc-Add-configure-options-for-packages.patch \ |
11 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ | 13 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
12 | file://0003-wscript-skip-checking-PYTHONHASHSEED.patch \ | ||
13 | " | 14 | " |
14 | SRC_URI[sha256sum] = "179f9ebe265e67e4ab2c26cad2b7de4b6a77c6c212f966903382869f06be6505" | 15 | SRC_URI[sha256sum] = "179f9ebe265e67e4ab2c26cad2b7de4b6a77c6c212f966903382869f06be6505" |
15 | 16 | ||
diff --git a/meta-networking/recipes-support/libtdb/libtdb/0003-wscript-skip-checking-PYTHONHASHSEED.patch b/meta-networking/recipes-support/libtdb/libtdb/0003-wscript-skip-checking-PYTHONHASHSEED.patch deleted file mode 100644 index ebe3198f16..0000000000 --- a/meta-networking/recipes-support/libtdb/libtdb/0003-wscript-skip-checking-PYTHONHASHSEED.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From b5864f0d542485c4fbfeb7b02fdd99e0b4e1dbc7 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 8729b08..a4d6f3e 100644 | ||
15 | --- a/buildtools/wafsamba/wscript | ||
16 | +++ b/buildtools/wafsamba/wscript | ||
17 | @@ -8,10 +8,6 @@ import wafsamba | ||
18 | from samba_utils import symlink | ||
19 | from optparse import SUPPRESS_HELP | ||
20 | |||
21 | -phs = os.environ.get("PYTHONHASHSEED", None) | ||
22 | -if phs != "1": | ||
23 | - raise Errors.WafError('''PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!''') | ||
24 | - | ||
25 | # this forces configure to be re-run if any of the configure | ||
26 | # sections of the build scripts change. We have to check | ||
27 | # for this in sys.argv as options have not yet been parsed when | ||
28 | -- | ||
29 | 2.25.1 | ||
30 | |||
diff --git a/meta-networking/recipes-support/libtdb/libtdb_1.4.7.bb b/meta-networking/recipes-support/libtdb/libtdb_1.4.7.bb index 6775e6f061..d4c4f1c371 100644 --- a/meta-networking/recipes-support/libtdb/libtdb_1.4.7.bb +++ b/meta-networking/recipes-support/libtdb/libtdb_1.4.7.bb | |||
@@ -6,10 +6,11 @@ LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later" | |||
6 | LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c98f48018c4 \ | 6 | LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c98f48018c4 \ |
7 | file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" | 7 | file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" |
8 | 8 | ||
9 | export PYTHONHASHSEED="1" | ||
10 | |||
9 | SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ | 11 | SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ |
10 | file://0001-tdb-Add-configure-options-for-packages.patch \ | 12 | file://0001-tdb-Add-configure-options-for-packages.patch \ |
11 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ | 13 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
12 | file://0003-wscript-skip-checking-PYTHONHASHSEED.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | SRC_URI[md5sum] = "bc27d5b20c7f013305c40b3bced43b3a" | 16 | SRC_URI[md5sum] = "bc27d5b20c7f013305c40b3bced43b3a" |
diff --git a/meta-networking/recipes-support/libtevent/libtevent/0003-wscript-skip-checking-PYTHONHASHSEED.patch b/meta-networking/recipes-support/libtevent/libtevent/0003-wscript-skip-checking-PYTHONHASHSEED.patch deleted file mode 100644 index b334d51a39..0000000000 --- a/meta-networking/recipes-support/libtevent/libtevent/0003-wscript-skip-checking-PYTHONHASHSEED.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 406bb14337c71403c100ad8692e1fe99308030b7 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 8729b08..a4d6f3e 100644 | ||
15 | --- a/buildtools/wafsamba/wscript | ||
16 | +++ b/buildtools/wafsamba/wscript | ||
17 | @@ -8,10 +8,6 @@ import wafsamba | ||
18 | from samba_utils import symlink | ||
19 | from optparse import SUPPRESS_HELP | ||
20 | |||
21 | -phs = os.environ.get("PYTHONHASHSEED", None) | ||
22 | -if phs != "1": | ||
23 | - raise Errors.WafError('''PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!''') | ||
24 | - | ||
25 | # this forces configure to be re-run if any of the configure | ||
26 | # sections of the build scripts change. We have to check | ||
27 | # for this in sys.argv as options have not yet been parsed when | ||
28 | -- | ||
29 | 2.25.1 | ||
30 | |||
diff --git a/meta-networking/recipes-support/libtevent/libtevent_0.13.0.bb b/meta-networking/recipes-support/libtevent/libtevent_0.13.0.bb index bae200b7a0..b3ae63c489 100644 --- a/meta-networking/recipes-support/libtevent/libtevent_0.13.0.bb +++ b/meta-networking/recipes-support/libtevent/libtevent_0.13.0.bb | |||
@@ -6,10 +6,11 @@ LICENSE = "LGPL-3.0-or-later" | |||
6 | DEPENDS += "libtalloc libtirpc" | 6 | DEPENDS += "libtalloc libtirpc" |
7 | RDEPENDS:python3-tevent = "python3" | 7 | RDEPENDS:python3-tevent = "python3" |
8 | 8 | ||
9 | export PYTHONHASHSEED="1" | ||
10 | |||
9 | SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \ | 11 | SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \ |
10 | file://0001-Add-configure-options-for-packages.patch \ | 12 | file://0001-Add-configure-options-for-packages.patch \ |
11 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ | 13 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
12 | file://0003-wscript-skip-checking-PYTHONHASHSEED.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | SRC_URI:append:libc-musl = " file://cmocka-fix-musl-libc-conflicting-types-error.patch" | 16 | SRC_URI:append:libc-musl = " file://cmocka-fix-musl-libc-conflicting-types-error.patch" |