Your message dated Wed, 10 Nov 2021 15:19:01 +0000
with message-id <[email protected]>
and subject line Bug#995583: fixed in devscripts 2.21.5
has caused the Debian Bug report #995583,
regarding dpkg-depcheck: use mktemp to replace obsolete tempfile
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.)


-- 
995583: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995583
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: devscripts
Version: 2.21.4
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected]

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 <[email protected]>
Date: Sat, 2 Oct 2021 09:37:47 +0000
Subject: [PATCH] scripts/dpkg-depcheck: replace tempfile with mktemp

Signed-off-by: Daichi Fukui <[email protected]>
---
 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


--- End Message ---
--- Begin Message ---
Source: devscripts
Source-Version: 2.21.5
Done: Mattia Rizzolo <[email protected]>

We believe that the bug you reported is fixed in the latest version of
devscripts, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mattia Rizzolo <[email protected]> (supplier of updated devscripts package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 10 Nov 2021 15:45:35 +0100
Source: devscripts
Architecture: source
Version: 2.21.5
Distribution: unstable
Urgency: medium
Maintainer: Devscripts Maintainers <[email protected]>
Changed-By: Mattia Rizzolo <[email protected]>
Closes: 688219 993585 995583 996392 996565 998542
Changes:
 devscripts (2.21.5) unstable; urgency=medium
 .
   [ Paul Wise ]
   * bts:
     + sync list of tags from the BTS debbugs config.
   * grep-excuses:
     + allow passing multiple package names to -w/--wipnity.  MR: !232
 .
   [ Daichi Fukui ]
   * dpkg-depcheck:
     + Replace tempfile with mktemp.  Closes: #995583
 .
   [ Hugh McMaster ]
   * nmudiff:
     + Fix spelling of the --non-dd/--nondd options in the manpage.  MR: !241
   * uscan:
     + Assign $newfile_base a filename, not a URL, when filenamemangling.
       Closes: #993585; MR: !235
     + Use upstream package filename in verbose output where appropriate.
 .
   [ Mattia Rizzolo ]
   * nmudiff:
     + Apply patches from Raúl Benencia <[email protected]> to:
       - fix typo in documentation.  Closes: #996392
       - fix misleading delay header on non-dd use case.  Closes: #996565
   * uscan:
     + In the examples, use @ANY_VERSION@ and @ARCHIVE_EXT@ wherever possible.
       Thanks to Bastien Roucariès for the suggestion.
     + In the examples, drop all usages of `uupdate` as "script": it is my
       opinion that nowadays very few people should actually be calling
       uupdate, as `gbp import-orig` or similar tools already cover that;
       mixing gbp and uupdate leads to what people would not normally expect.
     + In the examples, also drop all needless usage of the "debian" version,
       which is the default: it is my opion that such examples only lead to
       blind cargo-culting.
   * Declaratively build-depend on dh-sequence-python3 and drop --with python3.
   * Bump debhelper compat level to 13.
   * Fix some new pylint issues across the codebase:  Closes: #998542
     + R1732: consider-using-with.
     + C0209: consider-using-f-string (prject-wide ignore).
     + R1734/R1735: use-list-literal/use-dict-literal.
     + W1514: unspecified-encoding.
 .
   [ Yadd ]
   * Update fr translation.
   * Reformat perl scripts with the new perltidy 20210717.
   * uscan:
     + Add repack tests for lzma.
     + Die if filenamemangle failed.  MR: !238
     + Die in case of filename conflict within the same uscan process.  MR: !238
     + Add Zstandard support.  For now uscan will force its repacking to
       .tar.xz, at least until dpkg-source fully supports the format.  MR: !122
 .
   [ Nicholas D Steeves ]
   * d/control:
     + Suggest elpa-devscripts instead of the now dummy devscripts-el.  MR: !236
 .
   [ Jelmer Vernooij ]
   * New script!
     + deb-janitor: a command-line client for the Debian janitor API.  MR: !211
       Current features include scheduling a package run and retrieving a diff
       of a specific run.
 .
   [ Kylie McClain ]
   * checkbashisms:
     + Add a new option -l/--lint to make checkbashisms format its output in a
       machine-parsable way normally used by editors.  MR: !228
 .
   [ Ian Jackson ]
   * grep-excuses:
     + When run with --autopkgtests (which shows test failures of the given
       packages when triggered by other packages) ignore the RUNNING and
       OLD_PASS states.  MR: !234
 .
   [ Niels Thykier ]
   * wrap-and-sort:
     + Make use of the new `order_after` method from python-debian if
       available, for improved performance.  MR: !240
 .
   [ Simon McVittie ]
   * debdiff:
     + New option --(no-)apply-patches to diff the patched tree for 3.0(quilt)
       source packages, instead of only diffing the single patches.
       MR: !170; Closes: #688219; See #939602
 .
   [ Ville Skyttä ]
   * Fix some spelling errors in code comments.  MR: !243
Checksums-Sha1:
 f357c4b30af11b0cdb901af0f34dcf796aa9fb58 3211 devscripts_2.21.5.dsc
 0d0dfddcd9120294205a062eaf5feb2096db19cd 987636 devscripts_2.21.5.tar.xz
 dfecacdbe150f12ab32c6cf0a5d8770250ce6fbf 12512 
devscripts_2.21.5_amd64.buildinfo
Checksums-Sha256:
 48af5dc10ef4ab81faa5e2d6d16f9fba0794c17c028b39394033f80c69fbe87a 3211 
devscripts_2.21.5.dsc
 f475dcc681a8f7b06209149fd565db7491e7bfb8b34aaf29005eeffef81cebb1 987636 
devscripts_2.21.5.tar.xz
 000f05bbc683774cf0aad8d6b75478a121467e89d29323308efa828502d50378 12512 
devscripts_2.21.5_amd64.buildinfo
Files:
 9cb89d54c92b2e8139fdd240d52a448a 3211 devel optional devscripts_2.21.5.dsc
 f103300e605837d393d43b7bc0264554 987636 devel optional devscripts_2.21.5.tar.xz
 8c5051ba58f47bf8c9fd1ef8210b79fd 12512 devel optional 
devscripts_2.21.5_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEi3hoeGwz5cZMTQpICBa54Yx2K60FAmGL3W8ACgkQCBa54Yx2
K63zpBAAlE4X2eVzwG+iFefBBPIaIyXh+oqUD8Dba7tGmIYKjNpw1uKX6Je31pqQ
VQ9fkm8Vg32G9gphoBIrSSowuyRc7L1L0d1aM6dip7hZdyeJD8U8we3Ei2r+XSaj
5HxKpwGVcPlxe4FIyxplFJW8mC0HlTpMguyOjC2QHEAaWp4W43VZXrPIpYxpe5BU
Tf3G46cmGKyn9FNpRHepxRzvT+9UD6UtZq+k3Lw03R8NBqnOnWP+l1n5xin4kw/v
Is9mCqb2mAQRxSYKT8MVgKXSSzidIqWWrGNlO+3mvOQElt47pzqHiuj4abrRMwNT
iZPIRRvQ0Dug9iH1IGDUqtVsZDUb+LltJz3eXlzotTy7rUutz7rnl9Q32+RUPPCo
n5YPMgXl0KehAVKZ0kKx6IreC1Hyrhk2nI4zBf3l91998+SyG3ARXl1IuarFhP6j
2uJM6hnPJmeBDxvpfOSRLA5sJU32pjFpQXy5nBIbGVQVZxeNBD5xeZsCdUav1RfH
K/uqbvLg7zhFr4QZ0rAroWci5J8vPfoN0QBay8z1ZV1jqOipaz2oTIv81GZ+pOwT
YsTDA9QkICbrepHTnlpfsWqyhCwgkW243+3No46xzrz+1UZmeUtGT7viZaACL1BF
8O+xfqlyjglOvGmdGUkxA5gumpNemF+QKxORDzUw4j5ERJ62AVE=
=dHHm
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to