package/python-snappy: fix build on architectures without Rust support
PATCH 1/1 package/python-snappy: fix build on architectures without Rust support
Since version 0.7.0, python-snappy uses python-cramjam, which is written in Rust and therefore depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS. python-snappy selects python-cramjam without propagating this dependency, so it can be enabled on architectures for which no Rust target is available, such as mips64el n32:
WARNING: unmet direct dependencies detected for BR2_PACKAGE_PYTHON_CRAMJAM
Depends on [n]: BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS [=n] Selected by [y]:
- BR2_PACKAGE_PYTHON_SNAPPY [=y] && BR2_PACKAGE_PYTHON3 [=y]
RUSTC_TARGET_NAME is then empty, and the python-cramjam build fails with:
error: target was empty
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with cargo build?
Add the missing dependency. The only reverse dependency, python-autobahn, already depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS.
This issue has been present since commit a8c315b62c0c ("package/python-snappy: bump version to 0.7.2"), which replaced the snappy dependency with python-cramjam but did not add the Rust dependency. It is not part of any release yet, and none of the maintenance branches is affected.
Fixes:
https://autobuild.buildroot.org/results/1167070d4ede2d347f343438ab609c0fb3fda519
--- package/python-snappy/Config.in | 1 + 1 file changed, 1 insertion(+)
package/python-snappy/Config.in +1 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_PYTHON_SNAPPY bool "python-snappy" + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-cramjam select BR2_PACKAGE_PYTHON_CRAMJAM # runtime help Python library for the snappy compression library from
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot