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

Bug#898715: marked as done (lintian: fails to parse extended timestamps in tarballs)



Your message dated Sat, 19 May 2018 20:40:56 +0000
with message-id <E1fK8eu-000Aeu-BH@fasolo.debian.org>
and subject line Bug#898715: fixed in lintian 2.5.87
has caused the Debian Bug report #898715,
regarding lintian: fails to parse extended timestamps in tarballs
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.)


-- 
898715: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898715
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lintian
Version: 2.5.85
Severity: normal
Tags: patch

Dear Maintainer,

Now that lintian correctly instructs tar to output full timestamps
(22e197e4), it fails to parse timestamps in tarballs which contain
high-resolution times, such as xmp_4.1.0.orig.tar.gz
(http://http.debian.net/debian/pool/main/x/xmp/xmp_4.1.0.orig.tar.gz):

cannot parse tar output from src-orig-index: -rw-rw-r-- claudio/claudio 926 2014-11-25 21:47:29.12396808  INSTALL at /usr/share/lintian/checks/cruft.pm line 450.
internal error: cannot run cruft check on package source:xmp/4.1.0-1
warning: skipping check of source:xmp/4.1.0-1

The attached patch fixes this.

Regards,

Stephen


-- System Information:
Debian Release: 9.4
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable'), (100, 'unstable-debug'), (100, 'testing-debug'), (100, 'unstable'), (100, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-6-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lintian depends on:
ii  binutils                          2.28-5
ii  bzip2                             1.0.6-8.1
ii  diffstat                          1.61-1+b1
ii  dpkg                              1.18.24
ii  file                              1:5.30-1+deb9u1
ii  gettext                           0.19.8.1-2
ii  intltool-debian                   0.35.0+20060710.4
ii  libapt-pkg-perl                   0.1.32
ii  libarchive-zip-perl               1.59-1
ii  libclass-accessor-perl            0.34-1
ii  libclone-perl                     0.38-2+b1
ii  libdigest-sha-perl                5.96-1+b1
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.94-1
ii  liblist-moreutils-perl            0.416-1+b1
ii  libparse-debianchangelog-perl     1.2.0-12
ii  libperl5.24 [libdigest-sha-perl]  5.24.1-3+deb9u3
ii  libtext-levenshtein-perl          0.13-1
ii  libtimedate-perl                  2.3000-2
ii  liburi-perl                       1.71-1
ii  libxml-simple-perl                2.22-1
ii  libyaml-libyaml-perl              0.63-2
ii  man-db                            2.7.6.1-2
ii  patchutils                        0.3.4-2
ii  perl                              5.24.1-3+deb9u3
ii  t1utils                           1.39-2
ii  xz-utils                          5.2.2-1.2+b1

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

Versions of packages lintian suggests:
pn  binutils-multiarch     <none>
ii  dpkg-dev               1.18.24
ii  libhtml-parser-perl    3.72-3
ii  libtext-template-perl  1.46-1

-- no debconf information
diff --git a/lib/Lintian/Collect/Package.pm b/lib/Lintian/Collect/Package.pm
index a39a54e7a..8feae7f3b 100644
--- a/lib/Lintian/Collect/Package.pm
+++ b/lib/Lintian/Collect/Package.pm
@@ -444,7 +444,7 @@ sub _fetch_index_data {
         # Note this cannot ever be 100% reliable as the filename might contain
         # "fake" dates.
         ($perm,$ownership,$size,$date,$time,$name)
-          = $line=~ /^(.{10}) (.*?) (\d+) ([-\d]{10}) ([:\d]{5,8}) (.*)$/;
+          = $line=~ /^(.{10}) (.*?) (\d+) ([-\d]{10}) ([:\d]{5,8}\.?\d*) (.*)$/;
         croak "cannot parse tar output from $index: $line"
           unless defined $perm;
         $ownership =~ s/\s+$//;

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

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 898715@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: Sat, 19 May 2018 19:30:19 +0000
Source: lintian
Binary: lintian
Architecture: source all
Version: 2.5.87
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: 897608 898377 898592 898708 898715 898799 899134
Changes:
 lintian (2.5.87) unstable; urgency=medium
 .
   * Summary of tag changes:
     + Added:
       - debian-pyversions-is-obsolete
       - debug-symbol-migration-possibly-complete
       - header-has-overly-generic-name
 .
   * checks/cruft.{desc,pm}:
     + [CL] Apply patch from Joseph Herlant to warn about use of obsolete
       debian/pyversion files.  Thanks!  (Closes: #898592)
   * checks/debhelper.pm:
     + [CL] Prevent false-positives with comments and newlines when checking
       debhelper-compat-file-contains-multiple-levels.  (Closes: #898799)
   * checks/fields.{desc,pm}:
     + [BR] Detect privacy breaches in Internet Explorer "<!--[if IE 8]>"
       conditional comments.
     + [CL] Rename python-generic-modules data file to
       generic-python-modules.
     + [CL] Warn about packages that install files under /usr/include with
       overly-generic filenames.  Thanks to Andreas Beckmann for the report.
       (Closes: #898377)
     + [CL] Apply patch from Ian Jackson to not detect
       https://browse.dgit.debian.org/example.git as a VCS deprecated in the
       Debian infrastucture.  (Closes: #898708)
   * checks/files.pm:
     + [BR] Add "umd" as a possible suffix for minified Javascript.
       (alongside "lite", "min", "pack", etc.)
   * checks/menu-format.{desc,pm}:
     + [CL] Apply patch from Ross Vandegrift to update specification URIs.
       (Closes: #899134)
   * checks/upstream-metadata.desc:
     + [CL] Correct a "non-file directory entry" grammatical error in the
       description of the upstream-metadata-is-not-a-file tag.
 .
   * data/files/js-libraries:
     + [BR] Detect uses of the libjs-normalize.css CSS "style reset" helper.
   * data/files/privacy-breaker-websites:
     + [BR] Detect uses of the "libjs-rx" API for asynchronous programming.
   * data/rules/rules-should-not-use:
     + [CL] Add a pedantic-level warning about possibly complete automatic
       debug symbol migrations.  Thanks to Graham Inggs for the report.
       (Closes: #897608)
   * data/spelling/corrections:
     + [PW] Add a number of corrections.
 .
   * lib/Lintian/Collect/Package.pm:
     + [CL] Support parsing tar(1) archives with high-resolution timestamps
       (eg. "21:47:29.12396808").  Based on a patch by Stephen Kitt; thanks!
       (Closes: #898715)
Checksums-Sha1:
 98c95f0fb7a5629ebb564b7cc0d6c40c6bc60534 3511 lintian_2.5.87.dsc
 1279f179feb1677ae94ba5d0163482b3e3bdb088 1561148 lintian_2.5.87.tar.xz
 f18688ae6ddb658179853f50a208f4ffbadfc614 1121564 lintian_2.5.87_all.deb
 ecfc13885365e4278e59ac1d7fbdd9475796994b 16047 lintian_2.5.87_amd64.buildinfo
Checksums-Sha256:
 952cfe96edd84b88cbbedda70b5bdb8cf984aa05126727d26c7feb94c7bb4889 3511 lintian_2.5.87.dsc
 e4ebfd63d87eed1b655d3e6f4668142a42aefa02cbfdd19248483a892db29515 1561148 lintian_2.5.87.tar.xz
 e79c6b502d1eed223cbcbd7d6bf5b324f9473f0f98c4b98d0b7bcccf2804667a 1121564 lintian_2.5.87_all.deb
 7f7899f1f89402cd92ea13a1cc3ec40114f70f8e1c66d0a7b5b9ef63c5a1d0bb 16047 lintian_2.5.87_amd64.buildinfo
Files:
 95b99d1beced11587e8a6e08fa073c64 3511 devel optional lintian_2.5.87.dsc
 90256f02ee09e87f9d67c2b3ea2f1b39 1561148 devel optional lintian_2.5.87.tar.xz
 4d75e4128613f8d6182e463299b89c73 1121564 devel optional lintian_2.5.87_all.deb
 d5bbc7789413a064f6f5ba42fe9f2666 16047 devel optional lintian_2.5.87_amd64.buildinfo

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

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAlsAhkMACgkQHpU+J9Qx
HliKqg//aduzGkFdGLBJEHz92IBTBXoAfT9sIq75SulxnZZdzfKKVhv5sVLsKDxg
MafOe5rbMeudo4K1fq6i1yuiI6G4ANDlTxm6cHluoBO4WtuaM0DuHh3RW4NLwPXn
8SZLUxQq+5FkviAwfnY1Sjar6V2KpXd77iST3gau1Li9ItC+JBiB0WAdUDMOB1NB
S/HcTe0GJ3IAfPhAP4fb2agolRaVTXiqqg3N5tSDPZ/0Jw/KxwyMdsIdeVqQeAOJ
N2FGLpHpYiXC8q5xQGUHL/df1AjGAU34piNk8pY18Fgyv3eHjiDQ3K1qgw0HoTx2
l9W31keKzI6lvfTgFOdtw1WjHTbfWKPhaxRRBmoD7vZzhDhsYTm+elx4gnjkPmue
TrPSuc/3mLT/fcuTIS04xkTWPycdzoZcS+BZ7y6+DyPJpuMpGEq9Xp+sWepyhuHp
vNrBi8VSnJTm4VOP2uuivxWnanJHRtQD3Tba8m9YU2Q1BSWuwvzNl0ZglmGXuL0k
ePX9TLo+TAng+c/9q8C6D4oHeiRXA19y3guP8RvpsSFjK6z1AK6FqeJ0lryiC8kb
p7BazqKLbpFB9/8faTOs6KyqRNv9k1M4IkfJXb43Sj2YbKey5cp2er9iZToCLNJY
67nXiCjBR5VF48L+8XFS7H7UGwyHC95z2v32IDq1cPnb4qCIQYc=
=yQso
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: