[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#878515: marked as done (lintian: Use of uninitialized value $parts[0] in string eq at …/checks/fields.pm line 512. / Use of uninitialized value $parts[-1] in string ne at …/checks/fields.pm lines 521 and 537.)



Your message dated Fri, 27 Oct 2017 19:04:14 +0000
with message-id <E1e89vS-0006PL-RI@fasolo.debian.org>
and subject line Bug#878515: fixed in lintian 2.5.56
has caused the Debian Bug report #878515,
regarding lintian: Use of uninitialized value $parts[0] in string eq at …/checks/fields.pm line 512. / Use of uninitialized value $parts[-1] in string ne at …/checks/fields.pm lines 521 and 537.
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 owner@bugs.debian.org
immediately.)


-- 
878515: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878515
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lintian
Version: 2.5.55
Severity: normal
Control: found -1 2.5.30+deb8u4

More less by accident (via gdebi) I checked a propietary .deb with
lintian on the jessie-running laptop of a family member. And lintian
threw these Perl warnings:

On Jessie (2.5.30+deb8u4):

  Use of uninitialized value $parts[0] in string eq at /usr/share/lintian/checks/fields.pm line 541.
  Use of uninitialized value $parts[-1] in string ne at /usr/share/lintian/checks/fields.pm line 550.

And in the end gdebi told me: "Lintian finished with exit status 1f"

On Sid (2.5.55) I was still able to reproduce at least very similar
Perl warnings:

  Use of uninitialized value $parts[0] in string eq at /usr/share/lintian/checks/fields.pm line 512.
  Use of uninitialized value $parts[-1] in string ne at /usr/share/lintian/checks/fields.pm line 521.
  Use of uninitialized value $parts[-1] in string eq at /usr/share/lintian/checks/fields.pm line 537.

Here, lintian exited with return code 1.

I'm quite sure I can't share the .deb (as I suspect that it contains
cryptographic keys), but I'll try to figure out the exact reason for the
warnings and find a patch. (I.e. this bug report is primarily to
document the findings as of now.)

But the .deb is definitely a really bad example of how not to package
stuff. Summary of emitted tag severities:

   1 P:
   8 I:
  19 E:
  31 W:

Full list with stripped package and file names and Perl warnings in
surrounding context (lintian 2.5.55):

E: <packagename>: arch-independent-package-contains-binary-or-object usr/bin/<bin>
I: <packagename>: spelling-error-in-binary usr/bin/<bin> occured occurred
I: <packagename>: spelling-error-in-binary usr/bin/<bin> specifiy specify
I: <packagename>: spelling-error-in-binary usr/bin/<bin> TRANSFERED TRANSFERRED
I: <packagename>: spelling-error-in-binary usr/bin/<bin> perfom perform
E: <packagename>: binary-or-shlib-defines-rpath usr/bin/<bin> /usr/local/lib/<only-part-of-the-package-name>
E: <packagename>: embedded-library usr/bin/<bin>: curl
E: <packagename>: arch-independent-package-contains-binary-or-object usr/lib/<only-part-of-the-package-name>/libavcodec.so.52
I: <packagename>: spelling-error-in-binary usr/lib/<only-part-of-the-package-name>/libavcodec.so.52 precission precision
I: <packagename>: spelling-error-in-binary usr/lib/<only-part-of-the-package-name>/libavcodec.so.52 inofficial unofficial
I: <packagename>: spelling-error-in-binary usr/lib/<only-part-of-the-package-name>/libavcodec.so.52 convertion conversion
E: <packagename>: embedded-library usr/lib/<only-part-of-the-package-name>/libavcodec.so.52: libavcodec
E: <packagename>: embedded-library usr/lib/<only-part-of-the-package-name>/libavcodec.so.52: libavutil
E: <packagename>: arch-independent-package-contains-binary-or-object usr/lib/<only-part-of-the-package-name>/libavformat.so.52
E: <packagename>: arch-independent-package-contains-binary-or-object usr/lib/<only-part-of-the-package-name>/libavutil.so.49
W: <packagename>: missing-depends-line
P: <packagename>: no-upstream-changelog
E: <packagename>: debian-changelog-file-missing
E: <packagename>: no-copyright-file
E: <packagename>: description-too-short <bin>
E: <packagename>: extended-description-is-empty
Use of uninitialized value $parts[0] in string eq at /usr/share/lintian/checks/fields.pm line 512.
Use of uninitialized value $parts[-1] in string ne at /usr/share/lintian/checks/fields.pm line 521.
W: <packagename>: unknown-section
Use of uninitialized value $parts[-1] in string eq at /usr/share/lintian/checks/fields.pm line 537.
W: <packagename>: non-standard-dir-perm usr/ 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/bin/ 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/bin/<bin> 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/lib/ 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/lib/<only-part-of-the-package-name>/ 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/lib/<only-part-of-the-package-name>/libavcodec.so 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/lib/<only-part-of-the-package-name>/libavcodec.so.52 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/lib/<only-part-of-the-package-name>/libavformat.so 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/lib/<only-part-of-the-package-name>/libavformat.so.52 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/lib/<only-part-of-the-package-name>/libavutil.so 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/lib/<only-part-of-the-package-name>/libavutil.so.49 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/share/ 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/share/doc/ 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/share/doc/<only-part-of-the-package-name>/ 0777 != 0755
E: <packagename>: executable-in-usr-share-doc usr/share/doc/<only-part-of-the-package-name>/changelog.Debian.gz 0777
W: <packagename>: non-standard-executable-perm usr/share/doc/<only-part-of-the-package-name>/changelog.Debian.gz 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/share/locale/ 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/share/locale/de/ 0777 != 0755
W: <packagename>: non-standard-dir-perm usr/share/locale/de/LC_MESSAGES/ 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/share/locale/de/LC_MESSAGES/<lib>.mo 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/share/locale/<locale-ish>_de.qm 0777 != 0755
W: <packagename>: non-standard-executable-perm usr/share/locale/<locale-ish>_en.qm 0777 != 0755
W: <packagename>: binary-without-manpage usr/bin/<bin>
I: <packagename>: no-md5sums-control-file
W: <packagename>: executable-not-elf-or-script usr/lib/<only-part-of-the-package-name>/libavcodec.so
W: <packagename>: executable-not-elf-or-script usr/share/doc/<only-part-of-the-package-name>/changelog.Debian.gz
W: <packagename>: executable-not-elf-or-script usr/share/locale/<locale-ish>_de.qm
W: <packagename>: executable-not-elf-or-script usr/share/locale/de/LC_MESSAGES/<lib>.mo
W: <packagename>: executable-not-elf-or-script usr/share/locale/<locale-ish>_en.qm
W: <packagename>: executable-not-elf-or-script usr/lib/<only-part-of-the-package-name>/libavutil.so
W: <packagename>: executable-not-elf-or-script usr/lib/<only-part-of-the-package-name>/libavformat.so
E: <packagename>: shlib-with-non-pic-code usr/lib/<only-part-of-the-package-name>/libavcodec.so.52
E: <packagename>: shlib-with-executable-bit usr/lib/<only-part-of-the-package-name>/libavcodec.so.52 0777
E: <packagename>: shlib-with-non-pic-code usr/lib/<only-part-of-the-package-name>/libavformat.so.52
E: <packagename>: shlib-with-executable-bit usr/lib/<only-part-of-the-package-name>/libavformat.so.52 0777
E: <packagename>: shlib-with-non-pic-code usr/lib/<only-part-of-the-package-name>/libavutil.so.49
E: <packagename>: shlib-with-executable-bit usr/lib/<only-part-of-the-package-name>/libavutil.so.49 0777

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-rc7-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages lintian depends on:
ii  binutils                          2.29.1-4
ii  bzip2                             1.0.6-8.1
ii  diffstat                          1.61-1+b1
ii  dpkg                              1.18.24
ii  file                              1:5.32-1
ii  gettext                           0.19.8.1-4
ii  intltool-debian                   0.35.0+20060710.4
ii  libapt-pkg-perl                   0.1.33
ii  libarchive-zip-perl               1.59-1
ii  libclass-accessor-perl            0.34-1
ii  libclone-perl                     0.38-2+b2
ii  libdigest-sha-perl                5.98-1
ii  libdpkg-perl                      1.18.24
ii  libemail-valid-perl               1.202-1
ii  libfile-basedir-perl              0.07-1
ii  libipc-run-perl                   0.96-1
ii  liblist-moreutils-perl            0.416-1+b3
ii  libparse-debianchangelog-perl     1.2.0-12
ii  libperl5.26 [libdigest-sha-perl]  5.26.0-8
ii  libtext-levenshtein-perl          0.13-1
ii  libtimedate-perl                  2.3000-2
ii  liburi-perl                       1.72-2
ii  libxml-simple-perl                2.24-1
ii  libyaml-libyaml-perl              0.63-2+b2
ii  man-db                            2.7.6.1-2
ii  patchutils                        0.3.4-2
ii  perl                              5.26.0-8
ii  t1utils                           1.40-2
ii  xz-utils                          5.2.2-1.3

