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

lintian: r425 - in trunk: checks debian



Author: he
Date: 2005-06-27 11:10:02 +0200 (Mon, 27 Jun 2005)
New Revision: 425

Modified:
   trunk/checks/common_data.pm
   trunk/checks/fields
   trunk/checks/fields.desc
   trunk/debian/changelog
Log:
checks/fields:
 + [HE] Change unknown-architecture a bit: We don't complain about
   "known" non-standard archs (like amd64, ppc64, *bsd-i386) and only
   print out an info message for those. (Closes: #253405, #311471)



Modified: trunk/checks/common_data.pm
===================================================================
--- trunk/checks/common_data.pm	2005-06-26 12:07:21 UTC (rev 424)
+++ trunk/checks/common_data.pm	2005-06-27 09:10:02 UTC (rev 425)
@@ -7,15 +7,19 @@
 	   %known_obsolete_fields %known_essential %known_build_essential
 	   %known_obsolete_packages %known_virtual_packages
 	   %known_libstdcs %known_tcls %known_tclxs %known_tks %known_tkxs
-	   %known_libpngs
+	   %known_libpngs %non_standard_archs
           );
 
 # simple defines for commonly needed data
 
 %known_archs = map { $_ => 1 }
-    ('alpha', 'amd64', 'arm', 'hppa', 'hurd-i386', 'i386', 'ia64', 'mips',
-	 'mipsel', 'm68k', 'powerpc', 's390', 'sh', 'sparc', 'any', 'all');
+    ('alpha', 'arm', 'hppa', 'hurd-386', 'i386', 'ia64', 'mips', 'mipsel', 
+     'm68k', 'powerpc', 's390', 'sparc', 'any', 'all');
 
+%non_standard_archs = map { $_ => 1 }
+    ('amd64', 'ppc64', 'sh', 'kfreebsd-i386', 'knetbsd-i386');
+
+
 %known_sections = map { $_ => 1 }
     ('admin', 'base', 'comm', 'devel', 'doc', 'editors', 'electronics',
      'embedded', 'games', 'gnome', 'graphics', 'hamradio', 'interpreters',

Modified: trunk/checks/fields
===================================================================
--- trunk/checks/fields	2005-06-26 12:07:21 UTC (rev 424)
+++ trunk/checks/fields	2005-06-27 09:10:02 UTC (rev 425)
@@ -105,7 +105,9 @@
 	}
 
 	for my $arch (@archs) {
-		unless ($known_archs{$arch}) {
+		if ($non_standard_archs{$arch}) {
+			tag "non-standard-architecture", "";
+		} elsif (! $known_archs{$arch}) {
 			tag "unknown-architecture", "";
 		}
 	}

Modified: trunk/checks/fields.desc
===================================================================
--- trunk/checks/fields.desc	2005-06-26 12:07:21 UTC (rev 424)
+++ trunk/checks/fields.desc	2005-06-27 09:10:02 UTC (rev 425)
@@ -1,7 +1,7 @@
 Check-Script: fields
 Author: Marc 'HE' Brockschmidt <marc@marcbrockschmidt.de>
 Abbrev: fld
-Standards-Version: 3.6.1
+Standards-Version: 3.6.2
 Type: binary, udeb, source
 Unpack-Level: 1
 Needs-Info: debfiles
@@ -69,11 +69,19 @@
 Tag: unknown-architecture
 Type: warning
 Info: In addition to the special values `all' and `any', the architecture
- names alpha, amd64, arm, hppa, hurd-i386, i386, ia64, m68k, mips, mipsel,
- powerpc, s390, sh, and sparc are currently in use.  The special value
- `source' is only used in .changes files and does not make sense in a binary
- package or a .dsc file.
+ names alpha, arm, hppa, hurd-i386, i386, ia64, m68k, mips, mipsel, powerpc,
+ s390, and sparc are currently in use.  The special value `source' is only 
+ used in .changes files and does not make sense in a binary package or a 
+ .dsc file.
 
+Tag: non-standard-architecture
+Type: info
+Info: In addition to the special values `all', `any' and the names of the
+ architectures already in the archive (alpha, arm, hppa, hurd-386, i386, 
+ ia64, m68k, mips, mipsel, powerpc, s390, sparc), there are some 
+ architectures still waiting to be included in the archive. At the moment,
+ these are amd64, kfreebsd-i386, knetbsd-i386, ppc64 and sh. 
+
 Tag: too-many-architectures
 Type: error
 Info: A binary package should list exactly one architecture (the one it is

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2005-06-26 12:07:21 UTC (rev 424)
+++ trunk/debian/changelog	2005-06-27 09:10:02 UTC (rev 425)
@@ -2,6 +2,11 @@
 
   * The "Ah, it's LinuxTag and I still have free time!" release
 
+  * checks/fields:
+    + [HE] Change unknown-architecture a bit: We don't complain about
+      "known" non-standard archs (like amd64, ppc64, *bsd-i386) and only
+      print out an info message for those. (Closes: #253405, #311471)
+
   * checks/files:
     + [HE] Allow backupninja configuration files in /etc/backup.d/ to be 
       0600. (Closes: #307639)



Reply to: