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

Bug#498897: marked as done (lintian: check for packages superseded by the perl core)



Your message dated Sun, 21 Sep 2008 21:02:18 +0000
with message-id <E1KhW4Q-0001ic-Ja@ries.debian.org>
and subject line Bug#498897: fixed in lintian 2.0.0~rc2
has caused the Debian Bug report #498897,
regarding lintian: check for packages superseded by the perl core
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.)


-- 
498897: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498897
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lintian
Severity: wishlist
Tags: patch

Now that we have the data about packages provided by the perl core,
here's a check for unnecessary separate packages.

The paragraph about alternative dependencies in the description is
a bit redundant, but I thought I'd err on the verbose side.

This currently triggers on at least libmodule-build-perl (#480727)
and libparams-check-perl (#498459).
-- 
Niko Tyni   ntyni@debian.org
>From f754142556f1135a026c7aee95f50dfedf47dee4 Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Sun, 14 Sep 2008 12:51:56 +0300
Subject: [PATCH] Check for packages also provided by the perl core with at least the same version.

---
 checks/fields      |    6 ++++++
 checks/fields.desc |   21 +++++++++++++++++++++
 2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/checks/fields b/checks/fields
index 07895be..13161ff 100644
--- a/checks/fields
+++ b/checks/fields
@@ -187,6 +187,12 @@ if (not defined $info->field('version')) {
 		if ($version =~ /\+b\d+$/ && $type eq "source") {
 			tag "binary-nmu-debian-revision-in-source", "$version";
 		}
+		my $name = $info->field('package');
+		if ($name && $perl_core_provides->known($name) &&
+		    perl_core_has_version($name, '>=', $upstream)) {
+			my $core_version = $perl_core_provides->value($name);
+			tag "package-superseded-by-perl", "with $core_version"
+		}
 	} else {
 		tag "bad-version-number", "$version";
 	}
diff --git a/checks/fields.desc b/checks/fields.desc
index 54b18e5..f62c5a1 100644
--- a/checks/fields.desc
+++ b/checks/fields.desc
@@ -1014,3 +1014,24 @@ Info: This package declares an unnecessary versioned dependency
  Example: perl-modules (&gt;= 5.10.0) | libmodule-build-perl (&gt;= 0.26)
 Ref: policy 7.5
 
+Tag: package-superseded-by-perl
+Type: warning
+Severity: normal
+Certainty: certain
+Info: This package is also provided by one of the Perl core packages
+ (perl, perl-base, perl-modules), and the core version is at least
+ as new as this one.
+ .
+ The package should either be upgraded to a newer upstream version
+ or removed from the archive as unnecessary. In the removal case, any
+ versioned dependencies on this package must first be changed to include
+ the Perl core package (because versioned dependencies are not satisfied
+ by provided packages).
+ .
+ The recommended way to express the dependency without needless
+ complications on backporting packages is to use alternative dependencies.
+ The Perl core package should be the preferred alternative and the
+ versioned dependency a secondary one.
+ .
+ Example: perl-modules (&gt;= 5.10.0) | libmodule-build-perl (&gt;= 0.26)
+Ref: policy 7.5
-- 
1.5.6.5


--- End Message ---
--- Begin Message ---
Source: lintian
Source-Version: 2.0.0~rc2

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:

lintian_2.0.0~rc2.dsc
  to pool/main/l/lintian/lintian_2.0.0~rc2.dsc
lintian_2.0.0~rc2.tar.gz
  to pool/main/l/lintian/lintian_2.0.0~rc2.tar.gz
lintian_2.0.0~rc2_all.deb
  to pool/main/l/lintian/lintian_2.0.0~rc2_all.deb



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 498897@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Frank Lichtenheld <djpig@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@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 21 Sep 2008 15:56:51 +0200
Source: lintian
Binary: lintian
Architecture: source all
Version: 2.0.0~rc2
Distribution: experimental
Urgency: low
Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
Changed-By: Frank Lichtenheld <djpig@debian.org>
Description: 
 lintian    - Debian package checker
Closes: 495431 497247 498096 498897 498994
Changes: 
 lintian (2.0.0~rc2) experimental; urgency=low
 .
   * Summary of tag changes:
     + Added:
       - package-superseded-by-perl
 .
   * checks/copyright-file:
     + [FL] Also detect v1.1 of CeCILL license, not only v2.0.
       (Closes: #498994)
   * checks/debhelper:
     + [FL] Use new Lintian::Collect::Source->binaries method.
   * checks/fields{,.desc}:
     + [FL] Warn about Perl module packages superseded by Perl
       core.  Patch by Niko Tyni.  (Closes: #498897)
   * checks/rules:
     + [FL] Do not issue desktop-file-but-no-dh_desktop-call if the
       package uses dh.  (Closes: #497247)
   * checks/scripts:
     + [FL] Accept the ocaml virtual packages as providing ocamlrun.
       Based on a patch by Stephane Glondu.  (Closes: #495431)
   * checks/standards-version:
     + [FL] Use new Lintian::Collect::Source->binaries method to
       fix udeb detection.  Thanks to Raphael Geissert.
       (Closes: #498096)
 .
   * frontend/lintian:
     + [FL] Add support for ranges to --display-level.
 .
   * lib/Lintian/Collect/Source.pm:
     + [FL] New binaries method that returns a hash with binary package
       names and types.
Checksums-Sha1: 
 6b2003013aeddf73937a43168663ce1947defb04 1135 lintian_2.0.0~rc2.dsc
 2b8f531b8bfabcd4417ad336ee32800b45efa064 518700 lintian_2.0.0~rc2.tar.gz
 4cbfa883677bf8c944d85cecae0b068352b007ca 387250 lintian_2.0.0~rc2_all.deb
Checksums-Sha256: 
 d484304921b920540a1e7d49a5665a328b4a5484575033d552d444e25d96ed68 1135 lintian_2.0.0~rc2.dsc
 ea1c718351644ac737952e8c93a628a714ca10db44b8103521d54a384857f610 518700 lintian_2.0.0~rc2.tar.gz
 fb3cbde995fd8d2cf03afdec93dffecf390660b794bb571422fd4691d2c4d21d 387250 lintian_2.0.0~rc2_all.deb
Files: 
 f2c4f44d848c10da0044a903c1a0583e 1135 devel optional lintian_2.0.0~rc2.dsc
 d16ff1b2d858a845067d101fef8ee3c9 518700 devel optional lintian_2.0.0~rc2.tar.gz
 22e2ffe1f7b8da5c7a08fde8095bf35a 387250 devel optional lintian_2.0.0~rc2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjWs7YACgkQQbn06FtxPfAhwQCgk76V6LB71EMHh4VCovSMW2OW
hfMAnAntg1x9YPESi2PfvWYjPiJfq9mg
=6EPH
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: