debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #03469
[Bug 2116109] [NEW] dh-cargo-built-using: should disregard deps from vendor dir
Public bug reported:
If one of the vendored crates builds a static library the script will
crash otherwise, e.g.
/usr/share/cargo/bin/dh-cargo-built-using hwctl
/usr/share/cargo/bin/dh-cargo-built-using: found static lib ring_core_0_17_14_ at /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/build/ring-b34e718454b7c404/out/libring_core_0_17_14_.a
/usr/share/cargo/bin/dh-cargo-built-using: abort: could not determine source-distribution conditions of build/ring-b34e718454b7c404/out/libring_core_0_17_14_.a.
You must patch build.rs of ring to output 'println!("dh-cargo:deb-built-using=ring_core_0_17_14_=$s={}", env::var("CARGO_MANIFEST_DIR").unwrap());' where:
- $s is 1 if the license(s) of the included static libs require source distribution alongside binaries, otherwise 0
** Affects: dh-cargo (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to dh-cargo in Ubuntu.
https://bugs.launchpad.net/bugs/2116109
Title:
dh-cargo-built-using: should disregard deps from vendor dir
Status in dh-cargo package in Ubuntu:
New
Bug description:
If one of the vendored crates builds a static library the script will
crash otherwise, e.g.
/usr/share/cargo/bin/dh-cargo-built-using hwctl
/usr/share/cargo/bin/dh-cargo-built-using: found static lib ring_core_0_17_14_ at /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/build/ring-b34e718454b7c404/out/libring_core_0_17_14_.a
/usr/share/cargo/bin/dh-cargo-built-using: abort: could not determine source-distribution conditions of build/ring-b34e718454b7c404/out/libring_core_0_17_14_.a.
You must patch build.rs of ring to output 'println!("dh-cargo:deb-built-using=ring_core_0_17_14_=$s={}", env::var("CARGO_MANIFEST_DIR").unwrap());' where:
- $s is 1 if the license(s) of the included static libs require source distribution alongside binaries, otherwise 0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-cargo/+bug/2116109/+subscriptions
Follow ups