[Bug 2096268] Re: has_code check in 31ubuntu3 breaks authd builds
Launchpad Bug Tracker
2096268 at bugs.launchpad.net
Sat Jan 25 19:26:35 UTC 2025
This bug was fixed in the package dh-cargo - 31ubuntu4
---------------
dh-cargo (31ubuntu4) plucky; urgency=medium
* dh-cargo-vendored-sources:
- Accept top-level lib.rs (LP: #2096268)
- Improve opendir error messages to include directory name
-- Julian Andres Klode <juliank at ubuntu.com> Thu, 23 Jan 2025 19:41:15
+0100
** Changed in: dh-cargo (Ubuntu)
Status: Triaged => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dh-cargo in Ubuntu.
https://bugs.launchpad.net/bugs/2096268
Title:
has_code check in 31ubuntu3 breaks authd builds
Status in dh-cargo package in Ubuntu:
Fix Released
Bug description:
The new dh-cargo's dh-cargo-vendored-sources `has_code` check breaks
authd builds in plucky:
Cannot open directory: No such file or directory at
/usr/share/cargo/bin/dh-cargo-vendored-sources line 34.
Ideally the error should include what directory is missing, however,
hacking myself the script I've got this log:
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/windows_x86_64_gnullvm-0.48.5/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/pin-project/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/iana-time-zone/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/http-body/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/tower-layer/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/pin-utils/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/prost-derive-0.12.6/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/crc32fast/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/hashbrown/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/regex/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/rand/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/want/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/time-macros/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/rustix/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/addr2line/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/linux-raw-sys/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/js-sys/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/bumpalo/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/windows_x86_64_gnullvm/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/chrono/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/num-conv/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/lazy_static/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/log/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/object/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/regex-syntax/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/prost/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/async-trait/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/windows_aarch64_gnullvm-0.48.5/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/futures-util/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/tracing/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/tokio-macros/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/prettyplease/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/futures-channel/src
Checking /build/authd-mzMr9a/authd-0.3.7+git250123+260+86eebf48~25.04.1/vendor_rust/fnv/src
Cannot open directory: No such file or directory at /usr/share/cargo/bin/dh-cargo-vendored-sources line 34.
---
Now such directory contains this:
# find vendor_rust/fnv/
vendor_rust/fnv/
vendor_rust/fnv/.cargo-checksum.json
vendor_rust/fnv/LICENSE-APACHE
vendor_rust/fnv/Cargo.toml
vendor_rust/fnv/README.md
vendor_rust/fnv/lib.rs
vendor_rust/fnv/LICENSE-MIT
And for sure it compiles properly once the check is removed.
You should just be able to test this by just cloning
https://github.com/ubuntu/authd.git (and adding cargo-vendor-filterer
as build-depends).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-cargo/+bug/2096268/+subscriptions
More information about the foundations-bugs
mailing list