Bug#928675: debhelper: dh_dwz fails on /usr/bin/slt (it has no .debug_info section)

2019-05-08 Thread Niels Thykier
Control: tags -1 moreinfo

Daniel Kahn Gillmor:
> Package: debhelper
> Version: 12.1.1
> Severity: normal
> 
> using debhelper 12 on the slt package, i get the following error:
> 
>dh_dwz -O--buildsystem=golang
> dh_dwz: dwz -q -- debian/slt/usr/bin/slt returned exit code 1
> make: *** [debian/rules:5: binary] Error 1
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 
> 2
> debuild: fatal error at line 1182:
> 
> 
> if i try to run dwz by hand, i see:
> 
> 0 dkg@alice:~/src/slt/slt$ dwz debian/slt/usr/bin/slt 
> dwz: debian/slt/usr/bin/slt: .debug_info section not present
> 1 dkg@alice:~/src/slt/slt$ 
> 
> I'm currently overriding dh_dwz to avoid /usr/bin/slt in that package
> to get it to build cleanly.
> 
> Feel free to replicate on a debian unstable VM with:
> 
> sudo apt build-dep slt
> sudo apt install devscripts git-buildpackage
> debcheckout slt
> cd slt
> sed -i 's/.*dwz.*//' debian/rules
> gbp buildpackage -uc -us --git-ignore-new
> 
> thanks for maintaining debhelper!
> 
>--dkg
> 
> [...]
Hi,

Just to confirm, isn't the fundamental issue that slt is compiled
without debug symbols?  At least, that is what I gather from the
situation (admittedly, without having had time to build slt directly).

Thanks,
~Niels



Bug#928675: debhelper: dh_dwz fails on /usr/bin/slt (it has no .debug_info section)

2019-05-08 Thread Daniel Kahn Gillmor
Package: debhelper
Version: 12.1.1
Severity: normal

using debhelper 12 on the slt package, i get the following error:

   dh_dwz -O--buildsystem=golang
dh_dwz: dwz -q -- debian/slt/usr/bin/slt returned exit code 1
make: *** [debian/rules:5: binary] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:


if i try to run dwz by hand, i see:

0 dkg@alice:~/src/slt/slt$ dwz debian/slt/usr/bin/slt 
dwz: debian/slt/usr/bin/slt: .debug_info section not present
1 dkg@alice:~/src/slt/slt$ 

I'm currently overriding dh_dwz to avoid /usr/bin/slt in that package
to get it to build cleanly.

Feel free to replicate on a debian unstable VM with:

sudo apt build-dep slt
sudo apt install devscripts git-buildpackage
debcheckout slt
cd slt
sed -i 's/.*dwz.*//' debian/rules
gbp buildpackage -uc -us --git-ignore-new

thanks for maintaining debhelper!

   --dkg

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 
'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debhelper depends on:
ii  autotools-dev20180224.1
ii  dh-autoreconf19
ii  dh-strip-nondeterminism  1.1.2-1
ii  dpkg 1.19.6
ii  dpkg-dev 1.19.6
ii  dwz  0.12-3
ii  file 1:5.35-4
ii  libdpkg-perl 1.19.6
ii  man-db   2.8.5-2
ii  perl 5.28.1-6
ii  po-debconf   1.0.21

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make  

-- no debconf information