#! /bin/sh /usr/share/dpatch/dpatch-run ## 803-ignore-unknown-elf-format.dpatch by Alexander Kanevskiy > ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Ignore errors for ARM binaries which binutils-multiarch can't parse @DPATCH@ diff -urN lintian-1.23.8.org/checks/binaries lintian-1.23.8/checks/binaries --- lintian-1.23.8.org/checks/binaries 2006-11-19 13:00:11.574699515 +0200 +++ lintian-1.23.8/checks/binaries 2006-11-19 12:49:01.000000000 +0200 @@ -104,7 +104,8 @@ } elsif (m/^DYNAMIC SYMBOL TABLE:/) { $dynsyms = 1; } elsif (m/^objdump: (.*?): File format not recognized$/) { - fail("file format not recognized for $1\nif you are checking non-i386 binaries, you'll need to install binutils-multiarch\n"); + #fail("file format not recognized for $1\nif you are checking non-i386 binaries, you'll need to install binutils-multiarch\n"); + tag "binary-file-format-not-recognized", "$1"; } elsif (m/^objdump: \.(.*?): Packed with UPX$/) { tag "binary-file-compressed-with-upx", "$1"; } elsif (m/^objdump: \.(.*?): Invalid operation$/) { diff -urN lintian-1.23.8.org/checks/binaries.desc lintian-1.23.8/checks/binaries.desc --- lintian-1.23.8.org/checks/binaries.desc 2006-11-19 13:00:11.460701400 +0200 +++ lintian-1.23.8/checks/binaries.desc 2006-11-19 12:50:40.000000000 +0200 @@ -145,3 +145,8 @@ Info: This appears to be an ELF file but objdump -T cannot parse it. If it is external debugging symbols for another file, it should be installed under /usr/lib/debug. + +Tag: binary-file-format-not-recognized +Type: warning +Info: objdump can't recognize file format for that binary. + diff -urN lintian-1.23.8.org/collection/objdump-info lintian-1.23.8/collection/objdump-info --- lintian-1.23.8.org/collection/objdump-info 2006-11-19 13:00:11.504700673 +0200 +++ lintian-1.23.8/collection/objdump-info 2006-11-19 12:43:09.000000000 +0200 @@ -58,7 +58,7 @@ # If the objdump error is "Invalid operation", we handle it later # in the check script, since this is the expected output (for now) # on detached debugging information in /usr/lib/debug. - if objdump -T $bin 2>&1 | grep -q 'Invalid operation$' ; then + if objdump -T $bin 2>&1 | grep -qE 'Invalid operation$|File format not recognized$' ; then : else exit 1