* [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library()
@ 2023-06-08 23:28 Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 02/17] support/testing: TestPythonPy3S3transfer: increase ext2 size to 250M Romain Naour
` (17 more replies)
0 siblings, 18 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
While the commit [1] already fixed some runtime issue with
uClibc toolchain, the same test TestPythonPy3Iptables fail
with Glibc toolchain.
xtables_version = 12
if xtables_version:
_searchlib = "libxtables.so.%s" % (xtables_version,)
else:
_searchlib = "xtables"
_lib_xtables, xtables_version = find_library(_searchlib)
_lib_xtables and xtables_version are null with glibc
The implementation of find_library() rely on the custom
_find_library() that try to use the IPTABLES_LIBDIR
environment variable (that does not exist in the context
of Buildroot).
Within the scope of buildroot we can determine what
IPTABLES_LIBDIR should be at build time and replace the
calls to os.environ.get('IPTABLES_LIBDIR', None) with
the correct value.
[1] d341ec035067120b456f669a826e26eb594c0237
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
I don't know why TestPythonPy3Iptables pass succesfully
with a uClibc toolchain but not with a glibc toolchain.
The current python code searching for xtables, modules
and libraries seems fragile...
---
package/python-iptables/python-iptables.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/python-iptables/python-iptables.mk b/package/python-iptables/python-iptables.mk
index 0ccf064217..9cb4285ec3 100644
--- a/package/python-iptables/python-iptables.mk
+++ b/package/python-iptables/python-iptables.mk
@@ -15,6 +15,7 @@ define PYTHON_IPTABLES_SET_XTABLES_ENV_VARS
XTABLES_VERSION=`awk '/XTABLES_VERSION_CODE/ {print $$NF}' $(STAGING_DIR)/usr/include/xtables-version.h`; \
sed -i "s%os.getenv(\"PYTHON_IPTABLES_XTABLES_VERSION\")%$$XTABLES_VERSION%" $(@D)/iptc/xtables.py
sed -i "s%os.getenv(\"XTABLES_LIBDIR\")%\"/usr/lib/xtables\"%" $(@D)/iptc/xtables.py
+ sed -i "s%os.environ.get('IPTABLES_LIBDIR', None)%\"/usr/lib\"%" $(@D)/iptc/util.py
endef
PYTHON_IPTABLES_PRE_BUILD_HOOKS += PYTHON_IPTABLES_SET_XTABLES_ENV_VARS
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 02/17] support/testing: TestPythonPy3S3transfer: increase ext2 size to 250M
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 03/17] support/testing: TestPythonPy3Boto3: " Romain Naour
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
We are going to update the toolchain used by the Buildroot testsuite
and this update will increase the size of the rootfs over 120M.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/tests/package/test_python_s3transfer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/testing/tests/package/test_python_s3transfer.py b/support/testing/tests/package/test_python_s3transfer.py
index d81560aeb1..1578f3aa74 100644
--- a/support/testing/tests/package/test_python_s3transfer.py
+++ b/support/testing/tests/package/test_python_s3transfer.py
@@ -9,7 +9,7 @@ class TestPythonPy3S3transfer(TestPythonPackageBase):
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_S3TRANSFER=y
BR2_TARGET_ROOTFS_EXT2=y
- BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+ BR2_TARGET_ROOTFS_EXT2_SIZE="250M"
"""
sample_scripts = ["tests/package/sample_python_s3transfer.py"]
timeout = 10
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 03/17] support/testing: TestPythonPy3Boto3: increase ext2 size to 250M
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 02/17] support/testing: TestPythonPy3S3transfer: increase ext2 size to 250M Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 04/17] support/testing: TestPythonPy3Botocore: " Romain Naour
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
We are going to update the toolchain used by the Buildroot testsuite
and this update will increase the size of the rootfs over 120M.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/tests/package/test_python_boto3.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/testing/tests/package/test_python_boto3.py b/support/testing/tests/package/test_python_boto3.py
index 126ddae63a..02a1f69d40 100644
--- a/support/testing/tests/package/test_python_boto3.py
+++ b/support/testing/tests/package/test_python_boto3.py
@@ -9,7 +9,7 @@ class TestPythonPy3Boto3(TestPythonPackageBase):
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_BOTO3=y
BR2_TARGET_ROOTFS_EXT2=y
- BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+ BR2_TARGET_ROOTFS_EXT2_SIZE="250M"
"""
sample_scripts = ["tests/package/sample_python_boto3.py"]
timeout = 10
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 04/17] support/testing: TestPythonPy3Botocore: increase ext2 size to 250M
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 02/17] support/testing: TestPythonPy3S3transfer: increase ext2 size to 250M Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 03/17] support/testing: TestPythonPy3Boto3: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 05/17] support/testing: TestSELinuxSystemd: kernel bump 6.1.26 Romain Naour
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
We are going to update the toolchain used by the Buildroot testsuite
and this update will increase the size of the rootfs over 120M.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/tests/package/test_python_botocore.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/testing/tests/package/test_python_botocore.py b/support/testing/tests/package/test_python_botocore.py
index f123993c08..0f3dc93a37 100644
--- a/support/testing/tests/package/test_python_botocore.py
+++ b/support/testing/tests/package/test_python_botocore.py
@@ -9,7 +9,7 @@ class TestPythonPy3Botocore(TestPythonPackageBase):
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_BOTOCORE=y
BR2_TARGET_ROOTFS_EXT2=y
- BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+ BR2_TARGET_ROOTFS_EXT2_SIZE="250M"
"""
sample_scripts = ["tests/package/sample_python_botocore.py"]
timeout = 30
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 05/17] support/testing: TestSELinuxSystemd: kernel bump 6.1.26
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (2 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 04/17] support/testing: TestPythonPy3Botocore: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 06/17] support/testing/infra/basetest.py: use Bootlin toolchain stable 2022.08-1 Romain Naour
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
We are going to update the toolchain used by the Buildroot testsuite
and this update will break the kernel build with the Bootlin stable
toolchain due to an latent issue.
Fixes:
arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table
make[4]: *** [scripts/Makefile.build:361: arch/x86/entry/thunk_64.o] Error 1
make[4]: *** Deleting file 'arch/x86/entry/thunk_64.o'
make[4]: *** Waiting for unfinished jobs....
[fixed since kernel 6.0]
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=de979c83574abf6e78f3fa65b716515c91b2613d
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/tests/init/test_systemd_selinux.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/testing/tests/init/test_systemd_selinux.py b/support/testing/tests/init/test_systemd_selinux.py
index 73604cfc32..5f91243f37 100644
--- a/support/testing/tests/init/test_systemd_selinux.py
+++ b/support/testing/tests/init/test_systemd_selinux.py
@@ -12,7 +12,7 @@ class TestSELinuxSystemd(infra.basetest.BRTest):
BR2_INIT_SYSTEMD=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
- BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.8.12"
+ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.26"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86_64/linux.config"
BR2_PACKAGE_LIBSELINUX=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 06/17] support/testing/infra/basetest.py: use Bootlin toolchain stable 2022.08-1
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (3 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 05/17] support/testing: TestSELinuxSystemd: kernel bump 6.1.26 Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 07/17] support/testing: TestMtools: use base configuration Romain Naour
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Sebastian Weyer, Romain Naour
From: Sebastian Weyer <sebastian.weyer@smile.fr>
This patch updates the default toolchain used for runtime tests. The
last time this toolchain was updated was in commit
0207a65323fc73fe9570f3d7e03bbfed4ab6d477 3 years ago. Since then,
multiple things have changed:
Firstly, it used uclibc-ng as the libc whereas since commit
4057e36ca9665edd5248512e4edba2c243b8f4be, glibc is used as the default
library.
And secondly, since commit 531b2a10cda6bae78ecc141c9fe48f2024f71dbc, buildroot
dropped the support for gcc 8 and it cannot be built internally anymore.
So the testsuite was executed using a toolchain that can't be built by
the Buildroot internal toolchain backend anymore.
This new Bootlin toolchain stable 2022.08-1 is based on gcc 11.3.0,
linux headers 4.9.327, glibc 2.35 and binutils 2.38.
The previous toolchain bleeding edge 2018.11-1 is based on gcc 8.2.0,
linux headers 4.14.80, uclibc 1.0.30 and binutils 2.31.1
Nowadays Bootlin toolchains are packaged in Buildroot and we can
directly select them from BASIC_TOOLCHAIN_CONFIG and avoid
setting the toolchain parameters (BR2_TOOLCHAIN_EXTERNAL_CUSTOM...).
The switch to Glibc requires to update some tests for the following
reasons:
- TestPython3Py, TestPython3Pyc and TestPython3PyPyc has been updated
since they use the libc binary file name in their test
(uClibc: libc.so.1 vs Glibc: libc.so.6).
- TestTmux needs at least one locale to pass (as stated in tmux help
text "tmux needs a working UTF-8 locale"), so use "C.UTF-8".
- TestOpenSsh needs a toolchain >= 5.x due to a openssh issue
(Similar to: https://bugs.busybox.net/show_bug.cgi?id=13671)
Use the Bootlin toolchain bleeding-edge 2022.08-1 rhat provide
kernel headers 5.4
- TestShadow needs a toolchain >= 4.14
Use the Bootlin toolchain bleeding-edge 2022.08-1 rhat provide
kernel headers 5.4
Runtime tested on the gcc farm server.
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/infra/basetest.py | 10 ++--------
support/testing/tests/package/test_openssh.py | 8 +++++++-
support/testing/tests/package/test_python.py | 2 +-
support/testing/tests/package/test_shadow.py | 7 ++++++-
support/testing/tests/package/test_tmux.py | 1 +
5 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py
index 670c7213d6..12d96415da 100644
--- a/support/testing/infra/basetest.py
+++ b/support/testing/infra/basetest.py
@@ -9,14 +9,8 @@ BASIC_TOOLCHAIN_CONFIG = \
"""
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
- BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
- BR2_TOOLCHAIN_EXTERNAL_URL="https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--uclibc--bleeding-edge-2018.11-1.tar.bz2"
- BR2_TOOLCHAIN_EXTERNAL_GCC_8=y
- BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_14=y
- BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
- BR2_TOOLCHAIN_HAS_THREADS_DEBUG=y
- BR2_TOOLCHAIN_EXTERNAL_CXX=y
+ BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+ BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
"""
MINIMAL_CONFIG = \
diff --git a/support/testing/tests/package/test_openssh.py b/support/testing/tests/package/test_openssh.py
index 4b48059573..a28c28f797 100644
--- a/support/testing/tests/package/test_openssh.py
+++ b/support/testing/tests/package/test_openssh.py
@@ -32,9 +32,13 @@ class TestOpensshBase(infra.basetest.BRTest):
class TestOpenSshuClibc(TestOpensshBase):
- config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
+ config = \
TestOpensshBase.opensshconfig + \
"""
+ BR2_arm=y
+ BR2_TOOLCHAIN_EXTERNAL=y
+ BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+ BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_UCLIBC_STABLE=y
BR2_TARGET_ROOTFS_CPIO=y
"""
@@ -43,12 +47,14 @@ class TestOpenSshuClibc(TestOpensshBase):
class TestOpenSshGlibc(TestOpensshBase):
+
config = \
TestOpensshBase.opensshconfig + \
"""
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+ BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_BLEEDING_EDGE=y
BR2_PACKAGE_RNG_TOOLS=y
BR2_TARGET_ROOTFS_CPIO=y
"""
diff --git a/support/testing/tests/package/test_python.py b/support/testing/tests/package/test_python.py
index d6f69a83c7..c9ecf9acda 100644
--- a/support/testing/tests/package/test_python.py
+++ b/support/testing/tests/package/test_python.py
@@ -29,7 +29,7 @@ class TestPythonBase(infra.basetest.BRTest):
def libc_time_test(self, timeout=-1):
cmd = self.interpreter + " -c '"
cmd += "import ctypes;"
- cmd += "libc = ctypes.cdll.LoadLibrary(\"libc.so.1\");"
+ cmd += "libc = ctypes.cdll.LoadLibrary(\"libc.so.6\");"
cmd += "print(libc.time(None))'"
self.assertRunOk(cmd, timeout)
diff --git a/support/testing/tests/package/test_shadow.py b/support/testing/tests/package/test_shadow.py
index 09b580de59..3352d454a5 100644
--- a/support/testing/tests/package/test_shadow.py
+++ b/support/testing/tests/package/test_shadow.py
@@ -5,9 +5,14 @@ from infra.basetest import BRTest, BASIC_TOOLCHAIN_CONFIG
class TestShadow(BRTest):
username = 'user_test'
- config = BASIC_TOOLCHAIN_CONFIG + \
+ # Need to use a different toolchain than the default due to
+ # shadow package requiring a toolchain w/ headers >= 4.14
+ config = \
"""
BR2_arm=y
+ BR2_TOOLCHAIN_EXTERNAL=y
+ BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+ BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_BLEEDING_EDGE=y
BR2_PACKAGE_SHADOW=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
diff --git a/support/testing/tests/package/test_tmux.py b/support/testing/tests/package/test_tmux.py
index 7a10b7a2b0..f2c620d5ca 100644
--- a/support/testing/tests/package/test_tmux.py
+++ b/support/testing/tests/package/test_tmux.py
@@ -9,6 +9,7 @@ class TestTmux(infra.basetest.BRTest):
BR2_PACKAGE_TMUX=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
+ BR2_GENERATE_LOCALE="C.UTF-8"
"""
def test_run(self):
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 07/17] support/testing: TestMtools: use base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (4 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 06/17] support/testing/infra/basetest.py: use Bootlin toolchain stable 2022.08-1 Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 08/17] support/testing: TestZ3: " Romain Naour
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/tests/package/test_mtools.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_mtools.py b/support/testing/tests/package/test_mtools.py
index 51e5138481..4a232bc926 100644
--- a/support/testing/tests/package/test_mtools.py
+++ b/support/testing/tests/package/test_mtools.py
@@ -4,14 +4,8 @@ import infra.basetest
class TestMtools(infra.basetest.BRTest):
- # We use a glibc toolchain to have iconv conversion working for
- # codepage 850.
- config = \
+ config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_MTOOLS=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 08/17] support/testing: TestZ3: use base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (5 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 07/17] support/testing: TestMtools: use base configuration Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 09/17] support/testing: Test{No, All, NonDefaultLimited}Timezone: " Romain Naour
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/tests/package/test_z3.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_z3.py b/support/testing/tests/package/test_z3.py
index 71b074a587..30794a250b 100644
--- a/support/testing/tests/package/test_z3.py
+++ b/support/testing/tests/package/test_z3.py
@@ -4,14 +4,8 @@ import infra.basetest
class TestZ3(infra.basetest.BRTest):
- # Need to use a different toolchain than the default due to
- # z3 requiring fenv.h not provided by uclibc.
- config = \
+ config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_Z3=y
BR2_PACKAGE_Z3_PYTHON=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 09/17] support/testing: Test{No, All, NonDefaultLimited}Timezone: use base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (6 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 08/17] support/testing: TestZ3: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 10/17] support/testing: TestPythonPy3SciPy: use python " Romain Naour
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
While at it remove Glibc from the test name since all Timezone
now use a Glibc toolchain.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/tests/core/test_timezone.py | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/support/testing/tests/core/test_timezone.py b/support/testing/tests/core/test_timezone.py
index f661519196..0e5009494d 100644
--- a/support/testing/tests/core/test_timezone.py
+++ b/support/testing/tests/core/test_timezone.py
@@ -26,11 +26,9 @@ class TestNoTimezone(infra.basetest.BRTest):
self.assertEqual(tz[0].strip(), "UTC")
-class TestGlibcAllTimezone(infra.basetest.BRTest):
- config = \
+class TestAllTimezone(infra.basetest.BRTest):
+ config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_TZ_INFO=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
@@ -48,11 +46,9 @@ class TestGlibcAllTimezone(infra.basetest.BRTest):
self.assertEqual(tz[0].strip(), "CET")
-class TestGlibcNonDefaultLimitedTimezone(infra.basetest.BRTest):
- config = \
+class TestNonDefaultLimitedTimezone(infra.basetest.BRTest):
+ config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_TZ_INFO=y
BR2_TARGET_TZ_ZONELIST="northamerica"
BR2_TARGET_LOCALTIME="America/New_York"
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 10/17] support/testing: TestPythonPy3SciPy: use python base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (7 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 09/17] support/testing: Test{No, All, NonDefaultLimited}Timezone: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 11/17] support/testing: TestPythonPy3Autobahn: " Romain Naour
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
v2: use TestPythonPackageBase.config
---
support/testing/tests/package/test_python_scipy.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_python_scipy.py b/support/testing/tests/package/test_python_scipy.py
index 007bc9ffa5..06297763c3 100644
--- a/support/testing/tests/package/test_python_scipy.py
+++ b/support/testing/tests/package/test_python_scipy.py
@@ -5,14 +5,8 @@ from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3SciPy(TestPythonPackageBase):
__test__ = True
- # We can't use the base configuration, as we need a glibc
- # toolchain for scipy
- config = \
+ config = TestPythonPackageBase.config + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_SCIPY=y
BR2_TARGET_ROOTFS_EXT2=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 11/17] support/testing: TestPythonPy3Autobahn: use python base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (8 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 10/17] support/testing: TestPythonPy3SciPy: use python " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 12/17] support/testing: TestPythonPy3Crossbar: " Romain Naour
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
v2: use TestPythonPackageBase.config
---
support/testing/tests/package/test_python_autobahn.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_python_autobahn.py b/support/testing/tests/package/test_python_autobahn.py
index 6c1678a615..f785b1af97 100644
--- a/support/testing/tests/package/test_python_autobahn.py
+++ b/support/testing/tests/package/test_python_autobahn.py
@@ -3,14 +3,8 @@ from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3Autobahn(TestPythonPackageBase):
__test__ = True
- # Need to use a different toolchain than the default due to
- # python-cryptography using Rust (not available with uclibc)
- config = \
+ config = TestPythonPackageBase.config + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_AUTOBAHN=y
BR2_TARGET_ROOTFS_CPIO=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 12/17] support/testing: TestPythonPy3Crossbar: use python base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (9 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 11/17] support/testing: TestPythonPy3Autobahn: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 13/17] support/testing: TestPythonPy3Cryptography: " Romain Naour
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
v2: use TestPythonPackageBase.config
---
support/testing/tests/package/test_python_crossbar.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_python_crossbar.py b/support/testing/tests/package/test_python_crossbar.py
index 178b16be82..e67ab9ff6e 100644
--- a/support/testing/tests/package/test_python_crossbar.py
+++ b/support/testing/tests/package/test_python_crossbar.py
@@ -4,14 +4,8 @@ import os
class TestPythonPy3Crossbar(TestPythonPackageBase):
__test__ = True
- # Need to use a different toolchain than the default due to
- # python-cryptography using Rust (not available with uclibc)
- config = \
+ config = TestPythonPackageBase.config + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_CROSSBAR=y
BR2_TARGET_ROOTFS_EXT2=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 13/17] support/testing: TestPythonPy3Cryptography: use python base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (10 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 12/17] support/testing: TestPythonPy3Crossbar: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 14/17] support/testing: TestPythonPy3MagicWormhole: " Romain Naour
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
v2: use TestPythonPackageBase.config
---
support/testing/tests/package/test_python_cryptography.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_python_cryptography.py b/support/testing/tests/package/test_python_cryptography.py
index bf11c02e5c..ee8e75f885 100644
--- a/support/testing/tests/package/test_python_cryptography.py
+++ b/support/testing/tests/package/test_python_cryptography.py
@@ -3,14 +3,8 @@ from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3Cryptography(TestPythonPackageBase):
__test__ = True
- # Need to use a different toolchain than the default due to
- # python-cryptography using Rust (not available with uclibc)
- config = \
+ config = TestPythonPackageBase.config + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
BR2_TARGET_ROOTFS_CPIO=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 14/17] support/testing: TestPythonPy3MagicWormhole: use python base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (11 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 13/17] support/testing: TestPythonPy3Cryptography: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 15/17] support/testing: TestPythonPy3ServiceIdentity: " Romain Naour
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
v2: use TestPythonPackageBase.config
---
.../testing/tests/package/test_python_magic_wormhole.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_python_magic_wormhole.py b/support/testing/tests/package/test_python_magic_wormhole.py
index d6541a2480..abd34bca50 100644
--- a/support/testing/tests/package/test_python_magic_wormhole.py
+++ b/support/testing/tests/package/test_python_magic_wormhole.py
@@ -5,14 +5,8 @@ from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3MagicWormhole(TestPythonPackageBase):
__test__ = True
- # Need to use a different toolchain than the default due to
- # python-cryptography using Rust (not available with uclibc)
- config = \
+ config = TestPythonPackageBase.config + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_MAGIC_WORMHOLE=y
BR2_PACKAGE_PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 15/17] support/testing: TestPythonPy3ServiceIdentity: use python base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (12 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 14/17] support/testing: TestPythonPy3MagicWormhole: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 16/17] support/testing: TestPythonPy3Treq: " Romain Naour
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
v2: use TestPythonPackageBase.config
---
.../testing/tests/package/test_python_service_identity.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_python_service_identity.py b/support/testing/tests/package/test_python_service_identity.py
index dbad5f931f..16ea943d41 100644
--- a/support/testing/tests/package/test_python_service_identity.py
+++ b/support/testing/tests/package/test_python_service_identity.py
@@ -3,14 +3,8 @@ from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3ServiceIdentity(TestPythonPackageBase):
__test__ = True
- # Need to use a different toolchain than the default due to
- # python-cryptography using Rust (not available with uclibc)
- config = \
+ config = TestPythonPackageBase.config + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_SERVICE_IDENTITY=y
BR2_TARGET_ROOTFS_CPIO=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 16/17] support/testing: TestPythonPy3Treq: use python base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (13 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 15/17] support/testing: TestPythonPy3ServiceIdentity: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 17/17] support/testing: TestPythonPy3Txtorcon: " Romain Naour
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
v2: use TestPythonPackageBase.config
---
support/testing/tests/package/test_python_treq.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_python_treq.py b/support/testing/tests/package/test_python_treq.py
index 515f1ea304..bd472d3b39 100644
--- a/support/testing/tests/package/test_python_treq.py
+++ b/support/testing/tests/package/test_python_treq.py
@@ -14,14 +14,8 @@ class TestPythonTreq(TestPythonPackageBase):
class TestPythonPy3Treq(TestPythonTreq):
__test__ = True
- # Need to use a different toolchain than the default due to
- # python-cryptography using Rust (not available with uclibc)
- config = \
+ config = TestPythonPackageBase.config + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_TREQ=y
BR2_TARGET_ROOTFS_CPIO=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [Buildroot] [PATCH v2 17/17] support/testing: TestPythonPy3Txtorcon: use python base configuration
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (14 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 16/17] support/testing: TestPythonPy3Treq: " Romain Naour
@ 2023-06-08 23:28 ` Romain Naour
2023-07-12 21:24 ` [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Thomas Petazzoni via buildroot
2023-08-25 16:11 ` Peter Korsgaard
17 siblings, 0 replies; 19+ messages in thread
From: Romain Naour @ 2023-06-08 23:28 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The base configuration now provide a glibc toolchain,
we can safely switch to it.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
v2: use TestPythonPackageBase.config
---
support/testing/tests/package/test_python_txtorcon.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/support/testing/tests/package/test_python_txtorcon.py b/support/testing/tests/package/test_python_txtorcon.py
index 6f0c4ca1ed..107f53c6a3 100644
--- a/support/testing/tests/package/test_python_txtorcon.py
+++ b/support/testing/tests/package/test_python_txtorcon.py
@@ -3,14 +3,8 @@ from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3Txtorcon(TestPythonPackageBase):
__test__ = True
- # Need to use a different toolchain than the default due to
- # python-cryptography using Rust (not available with uclibc)
- config = \
+ config = TestPythonPackageBase.config + \
"""
- BR2_arm=y
- BR2_TOOLCHAIN_EXTERNAL=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
- BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_TXTORCON=y
BR2_TARGET_ROOTFS_CPIO=y
--
2.34.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library()
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (15 preceding siblings ...)
2023-06-08 23:28 ` [Buildroot] [PATCH v2 17/17] support/testing: TestPythonPy3Txtorcon: " Romain Naour
@ 2023-07-12 21:24 ` Thomas Petazzoni via buildroot
2023-08-25 16:11 ` Peter Korsgaard
17 siblings, 0 replies; 19+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-12 21:24 UTC (permalink / raw)
To: Romain Naour; +Cc: buildroot
On Fri, 9 Jun 2023 01:28:43 +0200
Romain Naour <romain.naour@gmail.com> wrote:
> While the commit [1] already fixed some runtime issue with
> uClibc toolchain, the same test TestPythonPy3Iptables fail
> with Glibc toolchain.
>
> xtables_version = 12
> if xtables_version:
> _searchlib = "libxtables.so.%s" % (xtables_version,)
> else:
> _searchlib = "xtables"
> _lib_xtables, xtables_version = find_library(_searchlib)
>
> _lib_xtables and xtables_version are null with glibc
>
> The implementation of find_library() rely on the custom
> _find_library() that try to use the IPTABLES_LIBDIR
> environment variable (that does not exist in the context
> of Buildroot).
>
> Within the scope of buildroot we can determine what
> IPTABLES_LIBDIR should be at build time and replace the
> calls to os.environ.get('IPTABLES_LIBDIR', None) with
> the correct value.
>
> [1] d341ec035067120b456f669a826e26eb594c0237
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
> I don't know why TestPythonPy3Iptables pass succesfully
> with a uClibc toolchain but not with a glibc toolchain.
> The current python code searching for xtables, modules
> and libraries seems fragile...
> ---
> package/python-iptables/python-iptables.mk | 1 +
> 1 file changed, 1 insertion(+)
There hasn't been much feedback on the overall principle, but I found
it reasonable: we're using glibc as the default C library now, so it
kind of makes sense to use it primarily in our test cases.
So I've applied the entire series, thanks for this work!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library()
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
` (16 preceding siblings ...)
2023-07-12 21:24 ` [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Thomas Petazzoni via buildroot
@ 2023-08-25 16:11 ` Peter Korsgaard
17 siblings, 0 replies; 19+ messages in thread
From: Peter Korsgaard @ 2023-08-25 16:11 UTC (permalink / raw)
To: Romain Naour; +Cc: buildroot
>>>>> "Romain" == Romain Naour <romain.naour@gmail.com> writes:
> While the commit [1] already fixed some runtime issue with
> uClibc toolchain, the same test TestPythonPy3Iptables fail
> with Glibc toolchain.
> xtables_version = 12
> if xtables_version:
> _searchlib = "libxtables.so.%s" % (xtables_version,)
> else:
> _searchlib = "xtables"
> _lib_xtables, xtables_version = find_library(_searchlib)
> _lib_xtables and xtables_version are null with glibc
> The implementation of find_library() rely on the custom
> _find_library() that try to use the IPTABLES_LIBDIR
> environment variable (that does not exist in the context
> of Buildroot).
> Within the scope of buildroot we can determine what
> IPTABLES_LIBDIR should be at build time and replace the
> calls to os.environ.get('IPTABLES_LIBDIR', None) with
> the correct value.
> [1] d341ec035067120b456f669a826e26eb594c0237
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
> I don't know why TestPythonPy3Iptables pass succesfully
> with a uClibc toolchain but not with a glibc toolchain.
> The current python code searching for xtables, modules
> and libraries seems fragile...
Committed to 2023.02.x and 2023.05.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2023-08-25 16:11 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-08 23:28 [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 02/17] support/testing: TestPythonPy3S3transfer: increase ext2 size to 250M Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 03/17] support/testing: TestPythonPy3Boto3: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 04/17] support/testing: TestPythonPy3Botocore: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 05/17] support/testing: TestSELinuxSystemd: kernel bump 6.1.26 Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 06/17] support/testing/infra/basetest.py: use Bootlin toolchain stable 2022.08-1 Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 07/17] support/testing: TestMtools: use base configuration Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 08/17] support/testing: TestZ3: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 09/17] support/testing: Test{No, All, NonDefaultLimited}Timezone: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 10/17] support/testing: TestPythonPy3SciPy: use python " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 11/17] support/testing: TestPythonPy3Autobahn: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 12/17] support/testing: TestPythonPy3Crossbar: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 13/17] support/testing: TestPythonPy3Cryptography: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 14/17] support/testing: TestPythonPy3MagicWormhole: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 15/17] support/testing: TestPythonPy3ServiceIdentity: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 16/17] support/testing: TestPythonPy3Treq: " Romain Naour
2023-06-08 23:28 ` [Buildroot] [PATCH v2 17/17] support/testing: TestPythonPy3Txtorcon: " Romain Naour
2023-07-12 21:24 ` [Buildroot] [PATCH v2 01/17] package/python-iptables: fix _find_library() Thomas Petazzoni via buildroot
2023-08-25 16:11 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox