Package: dpkg-dev
Version: 1.19.0.2
Severity: minor
Tags: patch

Dear Maintainer,

when bundling from simple format 1.0 sources, dpkg-source -b since 1.19
emits a Perl warning about an unitialized variable:

| Use of uninitialized value $tarname in concatenation (.) or string at 
/usr/share/perl5/Dpkg/Source/Package/V1.pm line 413.

Fix is fairly simple:

--- /usr/share/perl5/Dpkg/Source/Package/V1.pm
+++ /usr/share/perl5/Dpkg/Source/Package/V1.pm
@@ -410,7 +410,7 @@
     }
 
     $self->add_file($tarname) if $tarname;
-    if (-e "$tarname.sig" and not -e "$tarname.asc") {
+    if ($tarname and -e "$tarname.sig" and not -e "$tarname.asc") {
         openpgp_sig_to_asc("$tarname.sig", "$tarname.asc");
     }
     $self->add_file($tarsign) if $tarsign and -e $tarsign;


Regards,

    Christoph


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.52 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages dpkg-dev depends on:
ii  binutils      2.29.1-5
ii  bzip2         1.0.6-8.1
ii  libdpkg-perl  1.19.0.2
ii  make          4.1-9.1
ii  patch         2.7.5-1+b2
ii  perl          5.26.0-8
ii  tar           1.29b-2
ii  xz-utils      5.2.2-1.3

Versions of packages dpkg-dev recommends:
ii  build-essential          12.4
ii  fakeroot                 1.22-1
ii  gcc [c-compiler]         4:7.2.0-1d1
ii  gcc-7 [c-compiler]       7.2.0-11
ii  gnupg                    2.2.1-2
ii  gpgv                     2.2.1-2
pn  libalgorithm-merge-perl  <none>

Versions of packages dpkg-dev suggests:
ii  debian-keyring  2017.08.28

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to