Package: devscripts Version: 2.21.4 Severity: important Tags: patch X-Debbugs-Cc: daichi.fuku...@gmail.com
Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? The debmake command, which internally uses dpkg-depcheck, fails as follows in the bookworm/sid environment. $ debmake -j -a package.tar.gz ... Can't exec "tempfile": No such file or directory at /usr/bin/dpkg-depcheck line 375. ... I was just following an instruction written here: https://www.debian.org/doc/manuals/debmake-doc/ch06.en.html#joption * What exactly did you do (or not do) that was effective (or ineffective)? The error log mentioned above reveals that dpkg-depcheck went wrong for some reason. After some investigation, I found that tempfile command is still used in the dpkg script file, though the tempfile command has been obsolete since debianutils (5.0-1). To address this issue, I created a simple patch, which just replaces tempfile with mktemp, following the guideline shown in the BUGS section in its manpage: https://manpages.debian.org/unstable/debianutils/tempfile.1.en.html For the created patch, please kindly see the attachment. * What was the outcome of this action? Without any modification, dpkg-depcheck fails with the latest debianutils package (5.5-1) provided. $ dpkg-depcheck ls Can't exec "tempfile": No such file or directory at /usr/bin/dpkg-depcheck line 375. Use of uninitialized value $file in scalar chomp at /usr/bin/dpkg-depcheck line 377. Use of uninitialized value $file in substitution (s///) at /usr/bin/dpkg-depcheck line 378. Use of uninitialized value $strace_cmd[6] in system at /usr/bin/dpkg-depcheck line 384. strace: Can't fopen '': No such file or directory Use of uninitialized value $strace_cmd[6] in join or string at /usr/bin/dpkg-depcheck line 385. Running strace failed (command line: strace -e trace=open,openat,execve -f -q -o ls * What outcome did you expect instead? The dpkg-depcheck successfully determine packages used to run a command in the latest sid environment as of filing this report. *** End of the template - remove these template lines *** -- Package-specific info: --- /etc/devscripts.conf --- Empty. --- ~/.devscripts --- Not present -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.15.0-144-generic (SMP w/4 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: unable to detect Versions of packages devscripts depends on: ii dpkg-dev 1.20.9 ii fakeroot 1.26-1 ii file 1:5.39-3 ii gnupg 2.2.27-2 ii gpgv 2.2.27-2 ii libc6 2.32-4 ii libfile-dirlist-perl 0.05-2 ii libfile-homedir-perl 1.006-1 ii libfile-touch-perl 0.12-1 ii libfile-which-perl 1.23-1 ii libipc-run-perl 20200505.0-1 ii libmoo-perl 2.005004-2 ii libwww-perl 6.53-1 ii patchutils 0.4.2-1 ii perl 5.32.1-6 ii python3 3.9.2-3 ii sensible-utils 0.0.17 ii wdiff 1.2.2-2+b1 Versions of packages devscripts recommends: ii apt 2.3.9 ii curl 7.74.0-1.3+b1 ii dctrl-tools 2.24-3+b1 ii debian-keyring 2021.09.25 ii dput 1.1.0 ii equivs 2.3.1 ii libdistro-info-perl 1.0 ii libdpkg-perl 1.20.9 ii libencode-locale-perl 1.05-1.1 ii libgit-wrapper-perl 0.048-1 ii libgitlab-api-v4-perl 0.26-1 ii liblist-compare-perl 0.55-1 ii liblwp-protocol-https-perl 6.10-1 ii libsoap-lite-perl 1.27-1 ii libstring-shellquote-perl 1.04-1 ii libtry-tiny-perl 0.30-1 ii liburi-perl 5.08-1 ii licensecheck 3.1.1-2 ii lintian 2.104.0 ii man-db 2.9.4-2 ii patch 2.7.6-7 ii pristine-tar 1.49 ii python3-apt 2.2.1 ii python3-debian 0.1.39 ii python3-magic 2:0.4.24-1 ii python3-requests 2.25.1+dfsg-2 ii python3-unidiff 0.5.5-2 ii python3-xdg 0.27-2 ii strace 5.10-1 ii unzip 6.0-26 ii wget 1.21-1+b1 ii xz-utils 5.2.5-2 Versions of packages devscripts suggests: pn adequate <none> pn at <none> pn autopkgtest <none> pn bls-standalone <none> pn bsd-mailx | mailx <none> ii build-essential 12.9 pn check-all-the-things <none> pn cvs-buildpackage <none> ii debhelper 13.5.2 pn devscripts-el <none> pn diffoscope <none> pn disorderfs <none> pn dose-extra <none> pn duck <none> ii faketime 0.9.8-9 pn gnuplot <none> pn how-can-i-help <none> ii libauthen-sasl-perl 2.1600-1.1 pn libdbd-pg-perl <none> ii libfile-desktopentry-perl 0.22-2 pn libnet-smtps-perl <none> pn libterm-size-perl <none> ii libtimedate-perl 2.3300-2 pn libyaml-syck-perl <none> pn mmdebstrap <none> ii mozilla-devscripts 0.54.2 pn mutt <none> ii openssh-client [ssh-client] 1:8.4p1-6 pn piuparts <none> pn postgresql-client <none> pn pristine-lfs <none> ii quilt 0.66-2.1 pn ratt <none> pn reprotest <none> pn svn-buildpackage <none> pn w3m <none> -- no debconf information
>From ac8eb6bd020009f63cb410acdfad41f2529bdcbb Mon Sep 17 00:00:00 2001 From: Daichi Fukui <daichi.fuku...@gmail.com> Date: Sat, 2 Oct 2021 09:37:47 +0000 Subject: [PATCH] scripts/dpkg-depcheck: replace tempfile with mktemp Signed-off-by: Daichi Fukui <daichi.fuku...@gmail.com> --- scripts/dpkg-depcheck.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dpkg-depcheck.pl b/scripts/dpkg-depcheck.pl index 401aa5ca..63854156 100755 --- a/scripts/dpkg-depcheck.pl +++ b/scripts/dpkg-depcheck.pl @@ -372,7 +372,7 @@ sub getusedfiles (@) { $file = $opts{"strace-input"}; } else { my $old_locale = $ENV{'LC_ALL'} || undef; - $file = $opts{"strace-output"} || `tempfile -p depcheck`; + $file = $opts{"strace-output"} || `mktemp`; chomp $file; $file =~ s%^(\s)%./$1%; my @strace_cmd = ( -- 2.33.0