#1149124 rust-rootasrole: FTBFS with the nocheck build profile

#1149124#5
Date:
2026-09-26 23:27:56 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable using the nocheck build profile,
this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

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

A wiki page discussing how to reproduce bugs in this category and
possible solutions is available here:

https://wiki.debian.org/qa.debian.org/FTBFS/nocheck

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 cannot 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 add an affects on src:rust-rootasrole, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
error: could not compile `rootasrole-core` (lib) due to 22 previous errors

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] _64-linux-gnu` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
warning: `nonstick2` (lib) generated 14 warnings
error: failed to compile `rootasrole v4.0.2 (/<<PKGBUILDDIR>>)`, intermediate artifacts can be found at `/<<PKGBUILDDIR>>/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_BUILD_BUILD_DIR` to that path.
Traceback (most recent call last):
  File "/usr/share/cargo/bin/cargo", line 267, in <module>
    sys.exit(main(*sys.argv[1:]))
             ~~~~^^^^^^^^^^^^^^^
  File "/usr/share/cargo/bin/cargo", line 257, in main
    return install(os.getenv("DESTDIR", ""),
        os.environ["DEB_CARGO_CRATE"],
    ...<2 lines>...
        os.getenv("DEB_CARGO_INSTALL_PREFIX", "/usr"),
        *newargs)
  File "/usr/share/cargo/bin/cargo", line 137, in install
    logrun(["env", "RUST_BACKTRACE=1",
    ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        # set CARGO_TARGET_DIR so build products are saved in target/
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        ([crate, "--vers", version] if crate_in_registry else ["--path", in_cwd()]) +
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        ["--root", install_target], check=True)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/cargo/bin/cargo", line 76, in logrun
    return subprocess.run(*args, **kwargs)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['env', 'RUST_BACKTRACE=1', 'CARGO_TARGET_DIR=/<<PKGBUILDDIR>>/target', '/usr/bin/cargo', '-Zavoid-dev-deps', 'install', '--verbose', '--verbose', '-j2', '--target', 'x86_64-unknown-linux-gnu', '--bin', 'dosr', '--features', 'finder', '--path', '/<<PKGBUILDDIR>>', '--root', 'debian/dosr/usr/lib/cargo']' returned non-zero exit status 101.
dh_auto_install: error: env DESTDIR=debian/dosr /usr/share/cargo/bin/cargo install --bin dosr --features finder returned exit code 1
make[1]: *** [debian/rules:13: override_dh_auto_install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1149124#10
Date:
2026-09-29 22:03:43 UTC
From:
To:
Hello Santiago,

Thank you for bringing this to my attention! I must admit I wasn't
entirely familiar with the issue displayed on the ddpo panel, but now
I've looked into it.

I have now fixed and tested the package. I opened a MR in the Rust
team's repository, so the fix should be uploaded soon.

https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/1452
<https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/1452>

Best regards,

Eddie

#1149124#15
Date:
2026-10-06 02:38:13 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rust-rootasrole, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1149124@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Eddie Billoir <lechatp@outlook.fr> (supplier of updated rust-rootasrole package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 05 Oct 2026 20:53:44 -0500
Source: rust-rootasrole
Architecture: source
Version: 4.0.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed-By: Eddie Billoir <lechatp@outlook.fr>
Closes: 1149124
Changes:
 rust-rootasrole (4.0.2-2) unstable; urgency=medium
 .
   * Package rootasrole 4.0.2 from crates.io using debcargo 2.8.4
   * fix: add postrm for purging, solves piuparts
   * fix: use override_dh_auto_configure, solving FTBS (Closes: #1149124)
   * fix: add missing build_depends
Checksums-Sha1:
 d5b0bbaf01ff1f7bbc09d0d46bcbe66957946493 3173 rust-rootasrole_4.0.2-2.dsc
 f10dbc21fe7e420688e68ef21c9996007b1097c7 8748 rust-rootasrole_4.0.2-2.debian.tar.xz
 114f547b05fc291d527d15031c48e541e1ca3547 11364 rust-rootasrole_4.0.2-2_source.buildinfo
Checksums-Sha256:
 4792489f4866b610b848435848a0ae817cd5df111b069dbcf048e46a4c7e8112 3173 rust-rootasrole_4.0.2-2.dsc
 2df97524039ffe5fe61ba54089d0e8d99254397f13e480ab9b17f8939357e0dc 8748 rust-rootasrole_4.0.2-2.debian.tar.xz
 033846d799448b998998a3955428a469ae870c51be917f8a882ef864e422d807 11364 rust-rootasrole_4.0.2-2_source.buildinfo
Files:
 44f19c7040e283a1bd91ad31490ada25 3173 utils optional rust-rootasrole_4.0.2-2.dsc
 7447206bea57accd6d61cf139c5ba4b3 8748 utils optional rust-rootasrole_4.0.2-2.debian.tar.xz
 5d7b996bcbe0bfcf9f7a3a6d759dd668 11364 utils optional rust-rootasrole_4.0.2-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEXHq+og+GMEWcyMi14n8s+EWML6QFAmrEVLcACgkQ4n8s+EWM
L6QGqg/+N/1TC/IIcKqerfEEI2kObE6asAyyqMU/RmlSMqBqrY80hnT0fjFI/cR1
wuS6angz0+wa3fqoU9aOaB1O1rEsx20I48si77VgY/yQcjIGAGgmC8/Vr+7gmIe1
E2GpR7UgH12b14PHqymax7bxWGLhTjufmWbT8D4lUBCLvLun0LeGEwkrbtCTRQpS
Iu3+m7s4Ly5aYbb0WBvHYKi4VWg9a+PCF6CQGkpGVtN1upx1ntGIHgXMFaKQcLoG
pijG57Lva0dQsZN2QTCUUOgj1UhjSX+FDsVCEUsMfWWn5YZwxor7omuCU/2Tic2b
VubeQ/27423Gn1bpUCTJcZnpoxKKoUlePNA+unvSgMt3rvOEoEw6IUxl1fdnekNv
3B0fpGgauhzLWsiG+wC21fo1afNa5xRBUCE62n/rItiZKUmhwXJj04XAC6O0QTUq
FWOLht1GiiBp2W8sc4mTdh/9YyfaO0G3Tlm86wphA+OAk9PdYc2cOuTR0gXJVOVH
qQAgbHhuopPXc9ztt5i4cFudpnySYDMrFOw6OjZkaHq7JncWwrASpoK47zN6kQwl
DLZbFpiVInVfNeeOziS8FywlTlDylLamLEaZWXB9/uK3Ti2XpfEAYledMdEwkP8S
KgBPajKox5Kb0akrxUEhjAWPnuAmIQTHjEHubJdKRQl74kqh74s=
=bvL0
-----END PGP SIGNATURE-----