Package: openocd
Version: 0.0+r655-1
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu ubuntu-patch intrepid

Hello,

I found the following problem while analyzing why your package FTBFS in
Ubuntu intrepid. The problem was that Ubuntu's dh_strip (which extracts
the debug symbols and puts them into a separate deb) failed on
at91eb40a.elf. It should got excluded from dh_strip but dh_strip doesn't
expect file globs as arguments for -X (according to the man page and the
perl source).

The following patch fixes the problem (simply removes the * before .elf
and .bin):
---8<---
diff -u openocd-0.0+r655/debian/rules openocd-0.0+r655/debian/rules
--- openocd-0.0+r655/debian/rules
+++ openocd-0.0+r655/debian/rules
@@ -9,8 +9,8 @@
 DEB_INSTALL_INFO_openocd := doc/openocd.info
 
 # Don't strip/compress certain files.
-DEB_STRIP_EXCLUDE = *.elf *.bin examples
-DEB_COMPRESS_EXCLUDE = *.elf *.bin examples
+DEB_STRIP_EXCLUDE = .elf .bin examples
+DEB_COMPRESS_EXCLUDE = .elf .bin examples
 
 # TODO: Use --enable-oocd_trace later, right now it's just a proof-of-concept.
 DEB_CONFIGURE_EXTRA_FLAGS := \
--->8---

For reference the relevant part of the Ubuntu build log:
,----
| dh_strip -popenocd -X *.elf -X *.bin -X examples 
| dh_strip debug symbol extraction: all non-arch-all packages for this build 
platform i386: openocd 
| dh_strip debug symbol extraction: packages to act on: openocd 
| dh_strip debug symbol extraction: ignored packages: 
| objcopy: Unable to recognise the format of the input file 
`./usr/lib/openocd/ecos/at91eb40a.elf'
| objcopy --only-keep-debug failed on 
/build/buildd/openocd-0.0+r655/debian/openocd/usr/lib/openocd/ecos/at91eb40a.elf
`----




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to