Package: debhelper
Version: 5.0.37.3
Severity: normal

Hi,

look:

$ file debian/exim4-base/usr/sbin/exim_dumpdb
debian/exim4-base/usr/sbin/exim_dumpdb: ELF 32-bit LSB executable, Intel 80386, 
version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), 
for GNU/Linux 2.4.1, not stripped
$ DH_COMPAT=5 DH_VERBOSE=1 dh_strip -pexim4-base -peximon4 
--dbg-package=exim4-dbg
        objcopy --only-keep-debug debian/exim4-base/usr/sbin/exim_dumpdb 
debian/exim4-dbg/usr/lib/debug//usr/sbin/exim_dumpdb
        chmod 644 debian/exim4-dbg/usr/lib/debug//usr/sbin/exim_dumpdb
        strip --remove-section=.comment --remove-section=.note 
debian/exim4-base/usr/sbin/exim_dumpdb
        objcopy --add-gnu-debuglink 
debian/exim4-dbg/usr/lib/debug//usr/sbin/exim_dumpdb 
debian/exim4-base/usr/sbin/exim_dumpdb
$ file debian/exim4-base/usr/sbin/exim_dumpdb
debian/exim4-base/usr/sbin/exim_dumpdb: ELF 32-bit LSB executable, Intel 80386, 
version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), 
for GNU/Linux 2.4.1, stripped
$ DH_COMPAT=5 DH_VERBOSE=1 dh_strip -pexim4-base -peximon4 
--dbg-package=exim4-dbg
        objcopy --only-keep-debug debian/exim4-base/usr/sbin/exim_dumpdb 
debian/exim4-dbg/usr/lib/debug//usr/sbin/exim_dumpdb
        chmod 644 debian/exim4-dbg/usr/lib/debug//usr/sbin/exim_dumpdb
        strip --remove-section=.comment --remove-section=.note 
debian/exim4-base/usr/sbin/exim_dumpdb
        objcopy --add-gnu-debuglink 
debian/exim4-dbg/usr/lib/debug//usr/sbin/exim_dumpdb 
debian/exim4-base/usr/sbin/exim_dumpdb
objcopy: debian/exim4-dbg/usr/lib/debug//usr/sbin/exim_dumpdb: Invalid operation
dh_strip: command returned error code 256
$

On the first call, dh_strip --dbg-package strips the input binary. On
the second call, dh_strip --dbg-package calls objcopy on the stripped
binary, and objcopy does not seem to appreciate that.

dh_strip should behave more gracefully here.

Greetings
Marc

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.7-zgsrv
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages debhelper depends on:
ii  binutils                      2.17-1     The GNU assembler, linker and bina
ii  coreutils                     5.96-5     The GNU core utilities
ii  dpkg-dev                      1.13.22    package building tools for Debian
ii  file                          4.17-2     Determines file type using "magic"
ii  html2text                     1.3.2a-3   An advanced HTML to text converter
ii  perl                          5.8.8-6    Larry Wall's Practical Extraction 
ii  po-debconf                    1.0.5      manage translated Debconf template

debhelper recommends no packages.

-- no debconf information


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

Reply via email to