Le vendredi 30 octobre 2020, 12:01:41 CET Aurélien COUDERC a écrit :
> Dear team,
> 
> I’m working on updating Konsole and I get the lintian error in the title
> which is a bit cryptic to me.
> I guess I should be doing some override to dh_strip but I don’t really
> understand why I’m falling into this case so help or clarifications welcome.

OK I got away with some slightly complicated overrides.

=== debian/konsole-dbgsym.lintian-overrides ===
konsole-dbgsym: stripped-library 
usr/lib/debug/.dwz/x86_64-linux-gnu/konsole.debug 
konsole-dbgsym: non-debug-file-in-debug-package 
usr/share/lintian/overrides/konsole-dbgsym

=== debian/rules ===
execute_before_dh_lintian:
        mkdir -p 
debian/.debhelper/konsole/dbgsym-root/usr/share/lintian/overrides/
        cp debian/konsole-dbgsym.lintian-overrides 
debian/.debhelper/konsole/dbgsym-root/usr/share/lintian/overrides/konsole-dbgsym

There’s some context at [0] and [1].

The chain of things is as I understand it is :
- konsole.debug ELF doesn’t have a .debug_info section.
  readelf -a 
./debian/.debhelper/konsole/dbgsym-root/usr/lib/debug/.dwz/x86_64-linux-gnu/konsole.debug
- the `file` command thus detects it as a stripped ELF (see file`s source code
  at src/readelf.c:1366)
- lintian catches that to report its error.

Moreover:
- dh_lintian won’t install overrides for auto-generated -dbgsym
  packages making the override not work automatically.

As for why konsole.debug doesn’t have a .debug_info section in the first
place, I don’t have the slightest idea. :)
  

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963698
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820310


Happy hacking !
--
Aurélien



-- 
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-kde-talk

Reply via email to