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

Re: -dbg packages



* Piotr Ożarowski <piotr@debian.org>, 2011-08-10, 11:55:
I remember a discussion about dh_python2 supporting -dbg packages
here. Therefore, I was thinking that it could handle some steps,
like dependencies (in ${python:Depends}) and install (keep only
debug files).

dh_python2 cleans -dbg packages

What do you mean by "clean"?

removes everything except .so and .h files from public directories

Added to my "Why You Should Stay Away From Dh_Python2" list, thanks.

and adds dependencies to ${python:Depends}, yes
What exactly it puts into python:Depends? I know it puts -dbg
interpreter there, but what about stuff from requires.txt?
requires.txt is removed (as all other files in .egg-info) so there's
nothing to add

I hope you are all aware, that if python-dbg tries to import foo, and foo_d.so is not found, it'll try to load foo.so instead (and then it'll fail with a very obscure error message). So it's quite important to keep your bar-dbg's Depends/Recommends line correct. And you have to do it manually (which is not bad per se), even when bar's Depends line is automatically generated from requires.txt.

Also, it means that you should use "Recommends: ${python:Depends}" for your -dbg package. Yay.

why?

Because otherwise you'll end up with "Depends: python-dbg" which is too strict. See http://wiki.debian.org/Python/DbgBuilds for rationale.

--
Jakub Wilk


Reply to: