diff mbox series

[2/2] package/python-orjson: disallow build when using musl.

Message ID 20220509190650.1348657-2-gsmecher@threespeedlogic.com
State Superseded
Headers show
Series [1/2] package/python-orjson: bump version to 3.6.8. | expand

Commit Message

Graeme Smecher May 9, 2022, 7:06 p.m. UTC
The python-orjson build bails as follows when using musl libc:

	error: cannot produce cdylib for `orjson v3.6.7 (...)` as the
	target `i586-unknown-linux-musl` does not support these crate types

It's not machine-specific (it occurs on i586, s389x, and arm platforms),
and is tied to what appears to be relatively arcane details for
rust/musl:

	https://github.com/rust-lang/rust/issues/59302

At some point, it will be possible to remove this restriction - but not
yet.

Signed-off-by: Graeme Smecher <gsmecher@threespeedlogic.com>
---
 package/python-orjson/Config.in | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/package/python-orjson/Config.in b/package/python-orjson/Config.in
index 420e023b0a..b2ad9062cc 100644
--- a/package/python-orjson/Config.in
+++ b/package/python-orjson/Config.in
@@ -1,6 +1,8 @@ 
 config BR2_PACKAGE_PYTHON_ORJSON
 	bool "python-orjson"
 	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	# doesn't build with musl until rust's cdylib targets work with it
+	depends on !BR2_TOOLCHAIN_USES_MUSL
 	select BR2_PACKAGE_PYTHON_CFFI # runtime
 	help
 	  orjson is a fast, correct JSON library for Python. It
@@ -10,3 +12,6 @@  config BR2_PACKAGE_PYTHON_ORJSON
 	  instances natively.
 
 	  https://github.com/ijl/orjson
+
+comment "python-orjson requires rust cdylib support, which musl doesn't have yet"
+	depends on BR2_TOOLCHAIN_USES_MUSL