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

Bug#576014: lintian: warn on files in /usr/lib/debug/usr/lib/pyshared/pythonX.Y



Le mercredi 31 mars 2010 à 15:46 -0400, Joey Hess a écrit : 
> Josselin Mouette wrote:
> > > Many python-*-dbg packages using python-support ship files in 
> > > /usr/lib/debug/usr/lib/pyshared/pythonX.Y/, likely as a result of 
> > > dh_strip'ping files in /usr/lib/pyshared/pythonX.Y/. However, this is 
> > > wrong, as gdb will never look into that directory; 
> > > /usr/lib/debug/usr/lib/pymodules/pythonX.Y/ should be used instead.
> > 
> > This is true, but it would be much better to fix dh_strip to use build
> > IDs instead of having to warn maintainers of the resulting brokenness.
> 
> Why does gdb not look for the debug symbols where --add-gnu-debuglink
> has recorded them to be in this case?

The miracle of the --add-gnu-debuglink option is that it doesn’t put a
full pathname into the .gnu_debuglink section, only a filename.

Example:

/usr/lib/libz.so.1:     file format elf64-x86-64

Contents of section .gnu_debuglink:
0000 6c69627a 2e736f2e 312e322e 332e3400  libz.so.1.2.3.4.
0010 81aad5f0                             ....            

Then GDB looks for /usr/lib/debug/$original_dirname/$contents.

As such, this mechanism is not able at all to handle symlinks that point
to a different directory.

Cheers,
-- 
 .''`.      Josselin Mouette
: :' :
`. `'  “If you behave this way because you are blackmailed by someone,
  `-    […] I will see what I can do for you.”  -- Jörg Schilling

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: