Bug#881954: uscan: “user specified script” stderr not passed through concurrently
Thorsten Glaser
tg at mirbsd.de
Thu Nov 16 21:15:54 UTC 2017
Package: devscripts
Version: 2.17.11
Severity: minor
After getting a line like this from uscan while updating src:musescore…
uscan info: Successfully repacked ../MuseScore-2.2%25pre20171116.tar.gz as ../musescore_2.2%pre20171116+dfsg1.orig.tar.gz, deleting 97 files from it.
… there’s no output any more. The script debian/repack which is called
from uscan does, however, output progress information to stderr.
When the script exits/aborts, the output is shown all at once instead,
e.g. for a failure:
[…]
uscan info: Successfully repacked ../MuseScore-2.2%25pre20171116.tar.gz as ../musescore_2.2%pre20171116+dfsg1.orig.tar.gz, deleting 97 files from it.
uscan die: uscan: Failed to Execute user specified script:
debian/repack --upstream-version 2.2%pre20171116+dfsg1
debian/repack: Repacking upstream tarball '../musescore_2.2~pre20171116+dfsg1.orig.tar.gz'.
debian/repack: Error! Upstream tarball not found.
debian/repack - set MuseScore revision number and check for DFSG compliance.
Usage: debian/repack --upstream-version VERSION [UPSTREAM-TARBALL]
Example: debian/repack --upstream-version "2.0.1+dfsg1"
(Also note the “Failed to Execute” misspelling.) Or for a success:
[…]
uscan info: Successfully repacked ../MuseScore-2.2%25pre20171116.tar.gz as ../musescore_2.2%pre20171116+dfsg1.orig.tar.gz, deleting 97 files from it.
uscan info: Executing user specified script:
debian/repack --upstream-version 2.2%pre20171116+dfsg1
debian/repack: Repacking upstream tarball '../musescore_2.2%pre20171116+dfsg1.orig.tar.gz'.
Unpacking upstream tarball into 'tmp-musescore-2.2~pre20171116+dfsg1'.
Checking for DFSG compliance. If any non compliant files are discovered then
they will be printed on the Terminal and then this script will exit. The non-
compliant files must be added to the Files-Excluded list within debian/copyright
and then you will need to run 'uscan' or 'gbp import-orig' again. See USCAN(1).
Searching for PDF files...
Searching for precompiled binaries...
Determining upstream revision (first 7 characters of Git commit SHA).
Upstream revision is '25f03fe'.
Setting revision number in 'mscore/revision.h' to '25f03fe'.
Removing temporary files.
Finished!
The upstream code is in "../musescore_2.2~pre20171116+dfsg1.orig.tar.xz".
Check this in with pristine-tar after committing it to the upstream branch:
$ pristine-tar commit '../musescore_2.2~pre20171116+dfsg1.orig.tar.xz'
Use 'uupdate' to upgrade the source package based on the upstream release:
$ uupdate --upstream-version '2.2~pre20171116' '../musescore_2.2~pre20171116+dfsg1.orig.tar.xz'
Or, if working in a Git repository, use git-buildpackage to update the source:
$ gbp import-orig --merge-mode=replace '../musescore_2.2~pre20171116+dfsg1.orig.tar.xz'
uscan info: Scan finished
uscan should connect the script’s stderr with its parent’s
so progress messages like this will be shown.
-- Package-specific info:
--- /etc/devscripts.conf ---
--- ~/.devscripts ---
DEBCHANGE_AUTO_NMU=no
DEBCHANGE_MAINTTRAILER=no
DEBCHANGE_MULTIMAINT_MERGE=yes
DEBCHANGE_RELEASE_HEURISTIC=log
-- System Information:
Debian Release: buster/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64
Kernel: Linux 4.12.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)
Versions of packages devscripts depends on:
ii dpkg-dev 1.19.0.4
ii libc6 2.24-17
ii libfile-homedir-perl 1.002-1
ii perl 5.26.1-2
ii python3 3.6.3-2
ii sensible-utils 0.0.10
Versions of packages devscripts recommends:
ii apt 1.6~alpha4
ii at 3.1.20-3.1
ii curl 7.56.1-1
ii dctrl-tools 2.24-2
ii debian-keyring 2017.08.28
ii dput 1.0.1
pn equivs <none>
ii fakeroot 1.22-1
ii file 1:5.32-1
ii gnupg 2.2.2-1
pn libdistro-info-perl <none>
ii libdpkg-perl 1.19.0.4
ii libencode-locale-perl 1.05-1
pn libgit-wrapper-perl <none>
pn liblist-compare-perl <none>
ii liblwp-protocol-https-perl 6.07-2
pn libsoap-lite-perl <none>
ii liburi-perl 1.72-2
ii libwww-perl 6.27-1
ii licensecheck 3.0.31-2
ii lintian 2.5.59
ii man-db 2.7.6.1-2
ii patch 2.7.5-1
ii patchutils 0.3.4-2
ii python3-apt 1.4.0~beta3
ii python3-debian 0.1.31
ii python3-magic 1:5.32-1
ii python3-requests 2.18.1-1
pn python3-unidiff <none>
pn python3-xdg <none>
ii strace 4.19-1
ii unzip 6.0-21
ii wdiff 1.2.2-2
ii wget 1.19.2-1
ii xz-utils 5.2.2-1.3
Versions of packages devscripts suggests:
ii adequate 0.15.1
pn autopkgtest <none>
pn bls-standalone <none>
ii bsd-mailx [mailx] 8.1.2-0.20160123cvs-4
ii build-essential 12.4
pn check-all-the-things <none>
pn cvs-buildpackage <none>
pn devscripts-el <none>
ii diffoscope 88
pn disorderfs <none>
pn dose-extra <none>
pn duck <none>
pn faketime <none>
pn gnuplot <none>
ii gpgv 2.2.2-1
pn how-can-i-help <none>
pn libauthen-sasl-perl <none>
pn libfile-desktopentry-perl <none>
pn libnet-smtps-perl <none>
pn libterm-size-perl <none>
ii libtimedate-perl 2.3000-2
pn libyaml-syck-perl <none>
pn mozilla-devscripts <none>
pn mutt <none>
ii openssh-client [ssh-client] 1:7.6p1-2
pn piuparts <none>
ii quilt 0.63-8.1
pn ratt <none>
pn reprotest <none>
pn svn-buildpackage <none>
pn w3m <none>
-- no debconf information
More information about the devscripts-devel
mailing list