From 91e51e267906f41cad530b93879ff3c157f3200d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Tue, 4 Feb 2025 14:13:55 +0100 Subject: [PATCH] support/testing/tests/package/test_python_sdbus_networkmanager: use more recent toolchain Since the bump of NetworkManager to 1.50.0 in Buildroot commit 489d1f924979f7a94008e887393702e3c3663705, the tests.package.test_python_sdbus_networkmanager.TestPythonPy3SdbusNetworkmanager is failing to build as NM >= 1.50.0 needs headers >= 4.20. We fix this test by using a newer toolchain. This means we can't use anymore the basic toolchain config, so we use a fully specific defconfig for this test. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/9019173666 Signed-off-by: Thomas Petazzoni --- .../tests/package/test_python_sdbus_networkmanager.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/support/testing/tests/package/test_python_sdbus_networkmanager.py b/support/testing/tests/package/test_python_sdbus_networkmanager.py index a3961ec54f..c10f73920d 100644 --- a/support/testing/tests/package/test_python_sdbus_networkmanager.py +++ b/support/testing/tests/package/test_python_sdbus_networkmanager.py @@ -3,12 +3,21 @@ from tests.package.test_python import TestPythonPackageBase class TestPythonPy3SdbusNetworkmanager(TestPythonPackageBase): __test__ = True - config = TestPythonPackageBase.config + \ + # Can't use TestPythonPackageBase.config because we need headers + # >= 4.20 for network-manager, so we have to use the bleeding-edge + # toolchain. + 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_PYTHON3=y BR2_INIT_SYSTEMD=y BR2_PACKAGE_NETWORK_MANAGER=y BR2_PACKAGE_PYTHON_SDBUS_NETWORKMANAGER=y + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set """ sample_scripts = ["tests/package/sample_python_sdbus_networkmanager.py"]