Hi

On 2015-04-28 12:20:32, Dmitry Shachnev wrote:
> I have noticed that my python3-sip4-dbg package does not have debug symbols
> for the python3 extension (i.e. sip.cpython-34m-x86_64-linux-gnu.so).
> 
> That package does not use distutils/setuptools, but uses its own build
> system instead. In debian/rules, we make sure that:
> 
> - python3 extension is installed into
>   debian/python3-sip/usr/lib/python3.4/dist-packages/sip.so
> 
> - python3 extension for debug interpreter is installed into
>   debian/python3-sip/usr/lib/python3.4/dist-packages/sip_d.so
> 
>   Yes, this is a bit Python 2 style, but we want to let dh_python3 do the
>   proper renaming instead of doing that ourselves.
> 
> The we call "dh_strip -ppython3-sip --dbg-package=python3-sip-dbg", which
> creates a debug symbols file at
> debian/python3-sip-dbg/usr/lib/debug/usr/lib/python3.4/dist-packages/sip.so.
> 
> But then dh_python3 is called and it does the following renaming:
> 
> I: dh_python3 fs:90: renaming 
> debian/python3-sip-dbg/usr/lib/debug/usr/lib/python3.4/dist-packages/sip.so
> to 
> debian/python3-sip-dbg/usr/lib/debug/usr/lib/python3.4/dist-packages/sip.cpython-34dm-x86_64-linux-gnu.so
> 
> That file contains the debugging symbols for the extension built for
> non-debug interpreter, so it should be renamed to
> sip.cpython-34m-x86_64-linux-gnu.so, not sip.cpython-34dm-x86_64-linux-gnu.so.
> 
> Is there any way to make dh_python3 use the correct file name here?
> 
> I have tried changing debian/rules to run dh_strip *after* dh_python3,
> but then (for some reason) it leaves
> /usr/lib/python3.4/dist-packages/sip.cpython-34dm-x86_64-linux-gnu.so
> unstripped, which is wrong AFAIK.

You could bump compat to 9 and use debug symbol files based on the build id.
This should circumvent any filename based problems.

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: Digital signature

Reply via email to