Public bug reported:
When using dh-cargo with vendored crates (eg: debian/rust-vendor), if a
package is required to declare a static library it will cause build
failures due to the dpkg-query in the dh-cargo-built-using script.
Suppose we have a Rust application/package that requires vendoring
crates since some are available in the archive. One of the then vendored
crates is "psm" which declares a static library. The following will
occur when using dh-cargo:
/usr/share/cargo/bin/dh-cargo-built-using: found static lib psm_s at
/build/reproducible-path/my-package/target/x86_64-unknown-linux-gnu/debug/build/psm-3de32bd1f76bcd33/out/libpsm_s.a
dpkg-query: no path found matching pattern
/build/reproducible-path/my-package/debian/rust-vendor/psm
/usr/share/cargo/bin/dh-cargo-built-using: abort: could not find Debian package
for file /build/reproducible-path/my-package/debian/rust-vendor/psm
dh_auto_test: error: env CARGO_CHANNEL=debug
/usr/share/cargo/bin/dh-cargo-built-using returned exit code 1
** Affects: dh-cargo (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2167821
Title:
dh-cargo-built-using fails on non-debian vendored crates
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-cargo/+bug/2167821/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs