lintian: r536 - in trunk: checks debian testset testset/relations/debian
Author: djpig
Date: 2006-01-05 09:17:59 +0100 (Thu, 05 Jan 2006)
New Revision: 536
Modified:
trunk/checks/common_data.pm
trunk/checks/fields
trunk/checks/fields.desc
trunk/debian/changelog
trunk/testset/relations/debian/control
trunk/testset/tags.relations
Log:
* checks/common_data.pm:
+ [FL] Add xlibs-dev and debmake to %known_obsolete_packages
* checks/fields:
+ [FL] Also check for build-dependencies on obsolete packages not
only dependencies (Closes: #234531)
Modified: trunk/checks/common_data.pm
===================================================================
--- trunk/checks/common_data.pm 2006-01-04 15:20:24 UTC (rev 535)
+++ trunk/checks/common_data.pm 2006-01-05 08:17:59 UTC (rev 536)
@@ -70,7 +70,7 @@
%known_obsolete_packages = map { $_ => 1 }
('libstdc++2.8', 'ncurses3.4', 'slang0.99.38', 'newt0.25', 'mesag2',
'libjpegg6a', 'gmp2', 'libgtop0', 'libghttp0', 'libpgsql', 'tk4.2',
- 'tcl7.6', 'libpng0g', 'xbase');
+ 'tcl7.6', 'libpng0g', 'xbase', 'xlibs-dev', 'debmake', 'gcc-2.95' );
# Used only (at least lintian 1.23.1) for giving a warning about a
# virtual-only dependency
@@ -102,6 +102,7 @@
%known_libstdcs = map { $_ => 1 }
('libstdc++2.9-glibc2.1', 'libstdc++2.10', 'libstdc++2.10-glibc2.2',
'libstdc++3', 'libstdc++3.0', 'libstdc++4', 'libstdc++5',
+ 'libstdc++6', 'lib64stdc++6',
);
%known_tcls = map { $_ => 1 }
Modified: trunk/checks/fields
===================================================================
--- trunk/checks/fields 2006-01-04 15:20:24 UTC (rev 535)
+++ trunk/checks/fields 2006-01-05 08:17:59 UTC (rev 536)
@@ -495,6 +495,8 @@
tag "build-depends-on-essential-package-without-using-version", "$field: $part_d_orig"
if ($d_pkg ne "coreutils" && $known_essential{$d_pkg} && ! $d_version->[0]);
+ tag "build-depends-on-obsolete-package", "$field: $part_d_orig"
+ if ($known_obsolete_packages{$d_pkg} && &$is_dep_field($field));
tag "bad-relation", "$field: $part_d_orig"
if $rest;
Modified: trunk/checks/fields.desc
===================================================================
--- trunk/checks/fields.desc 2006-01-04 15:20:24 UTC (rev 535)
+++ trunk/checks/fields.desc 2006-01-05 08:17:59 UTC (rev 536)
@@ -350,6 +350,10 @@
Type: error
Info: The package depends on a package that has been superseded.
+Tag: build-depends-on-obsolete-package
+Type: error
+Info: The package build-depends on a package that has been superseded.
+
Tag: depends-on-essential-package-without-using-version
Type: error
Ref: policy 3.5
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2006-01-04 15:20:24 UTC (rev 535)
+++ trunk/debian/changelog 2006-01-05 08:17:59 UTC (rev 536)
@@ -5,6 +5,8 @@
* debian/changelog:
+ [FL] Fix wrapping of last changelog entry (Closes: #344899)
+ * checks/common_data.pm:
+ + [FL] Add xlibs-dev and debmake to %known_obsolete_packages
* checks/debhelper:
+ [FL] Also check for debhelper build-dependency in debhelper-using
cdbs based packages
@@ -15,6 +17,8 @@
+ [FL] Better check for false postives of build-depends-without-arch-dep.
Should fix false positives for cdbs, dbs, dpatch and yada. Based on
a patch by Russ Allbery (Closes: #344609, #321135, #339750)
+ + [FL] Also check for build-dependencies on obsolete packages not
+ only dependencies (Closes: #234531)
* checks/fields.desc:
+ [JvW] Fix typo in description
* checks/init.d:
Modified: trunk/testset/relations/debian/control
===================================================================
--- trunk/testset/relations/debian/control 2006-01-04 15:20:24 UTC (rev 535)
+++ trunk/testset/relations/debian/control 2006-01-05 08:17:59 UTC (rev 536)
@@ -2,8 +2,8 @@
Section: misc
Priority: optional
Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (>> 2) bar baz bat
-Build-Depends-Indep: make, bash
-Build-Conflicts: foo [amd64 i386], bar [alpha test]
+Build-Depends-Indep: make, bash, debmake
+Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev
Maintainer: Debian QA Group <packages@qa.debian.org>
Standards-Version: 3.1.1
Origin: Debian
Modified: trunk/testset/tags.relations
===================================================================
--- trunk/testset/tags.relations 2006-01-04 15:20:24 UTC (rev 535)
+++ trunk/testset/tags.relations 2006-01-05 08:17:59 UTC (rev 536)
@@ -1,6 +1,7 @@
E: relations source: bad-relation build-depends: foo (>> 2) bar baz bat
E: relations source: build-depends-on-essential-package-without-using-version build-depends-indep: bash
E: relations source: build-depends-on-essential-package-without-using-version build-depends: findutils
+E: relations source: build-depends-on-obsolete-package build-depends-indep: debmake
E: relations source: debian-control-with-duplicate-fields provides: 31, 32
E: relations source: depends-on-build-essential-package-without-using-version libc6-dev [build-depends: libc6-dev]
E: relations source: depends-on-build-essential-package-without-using-version make [build-depends-indep: make]
Reply to: