Просмотр исходного кода

package/libdnet: drop support for Python module

The libdnet Python module no longer builds with Python >= 3.13. The
issue has been reported upstream on August 17, 2025, and there has
been no feedback:

  https://github.com/ofalk/libdnet/issues/114

Until this gets resolved, we have no choice but to drop support for
the Python module of this package.

Fixes:

  https://autobuild.buildroot.net/results/4df6bcaa66d79efac3619a47b08f3cb02c13e276/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Thomas Petazzoni 2 недель назад
Родитель
Сommit
acba4b0fef
3 измененных файлов с 9 добавлено и 33 удалено
  1. 7 0
      Config.in.legacy
  2. 0 24
      package/libdnet/Config.in
  3. 2 9
      package/libdnet/libdnet.mk

+ 7 - 0
Config.in.legacy

@@ -146,6 +146,13 @@ endif
 
 comment "Legacy options removed in 2026.02"
 
+config BR2_PACKAGE_LIBDNET_PYTHON
+	bool "libdnet python module removed"
+	select BR2_LEGACY
+	help
+	  The libdnet Python module is no longer compatible with
+	  Python >= 3.13, so it had to be removed.
+
 config BR2_PACKAGE_LIBFREEIMAGE
 	bool "libfreeimage"
 	select BR2_LEGACY

+ 0 - 24
package/libdnet/Config.in

@@ -5,27 +5,3 @@ config BR2_PACKAGE_LIBDNET
 	  routines.
 
 	  http://libdnet.sourceforge.net/
-
-if BR2_PACKAGE_LIBDNET
-
-config BR2_PACKAGE_LIBDNET_PYTHON
-	bool "libdnet python module"
-	depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
-	depends on BR2_PACKAGE_PYTHON3
-	depends on !BR2_STATIC_LIBS # libbsd
-	depends on BR2_TOOLCHAIN_HAS_THREADS # libbsd
-	depends on BR2_USE_WCHAR # libbsd
-	select BR2_PACKAGE_LIBBSD
-	help
-	  dnet module for python
-
-comment "dnet module for python requires python3 package"
-	depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
-	depends on !BR2_PACKAGE_PYTHON3
-
-comment "dnet module for python needs a toolchain w/ dynamic library, threads, wchar"
-	depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
-	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_USE_WCHAR
-
-endif

+ 2 - 9
package/libdnet/libdnet.mk

@@ -12,18 +12,11 @@ LIBDNET_INSTALL_STAGING = YES
 LIBDNET_AUTORECONF = YES
 LIBDNET_CONF_OPTS = \
 	--with-gnu-ld \
-	--with-check=no
+	--with-check=no \
+	--without-python
 LIBDNET_CONFIG_SCRIPTS = dnet-config
 LIBDNET_DEPENDENCIES = host-pkgconf
 
-ifeq ($(BR2_PACKAGE_LIBDNET_PYTHON),y)
-LIBDNET_DEPENDENCIES += libbsd host-python-cython python3
-LIBDNET_CONF_OPTS += --with-python=$(HOST_DIR)/bin
-LIBDNET_MAKE_ENV += $(PKG_PYTHON_SETUPTOOLS_ENV)
-LIBDNET_INSTALL_TARGET_OPTS = $(LIBDNET_MAKE_OPTS) DESTDIR=$(TARGET_DIR) INSTALL_STRIP_FLAG=-s install-exec
-LIBDNET_INSTALL_STAGING_OPTS = $(LIBDNET_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install
-endif
-
 # Needed for autoreconf to work properly
 define LIBDNET_FIXUP_ACINCLUDE_M4
 	ln -sf config/acinclude.m4 $(@D)