Skip to contentSkip to conversation

python-libconfig: disable on musl

PATCH New Thomas Petazzoni 1 participant 2 messages Feb 26, 2017 – Feb 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-libconfig: disable on musl

The python-libconfig package fails to build with musl with very weird errors coming all the way from Boost Python, which nobody ever bothered to fix. It's time to disable this package on musl to avoid the repetitive build failures.

Fixes:

http://autobuild.buildroot.net/results/f0f6cdc8c38c024772615d5e677b0f4ad63ef7ec

---
 package/python-libconfig/Config.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
package/python-libconfig/Config.in +5 -2
index 7cc5f8a..a222f9a 100644
@@ -1,5 +1,6 @@
-comment "python-libconfig needs a toolchain w/ C++, threads"
-	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+comment "python-libconfig needs a glibc or uClibc toolchain w/ C++, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+		BR2_TOOLCHAIN_USES_MUSL
 
 config BR2_PACKAGE_PYTHON_LIBCONFIG
 	bool "python-libconfig"
@@ -8,6 +9,8 @@ config BR2_PACKAGE_PYTHON_LIBCONFIG
 	select BR2_PACKAGE_LIBCONFIG
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	# error: invalid use of incomplete type 'struct _IO_FILE'
+	depends on !BR2_TOOLCHAIN_USES_MUSL
 	help
 	  Python bindings to the C++ library libconfig
 
Signature · 1 line
2.7.4
author Applied
#1 lore raw

PATCH 1/1 python-libconfig: disable on musl

Hello,

Quoted 5 lines · Thomas Petazzoni

The python-libconfig package fails to build with musl with very weird errors coming all the way from Boost Python, which nobody ever bothered to fix. It's time to disable this package on musl to avoid the repetitive build failures.

Quoted 8 lines

Fixes:

http://autobuild.buildroot.net/results/f0f6cdc8c38c024772615d5e677b0f4ad63ef7ec

---
 package/python-libconfig/Config.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com