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

[SCM] Debian package checker branch, master, updated. 2.4.2-11-gf4f7153



The following commit has been merged in the master branch:
commit ef383951a67a5d19030881b212c71fdfd4d5b1b1
Author: Raphael Geissert <atomo64@gmail.com>
Date:   Tue Jul 13 13:42:32 2010 -0500

    Recognise powerpcspe and sh4 ELF objects
    
    file(1)'s output for avr32 ELF objects is too generic to add proper
    detection (#588953.)
    While at it, display a debug-level message when the architecture is not
    known.
    
    * checks/binaries:
      + [RG] Recognise powerpcspe and sh4 ELF objects.

diff --git a/checks/binaries b/checks/binaries
index 7aace1a..0bfb7cd 100644
--- a/checks/binaries
+++ b/checks/binaries
@@ -23,6 +23,7 @@ use strict;
 use Util;
 use Lintian::Check qw(check_spelling);
 use Lintian::Tags qw(tag);
+use Lintian::Output qw(debug_msg);
 
 use File::Spec;
 
@@ -35,7 +36,8 @@ our %ARCH_REGEX = (
 	'amd64'          => qr'ELF 64-bit LSB .* x86-64, .* (?:GNU/Linux|(?!GNU))',
 	'arm'            => qr'ELF 32-bit LSB .* ARM, version \d,',
 	'armeb'          => qr'ELF 32-bit MSB .* ARM',
-	'armel'          => qr'ELF 32-bit LSB .* \(SYSV\)',
+	'armel'          => qr'ELF 32-bit LSB .* ARM, .* \(SYSV\)',
+#	'avr32'          => qr'ELF 32-bit MSB .* \(SYSV\)',
 	'hppa'           => qr'ELF 32-bit MSB .* PA-RISC',
 	'hppa64'         => qr'ELF 64-bit MSB .* PA-RISC',
 	'hurd-i386' 	 => qr'ELF 32-bit LSB .* Intel 80386, .* (?:GNU/Hurd|(?!GNU))',
@@ -51,9 +53,11 @@ our %ARCH_REGEX = (
 	'mips64' 	 => qr'ELF 64-bit MSB .* MIPS',
 	'mipsel64'       => qr'ELF 64-bit LSB .* MIPS',
 	'powerpc'        => qr'ELF 32-bit MSB .* PowerPC',
+	'powerpcspe'     => qr'ELF 32-bit MSB .* PowerPC .* cisco 4500',
 	'ppc64'          => qr'ELF 64-bit MSB .* PowerPC',
 	's390'    	 => qr'ELF 32-bit MSB .* S.390',
 	's390x'   	 => qr'ELF 64-bit MSB .* S.390',
+	'sh4'   	 => qr'ELF 32-bit LSB .* Renesas SH',
 	'sparc'   	 => qr'ELF 32-bit MSB .* SPARC',
 	'sparc64' 	 => qr'ELF 64-bit MSB .* SPARC');
 
@@ -183,6 +187,7 @@ foreach (sort keys %{$info->file_info}) {
 
 # If we have an unknown architecture, pretend that all binaries are fine.
 if ($arch ne 'all' and not exists($ARCH_REGEX{$arch})) {
+    debug_msg(1, "Unknown architecture: $arch");
     $ARCH_REGEX{$arch} = qr/./;
 }
 
diff --git a/debian/changelog b/debian/changelog
index 387821f..31cc882 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ lintian (2.4.3) UNRELEASED; urgency=low
 
   * checks/binaries{,.desc}:
     + [RG] Detect embedded copies of libbz2, pcre3, and tiff.
+    + [RG] Recognise powerpcspe and sh4 ELF objects.
   * checks/files
     + [RG] Detect embedded copies of HTMLPurifier.
     + [RG] Detect embedded copies of the Strophe javascript library.

-- 
Debian package checker


Reply to: