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

dh_python3 and dh_strip



Hi,

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.

--
Dmitry Shachnev

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: