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

Bug#806966: lintian: FTBFS: tests::legacy-debug fails



Source: lintian
Version: 2.5.38.1
Severity: serious
Justification: fails to build from source

lintian FTBFS because tests::legacy-debug fails:
| tests::legacy-debug: diff -u t/tests/legacy-debug/tags /build/lintian-8S7bNp/lintian-2.5.38.1/debian/test-out/tests/debug/tags.debug
| --- t/tests/legacy-debug/tags	2015-11-01 14:48:36.000000000 +0000
| +++ /build/lintian-8S7bNp/lintian-2.5.38.1/debian/test-out/tests/debug/tags.debug	2015-12-03 15:44:58.424457639 +0000
| @@ -30,15 +30,12 @@
|  W: debug source: debian-rules-sets-DH_COMPAT line 5
|  W: debug source: dh-clean-k-is-deprecated
|  W: debug source: timewarp-standards-version (2006-04-04 < 2006-04-26)
| -W: hello-dbg: debug-file-with-no-debug-symbols usr/lib/debug/usr/bin/hello
|  W: hello-hello-dbg: latest-debian-changelog-entry-without-new-version
|  W: hello: binary-without-manpage usr/bin/hello
|  W: hello: binary-without-manpage usr/bin/hello.dbg
|  W: hello: latest-debian-changelog-entry-without-new-version
|  W: hi-dbg: latest-debian-changelog-entry-without-new-version
|  W: libhello0-dbg: debug-file-should-use-detached-symbols usr/lib/debug/lib/libhello.so.0.0
| -W: libhello0-dbg: debug-file-with-no-debug-symbols usr/lib/debug/lib/libhello.so.0.0
| -W: libhello0-dbg: debug-file-with-no-debug-symbols usr/lib/debug/usr/lib/libhello.so.0.0
|  W: libhello0-dbg: latest-debian-changelog-entry-without-new-version
|  W: libhello0-dbg: shared-lib-without-dependency-information usr/lib/libhello.so.dbg
|  W: libhello0: latest-debian-changelog-entry-without-new-version
| fail tests::legacy-debug: output differs!

Apparently something in GCC or libc has changed recently at causes binaries to contain debug info, even when they compiled without -g:

(stretch) $ gcc test.c && readelf --sections a.out | grep -c debug
0

(sid) $ gcc test.c && readelf --sections a.out | grep debug
 [28] .debug_aranges    PROGBITS        00000000 000690 000090 00      0   0  8
 [29] .debug_info       PROGBITS        00000000 000720 0001aa 00      0   0  1
 [30] .debug_abbrev     PROGBITS        00000000 0008ca 000076 00      0   0  1
 [31] .debug_line       PROGBITS        00000000 000940 000143 00      0   0  1
 [32] .debug_str        PROGBITS        00000000 000a83 00011d 01  MS  0   0  1
 [33] .debug_ranges     PROGBITS        00000000 000ba0 000048 00      0   0  8


Niels said on IRC that we could just remove that part of the test, as the new test suite already covers the debug-file-with-no-debug-symbols tag.

--
Jakub Wilk


Reply to: