mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-17 02:01:31 -10:00
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 a8c315b62c
("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
Fixes: a8c315b62c ("package/python-snappy: bump version to 0.7.2")
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
10 lines
291 B
Plaintext
10 lines
291 B
Plaintext
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
|
|
Google.
|
|
|
|
http://github.com/andrix/python-snappy
|