Bug#1121707: rust-landlock: FTBFS on !x86: error[E0432]: unresolved import `self::landlock`
Source: rust-landlock
Version: 0.4.3-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-arm@lists.debian.org, debian-powerpc@lists.debian.org, debian-riscv@lists.debian.org, debian-s390@lists.debian.org, sramacher@debian.org
User: debian-arm@lists.debian.org
Usertags: arm64 armhf
User: debian-powerpc@lists.debian.org
Usertags: ppc64el
User: debian-riscv@lists.debian.org
Usertags: riscv64
User: debian-s390@lists.debian.org
Usertags: s390x
Dear maintainer,
rust-landlock FTBFS on all non-x86 release architectures:
Compiling landlock v0.4.3 (/build/reproducible-path/rust-landlock-0.4.3)
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=landlock CARGO_MANIFEST_DIR=/build/reproducible-path/rust-landlock-0.4.3 CARGO_MANIFEST_PATH=/build/reproducible-path/rust-landlock-0.4.3/Cargo.toml CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='Landlock LSM helpers' CARGO_PKG_HOMEPAGE='https://landlock.io' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=landlock CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/landlock-lsm/rust-landlock' CARGO_PKG_RUST_VERSION=1.63 CARGO_PKG_VERSION=0.4.3 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=3 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_SBOM_PATH='' LD_LIBRARY_PATH=/build/reproducible-path/rust-landlock-0.4.3/target/debug/deps rustc --crate-name landlock --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=f8d6903a0c52c9ed -C extra-filename=-8aad198b88159993 --out-dir /build/reproducible-path/rust-landlock-0.4.3/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C incremental=/build/reproducible-path/rust-landlock-0.4.3/target/aarch64-unknown-linux-gnu/debug/incremental -L dependency=/build/reproducible-path/rust-landlock-0.4.3/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/build/reproducible-path/rust-landlock-0.4.3/target/debug/deps --extern enumflags2=/build/reproducible-path/rust-landlock-0.4.3/target/aarch64-unknown-linux-gnu/debug/deps/libenumflags2-4c3e12b42722adb1.rmeta --extern libc=/build/reproducible-path/rust-landlock-0.4.3/target/aarch64-unknown-linux-gnu/debug/deps/liblibc-5da2f3f1d36989fa.rmeta --extern thiserror=/build/reproducible-path/rust-landlock-0.4.3/target/aarch64-unknown-linux-gnu/debug/deps/libthiserror-b50c886d879f9f28.rmeta -C debuginfo=2 -C strip=none --cap-lints warn -C linker=aarch64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /build/reproducible-path/rust-landlock-0.4.3=/usr/share/cargo/registry/landlock-0.4.3 --remap-path-prefix /build/reproducible-path/rust-landlock-0.4.3/debian/cargo_registry=/usr/share/cargo/registry`
error[E0432]: unresolved import `self::landlock`
--> src/uapi/mod.rs:20:15
|
20 | pub use self::landlock::{
| ^^^^^^^^ could not find `landlock` in `self`
|
note: found an item that was configured out
--> src/uapi/mod.rs:9:5
|
7 | #[cfg(target_arch = "x86_64")]
| ---------------------- the item is gated behind the `x86_64` feature
8 | #[path = "landlock_x86_64.rs"]
9 | mod landlock;
| ^^^^^^^^
note: found an item that was configured out
--> src/uapi/mod.rs:17:5
|
15 | #[cfg(target_arch = "x86")]
| ------------------- the item is gated behind the `x86` feature
16 | #[path = "landlock_i686.rs"]
17 | mod landlock;
| ^^^^^^^^
For more information about this error, try `rustc --explain E0432`.
error: could not compile `landlock` (lib) due to 1 previous error
See
https://buildd.debian.org/status/fetch.php?pkg=rust-landlock&arch=arm64&ver=0.4.3-1&stamp=1764491741&raw=0
for more details.
Cheers
--
Sebastian Ramacher
Reply to: