Package: dpkg-dev
Version: 1.14.23
Severity: minor

I ran into this when devising pathological test cases for Lintian.  Not
particularly important (no one does this in practice), but in case you
want to increase robustness in a few places.

The warnings are:

Use of uninitialized value in sprintf at /usr/bin/dpkg-gencontrol line 338.
dpkg-genchanges: warning: duplicate files list entry for file empty_1_.deb 
(line 3)
Use of uninitialized value $b in string eq at /usr/share/perl5/Dpkg/Arch.pm 
line 295.
Use of uninitialized value $_ in pattern match (m//) at 
/usr/share/perl5/Dpkg/Arch.pm line 244.
Use of uninitialized value $arch in hash element at 
/usr/share/perl5/Dpkg/Arch.pm line 251.
Use of uninitialized value $a in split at /usr/bin/dpkg-genchanges line 292.
dpkg-genchanges: failure: cannot fstat file ../empty_1_.deb: No such file or 
directory

Attached is the package (as a *.tar.gz file) and the full build log,
although I'm sure you could replicate the latter yourself.  The test
case was an attempt to create the most minimal package that
dpkg-buildpackage would deign to build, in order to stress Lintian's
handling of missing files and fields that "every" package has.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg-dev depends on:
ii  binutils            2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii  bzip2               1.0.5-1              high-quality block-sorting file co
ii  cpio                2.9-13               GNU cpio -- a program to manage ar
ii  dpkg                1.14.23              Debian package management system
ii  libtimedate-perl    1.1600-9             Time and date functions for Perl
ii  lzma                4.43-14              Compression method of 7z format in
ii  make                3.81-5               The GNU version of the "make" util
ii  patch               2.5.9-5              Apply a diff file to an original
ii  perl [perl5]        5.10.0-18            Larry Wall's Practical Extraction 
ii  perl-modules        5.10.0-18            Core Perl modules

Versions of packages dpkg-dev recommends:
ii  build-essential               11.4       Informational list of build-essent
ii  gcc [c-compiler]              4:4.3.2-2  The GNU C compiler
ii  gcc-4.1 [c-compiler]          4.1.2-23   The GNU C compiler
ii  gcc-4.2 [c-compiler]          4.2.4-4    The GNU C compiler
ii  gcc-4.3 [c-compiler]          4.3.2-1    The GNU C compiler

Versions of packages dpkg-dev suggests:
ii  debian-keyring                2008.07.22 GnuPG (and obsolete PGP) keys of D
ii  gnupg                         1.4.9-3    GNU privacy guard - a free PGP rep

-- no debconf information
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
parsechangelog/debian: warning:     debian/changelog(l2): found trailer where expected start of change data
LINE:  -- a <>  Tue, 30 Dec 2008 17:34:02 -0800
dpkg-buildpackage: source package empty
dpkg-buildpackage: source version 1
dpkg-buildpackage: source changed by a <>
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
rm -rf debian/empty
 dpkg-source -b empty
parsechangelog/debian: warning: empty/debian/changelog(l2): found trailer where expected start of change data
LINE:  -- a <>  Tue, 30 Dec 2008 17:34:02 -0800
dpkg-source: info: using source format `1.0'
dpkg-source: warning: source directory 'empty' is not <sourcepackage>-<upstreamversion> 'empty-1'
dpkg-source: info: building empty in empty_1.tar.gz
dpkg-source: info: building empty in empty_1.dsc
dpkg-source: warning: missing information for output field Architecture
dpkg-source: warning: missing information for output field Standards-Version
 debian/rules build
make: Nothing to be done for `build'.
 fakeroot debian/rules binary
install -d debian/empty debian/empty/DEBIAN
dpkg-gencontrol -pempty -Pdebian/empty
parsechangelog/debian: warning:     debian/changelog(l2): found trailer where expected start of change data
LINE:  -- a <>  Tue, 30 Dec 2008 17:34:02 -0800
dpkg-gencontrol: warning: missing information for output field Description
dpkg-gencontrol: warning: missing information for output field Architecture
Use of uninitialized value in sprintf at /usr/bin/dpkg-gencontrol line 338.
dpkg --build debian/empty ..
warning, in file `debian/empty/DEBIAN/control' near line 5 package `empty':
 missing description
warning, in file `debian/empty/DEBIAN/control' near line 5 package `empty':
 missing architecture
dpkg-deb: building package `empty' in `../empty_1.deb'.
dpkg-deb: ignoring 2 warnings about the control file(s)
 signfile empty_1.dsc
gpg: skipped "a <>": secret key not available
gpg: [stdin]: clearsign failed: secret key not available

 dpkg-genchanges  >../empty_1_i386.changes
parsechangelog/debian: warning:     debian/changelog(l2): found trailer where expected start of change data
LINE:  -- a <>  Tue, 30 Dec 2008 17:34:02 -0800
parsechangelog/debian: warning:     debian/changelog(l2): found trailer where expected start of change data
LINE:  -- a <>  Tue, 30 Dec 2008 17:34:02 -0800
dpkg-genchanges: warning: duplicate files list entry for file empty_1_.deb (line 2)
dpkg-genchanges: warning: duplicate files list entry for file empty_1_.deb (line 3)
Use of uninitialized value $b in string eq at /usr/share/perl5/Dpkg/Arch.pm line 295.
Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/Dpkg/Arch.pm line 244.
Use of uninitialized value $arch in hash element at /usr/share/perl5/Dpkg/Arch.pm line 251.
Use of uninitialized value $a in split at /usr/bin/dpkg-genchanges line 292.
dpkg-genchanges: warning: missing Section for source files
dpkg-genchanges: warning: missing Priority for source files
dpkg-genchanges: including full source code in upload
dpkg-genchanges: failure: cannot fstat file ../empty_1_.deb: No such file or directory
dpkg-buildpackage: failure: dpkg-genchanges gave error exit status 2

Attachment: empty.tar.gz
Description: GNU Zip compressed data

Reply via email to