Your message dated Mon, 15 Jul 2019 21:55:00 +0200
with message-id <[email protected]>
and subject line buster has been released; closing open unblock request
has caused the Debian Bug report #931271,
regarding unblock: dh-cargo/18
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
931271: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931271
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: [email protected]
Usertags: unblock
Please unblock package dh-cargo
Hello
We don't need dh-cargo per say but it is blocking rust-encoding-rs migration.
Version 18 has been in unstable since march without regression
and it is bringing cargo-auto-test to run the testsuite (not used in testing)
unblock dh-cargo/18
-- System Information:
Debian Release: 10.0
APT prefers unstable
APT policy: (600, 'unstable'), (500, 'buildd-unstable'), (500, 'stable'),
(300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru dh-cargo-17/cargo-auto-test dh-cargo-18/cargo-auto-test
--- dh-cargo-17/cargo-auto-test 1970-01-01 01:00:00.000000000 +0100
+++ dh-cargo-18/cargo-auto-test 2019-03-18 01:41:14.000000000 +0100
@@ -0,0 +1,49 @@
+#!/bin/bash
+# Run `cargo test` on an installed Debian crate, e.g. in an autopkgtest.
+#
+# Requires dev-dependencies to be installed. If you give extra flags such as
+# "--all-features", then these features' dependencies must also be installed.
+
+set -e
+
+pkg="$1"
+ver="$2"
+
+if [ -z "$pkg" -o -z "$ver" ]; then
+ echo >&2 "Usage: $0 <crate> <version> [<extra test flags, e.g.
--all-features>]"
+ exit 2
+fi
+shift 2
+
+pkgdir="/usr/share/cargo/registry/${pkg}-${ver}"
+if [ ! -d "$pkgdir" ]; then
+ echo >&2 "crate directory not found: $pkgdir"
+ exit 1
+fi
+cd "$pkgdir"
+
+rundir=$(mktemp -d)
+# https://stackoverflow.com/a/14812383 inside "trap" avoids running handler
twice
+trap 'excode=$?; rm -rf "'"$rundir"'"; trap - EXIT' EXIT HUP INT QUIT PIPE TERM
+
+# set envvars necessary for cargo-debian-wrapper
+
+export DEB_CARGO_CRATE="${pkg}_${ver}"
+export CARGO_HOME="$rundir/debian/cargo_home"
+mkdir -p "$CARGO_HOME"
+mkdir -p "$rundir/registry"
+
+. <(dpkg-buildflags --export)
+. <(dpkg-architecture -s)
+RUST_TYPE="$(rustc --version --verbose | sed -ne 's/^host: //p')"
+export DEB_HOST_RUST_TYPE="$RUST_TYPE"
+export DEB_BUILD_RUST_TYPE="$RUST_TYPE"
+export DEB_TARGET_RUST_TYPE="$RUST_TYPE"
+
+export CARGO_TARGET_DIR="$rundir/target"
+export PATH="/usr/share/cargo/bin:$PATH"
+
+# run the test!
+
+cargo prepare-debian "$rundir/registry" --link-from-system
+cargo test "$@"
diff -Nru dh-cargo-17/debian/changelog dh-cargo-18/debian/changelog
--- dh-cargo-17/debian/changelog 2019-01-24 10:28:43.000000000 +0100
+++ dh-cargo-18/debian/changelog 2019-03-18 05:09:30.000000000 +0100
@@ -1,3 +1,9 @@
+dh-cargo (18) unstable; urgency=medium
+
+ * Add cargo-auto-test to prepare for running autopkgtests.
+
+ -- Ximin Luo <[email protected]> Sun, 17 Mar 2019 21:09:30 -0700
+
dh-cargo (17) unstable; urgency=medium
* Use --link-from-system from the newer debian-cargo-wrapper.
diff -Nru dh-cargo-17/debian/dh-cargo.install
dh-cargo-18/debian/dh-cargo.install
--- dh-cargo-17/debian/dh-cargo.install 2018-12-02 18:24:49.000000000 +0100
+++ dh-cargo-18/debian/dh-cargo.install 2019-03-18 01:39:47.000000000 +0100
@@ -1,2 +1,3 @@
-cargo.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/
+cargo.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/
dh-cargo-built-using /usr/share/cargo/bin
+cargo-auto-test /usr/share/cargo/bin
--- End Message ---
--- Begin Message ---
Hi,
buster has been released on July 6, this unblock request is now moot.
Paul
signature.asc
Description: OpenPGP digital signature
--- End Message ---