@@ -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
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(+)