[Pkg-rust-maintainers] Bug#1084372: rust-fake-instant: FTBFS: error: lint `box_pointers` has been removed: it does not detect other kinds of allocations, and existed only for historical reasons

Santiago Vila sanvila at debian.org
Mon Oct 7 09:41:41 BST 2024


Package: src:rust-fake-instant
Version: 0.4.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem cargo
    dh_update_autotools_config -O--buildsystem=cargo
    dh_autoreconf -O--buildsystem=cargo
    dh_auto_configure -O--buildsystem=cargo
debian cargo wrapper: options, profiles, parallel, lto: ['parallel=2'] [] ['-j2']
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into /<<PKGBUILDDIR>>/debian/cargo_registry/
    dh_auto_build -O--buildsystem=cargo
    debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_test -- test --all
debian cargo wrapper: options, profiles, parallel, lto: ['parallel=2'] [] ['-j2']
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j2', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {}
    Compiling fake_instant v0.4.0 (/<<PKGBUILDDIR>>)
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=fake_instant CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='MaidSafe Developers <dev at maidsafe.net>:Mingwei Samuel <mingwei.samuel at gmail.com>' CARGO_PKG_DESCRIPTION='Fake clock for deterministic testing of code depending on time.' CARGO_PKG_HOMEPAGE='https://maidsafe.net' CARGO_PKG_LICENSE='MIT OR BSD-3-Clause' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=fake_instant CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/MingweiSamuel/fake_clock' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name fake_instant --edition=2018 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)' --check-cfg 'cfg(feature, values())' -C metadata=248cccbcd4090b53 -C extra-filename=-248cccbcd4090b53 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/fake-instant-0.4.0 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=fake_instant CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='MaidSafe Developers <dev at maidsafe.net>:Mingwei Samuel <mingwei.samuel at gmail.com>' CARGO_PKG_DESCRIPTION='Fake clock for deterministic testing of code depending on time.' CARGO_PKG_HOMEPAGE='https://maidsafe.net' CARGO_PKG_LICENSE='MIT OR BSD-3-Clause' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=fake_instant CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/MingweiSamuel/fake_clock' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name fake_instant --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=e6146674093e92fc -C extra-filename=-e6146674093e92fc --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/fake-instant-0.4.0 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
warning: lint `exceeding_bitshifts` has been renamed to `arithmetic_overflow`
   --> src/lib.rs:24:5
    |
24 |     exceeding_bitshifts,
    |     ^^^^^^^^^^^^^^^^^^^ help: use the new name: `arithmetic_overflow`
    |
    = note: `#[warn(renamed_and_removed_lints)]` on by default

warning: lint `box_pointers` has been removed: it does not detect other kinds of allocations, and existed only for historical reasons
   --> src/lib.rs:57:5
    |
57 |     box_pointers,
    |     ^^^^^^^^^^^^
    |
note: the lint level is defined here
   --> src/lib.rs:28:5
    |
28 |     warnings
    |     ^^^^^^^^
    = note: `#[warn(renamed_and_removed_lints)]` implied by `#[warn(warnings)]`

warning: `fake_instant` (lib) generated 2 warnings (run `cargo fix --lib -p fake_instant` to apply 1 suggestion)
warning: `fake_instant` (lib test) generated 2 warnings (2 duplicates)
     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s
      Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='MaidSafe Developers <dev at maidsafe.net>:Mingwei Samuel <mingwei.samuel at gmail.com>' CARGO_PKG_DESCRIPTION='Fake clock for deterministic testing of code depending on time.' CARGO_PKG_HOMEPAGE='https://maidsafe.net' CARGO_PKG_LICENSE='MIT OR BSD-3-Clause' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=fake_instant CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/MingweiSamuel/fake_clock' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps:/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug:/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib' /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/fake_instant-e6146674093e92fc`

running 9 tests
test tests::checked_duration_since_none ... ok
test tests::checked_duration_since_some ... ok
test tests::saturating_duration_since_zero ... ok
test tests::test_advance_time ... ok
test tests::saturating_duration_since_nonzero ... ok
test tests::test_checked_add_none ... ok
test tests::test_checked_add_some ... ok
test tests::test_checked_sub_none ... ok
test tests::test_checked_sub_some ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

    Doc-tests fake_instant
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=fake_instant CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='MaidSafe Developers <dev at maidsafe.net>:Mingwei Samuel <mingwei.samuel at gmail.com>' CARGO_PKG_DESCRIPTION='Fake clock for deterministic testing of code depending on time.' CARGO_PKG_HOMEPAGE='https://maidsafe.net' CARGO_PKG_LICENSE='MIT OR BSD-3-Clause' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=fake_instant CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/MingweiSamuel/fake_clock' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustdoc --edition=2018 --crate-type lib --crate-name fake_instant --test src/lib.rs --test-run-directory /<<PKGBUILDDIR>> --target x86_64-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern fake_instant=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libfake_instant-248cccbcd4090b53.rlib -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' --error-format human`
warning: lint `exceeding_bitshifts` has been renamed to `arithmetic_overflow`
   --> src/lib.rs:24:5
    |
24 |     exceeding_bitshifts,
    |     ^^^^^^^^^^^^^^^^^^^ help: use the new name: `arithmetic_overflow`
    |
    = note: `#[warn(renamed_and_removed_lints)]` on by default

error: lint `box_pointers` has been removed: it does not detect other kinds of allocations, and existed only for historical reasons
   --> src/lib.rs:57:5
    |
57 |     box_pointers,
    |     ^^^^^^^^^^^^
    |
note: the lint level is defined here
   --> src/lib.rs:28:5
    |
28 |     warnings
    |     ^^^^^^^^
    = note: `#[forbid(renamed_and_removed_lints)]` implied by `#[forbid(warnings)]`

error: aborting due to 1 previous error; 1 warning emitted

error: doctest failed, to rerun pass `--doc`

Caused by:
   process didn't exit successfully: `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=fake_instant CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='MaidSafe Developers <dev at maidsafe.net>:Mingwei Samuel <mingwei.samuel at gmail.com>' CARGO_PKG_DESCRIPTION='Fake clock for deterministic testing of code depending on time.' CARGO_PKG_HOMEPAGE='https://maidsafe.net' CARGO_PKG_LICENSE='MIT OR BSD-3-Clause' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=fake_instant CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/MingweiSamuel/fake_clock' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustdoc --edition=2018 --crate-type lib --crate-name fake_instant --test src/lib.rs --test-run-directory /<<PKGBUILDDIR>> --target x86_64-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern fake_instant=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libfake_instant-248cccbcd4090b53.rlib -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' --error-format human` (exit status: 1)
note: test exited abnormally; to see the full output pass --nocapture to the harness.
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 1
make[1]: *** [debian/rules:6: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.


More information about the Pkg-rust-maintainers mailing list