Versions of packages lintian recommends:
ii  libperlio-gzip-perl  0.19-1+b4

Versions of packages lintian suggests:
ii  binutils-multiarch     2.29.1-4
ii  dpkg-dev               1.18.24
ii  libhtml-parser-perl    3.72-3+b2
ii  libtext-template-perl  1.47-1

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: lintian
Source-Version: 2.5.56

We believe that the bug you reported is fixed in the latest version of
lintian, 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 878515@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lamb <lamby@debian.org> (supplier of updated lintian 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 27 Oct 2017 18:29:35 +0000
Source: lintian
Binary: lintian
Architecture: source all
Version: 2.5.56
Distribution: unstable
Urgency: medium
Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
Changed-By: Chris Lamb <lamby@debian.org>
Description:
 lintian    - Debian package checker
Closes: 744388 748405 781372 793554 851126 871711 873612 878446 878449 878457 878515 878517 878518 878521 878522 878798 878806 879152 879206 879661 879860 879861 879862 879935 879953
Changes:
 lintian (2.5.56) unstable; urgency=medium
 .
   * Summary of tag changes:
     + Added:
       - appstream-metadata-invalid
       - debhelper-tools-from-autotools-dev-are-deprecated
       - debian-control-has-empty-field
       - debian-rules-sets-dpkg-architecture-variable
       - empty-section-field
       - file-contains-trailing-whitespace
       - init.d-script-contains-skeleton-template-content
       - latest-changelog-entry-without-new-date
 .
   * checks/appstream-metadata.{pm,desc}:
     + [CL] Don't error out when AppStream metadata is invalid and emit new
       appstream-metadata-invalid tag instead.  (Closes: #879661)
   * checks/binaries.desc:
     + [CL] Apply patch from Adrian Bunk to mention the lack of the "-g"
       flag as a common cause for the debug-file-with-no-debug-symbols tag.
       (Closes: #878806)
     + [CL] Apply patch from Guillem Jover to strongly discourage the use
       of the getconf(1) interface for LFS support.  (Closes: #879935)
   * checks/changes-file.desc:
     + [CL] Add a note to orig-tarball-missing-upstream-signature regarding
       support in pristine-tar and git-buildpackage.
   * checks/conffiles.pm, checks/{debconf,files,scripts}.desc:
     + [CL] Apply patch from Ville Skyttä <ville.skytta@iki.fi> to fix a
       number of spelling mistakes.  (Closes: #878446)
     + [CL] Apply patch from Ville Skyttä <ville.skytta@iki.fi> to update
       a number of manual references.  (Closes: #878517)
   * checks/control-file.{pm,desc}:
     + [CL] Warn about empty fields in debian/control.  (Closes: #744388)
   * checks/cruft.{pm,desc}:
     + [CL] Warn about certain files under debian/* that contain trailing
       whitespace characters.  (Closes: #748405)
   * checks/debconf.desc:
     + [CL] Apply patch from Ville Skyttä <ville.skytta@iki.fi> to update
       the debconf-spec refs.  (Closes: #878449)
   * checks/debhelper.{desc,pm}:
     + [NT] Add a check for packages using the debhelper tooling from the
       autotools-dev package.  These have been replaced by the changes
       inside debhelper itself.
     + [NT] Avoid useless-autoreconf-build-depends for autotools-dev when
       the autotools-dev tooling is used in debian/rules.
       (Closes: #871711)
   * checks/fields.pm:
     + [CL] Apply patch from Nicolas Boulenguez to accept and recommend the
       new vcs-mtn mtn:// uri format.  (Closes: #878798)
     + [CL] Emit new empty-section-field tag instead of uninitialized value
       warnings on an empty "Section:" field.  (Closes: #878515)
   * checks/files.pm:
     + [CL] Lower the severity of package-installs-java-bytecode from
       "error" to "warning".  (Closes: #879862)
     + [CL] Do not trigger package-installs-java-bytecode if the path
       contains "WEB-INF", "demo", "doc" etc.  (Closes: #879860)
     + [CL] Verify files triggering package-installs-java-bytecode files
       really are Java class files.  (Closes: #879861)
   * checks/init.d.pm:
     + [CL] Check for files that use content from the /etc/init.d/skeleton
       template. Thanks to Christoph Biedl for the idea.  (Closes: #879152)
   * checks/md5sums.pm:
     + [CL] Allow empty md5sums files.  (Closes: #781372)
   * checks/rules.{pm,desc}:
     + [CL] Warn on packages unnecessararily setting dpkg-architecture(1)
       variables.  (Closes: #793554)
   * checks/scripts.desc:
     + [CL] Check the "Recommends" field as well when testing scripts for
       script-needs-depends-on-sensible-utils.  (Closes: #879953)
   * checks/source-changelog.{desc.pm}:
     + [CL] Move latest-debian-changelog-entry-without-new-date tag into a
       new check of type "source".  (Closes: #873612)
   * checks/watch-file.pm:
     + [CL] Include the offending URI in debian-watch-uses-insecure-uri
       output, not the line number.
     + [CL] Ignore the magic http://sf.net/ redirector URI for the
       debian-watch-uses-insecure-uri tag.  (Closes: #879206)
 .
   * data/common/source-fields:
     + [NT] Add "Rules-Requires-Root".
   * data/fields/essential:
     + [CL] Apply patch from Helmut Grohne <helmut@subdivi.de> to treat
       e2fsprogs as non-essential.  (Closes: #878518)
   * data/fields/perl-provides:
     + [CL] Update for Perl 5.026001.
   * data/scripts/interpreters:
     + [CL] Add cwl-runner to the list of interpreters.  (Closes: #851126)
   * data/spelling/corrections:
     + [CL] Revert addition of "none were" -> "none was" multiword spelling
       correction as it is "acceptable beyond serious criticism".
       (Closes: #878457)
 .
   * debian/control:
     + [NT] Set R³ to "no".  Lintian builds fine without root and
       Build-Depends on fakeroot for the tests that still require
       fakeroot.
 .
   * doc/lintian.xml, checks/{fields,files,menu-format}.desc, etc.:
     + [CL] Apply patch from Ville Skyttä <ville.skytta@iki.fi> to update
       a large number of errors in links.  (Closes: #878521)
 .
   * private/refresh-manual-refs:
     + [CL] Apply patch from Ville Skyttä <ville.skytta@iki.fi> to update
       the Debconf reference mapping. Many thanks!  (Closes: #878449)
     + [CL] Apply a patch series from Ville Skyttä <ville.skytta@iki.fi>
       to a number of issues in the Menu, Perl, Python and Debian
       Policy parsing.
 .
   * t/scripts/pod-synopsis.t:
     + [CL] Apply patch from Ville Skyttä <ville.skytta@iki.fi> to skip all
       POD synopsis tests if Test::Pod is not available.  (Closes: #878522)
   * t/tests/debconf-config-*, t/tests/legacy-maintainer-scripts:
     + [CL] Split out checks for debconf-config-not-executable into a
       separate test protected by a Test-Requires now that dpkg >= 1.19.0
       will bail out on that condition.
Checksums-Sha1:
 9509c6c2beae026c7165d2195b5d013595bb19b3 2898 lintian_2.5.56.dsc
 40d577cc22aa9ebdf56ff4336a5d4703a047e219 1244428 lintian_2.5.56.tar.xz
 947bb2fe4fe0566ba6d6d13ddbafa7ae9839b177 1069044 lintian_2.5.56_all.deb
 45ae22b1184857202abfaf809e76716ff26ca8c9 16230 lintian_2.5.56_amd64.buildinfo
Checksums-Sha256:
 6a44332e3bc5eb76b895ae998d4fd3fe41148367565fb42da778c98a11bf63f0 2898 lintian_2.5.56.dsc
 0f2e78eabe121083a92c16089bc6dc603328c501a0ffa4c98c001eec7fc137dc 1244428 lintian_2.5.56.tar.xz
 89ab4f2485f1452de7e4253665bc3935b003c6115242463ec3be659cd267fc5b 1069044 lintian_2.5.56_all.deb
 e2a30dd54ad9cc770765998bb8019f70ad9d1ecd051f7b85a35d1198c6fb844a 16230 lintian_2.5.56_amd64.buildinfo
Files:
 74034295183ef0fbe47f745c414e18fa 2898 devel optional lintian_2.5.56.dsc
 528861471e0a5dc46c0211330b66aa70 1244428 devel optional lintian_2.5.56.tar.xz
 9eceea481400c4cf3543169cb3c44d39 1069044 devel optional lintian_2.5.56_all.deb
 b76210bfb9f5d1f8023be00bb255a6a7 16230 devel optional lintian_2.5.56_amd64.buildinfo

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

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAlnzgWoACgkQHpU+J9Qx
HlivlxAAivIUyPBWEiE2PagDCy9aI/xrgCcpOVo5ZWWvXzJ4uBo5VoxKCHUkG2b7
IiqRZmykTcO8Q0/tKsJNXQYAh8ybSfluaTaWWfQIA/gZ25OmK5v1/8OlMBLmhvPN
FkTRbx56Gvo13xhqrJirGAP9WyEPDAEIWxewcdkCl1FY/kdz/8ToDTYPMgFwZ8Bp
Q5F/C17e97RxvyueO5dhhLdfxecoKEAonA01DXAIKPfPXu0h4VeonSc3OYfymHbq
PxWnABYanRaf36BJkDI3gWGFRTbjONiV8B/bKKVaTpagUBS11eEsrnT6VcudcxET
lirLx/5RDIqt8eB+flWmpxVljIKtIH/LR8Ko2QaFcBo+FyHECZWjXjvfLFOeHqXL
gcxIT1++6oNuMW9H6EewSY5eFlEgAOE9nwcECd12aOJ7WNN2/5/+xAhJfCKYQsez
LTxll+YGWSNZK0H/OhnK7Y6uKpwx1yJsLvWE3fpQPdjmeTBkIKhXjRUMh3MNbAhM
2BBJp5B2PFJg5WOSVCTXfrpb3oolPVakj4rGQ88HSN2tJ8ElKVEJnUt2GWiXUYwN
w/APrbLyyeVeu3xzBpr6qwvpVEqnYYpPfDfkywsRdYNqVHzOLPV4QsEaCtlVQUPm
kYTwUt4zIt8/NBq3nalFnjHJ0LfUtr7zOeuS7mkhtPseaXLOIZ8=
=OZf8
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: