+dh-cargo (16) UNRELEASED; urgency=medium
+
+ * Make detection of rust_libs in dh-cargo-built-using work again.
+
+ -- Ximin Luo <infinity0@debian.org> Mon, 21 Jan 2019 00:04:08 -0800
+
dh-cargo (15) unstable; urgency=medium
* Use source package names in *Built-Using.
rust_libs() {
cat "$CARGO_TARGET_DIR/deps"/*.d \
- | sed -nre 's ^(('"$PWD/"')?'"$CARGO_REGISTRY"'/[^/]*)/.* \1 gp' \
+ | sed -nre 's ^\S*/('"$CARGO_REGISTRY"'/[^/]*)/.* '"$(readlink -f "$PWD")/"'\1 gp' \
| sort -u \
| xargs -r readlink -f \
| xargs -r dpkg -S \
else
local built_using=""
local built_using_x=""
- sort -u | while read pkg ver srcleft; do
+ while read pkg ver srcleft; do
local src="$(dpkg-query -f '${source:Package}' --show "$pkg")"
case "$srcleft" in
2) exit 1;;
{
rust_libs
test -z "$native_libs" || echo "$native_libs"
-} | output "$@"
+} | LC_COLLATE=C.utf-8 sort -u | output "$@"