[Build-common-hackers] Bug#639098: python-distutils.mk needs DEB_PYTHON_DESTDIR when non-python packages are created by the same source
Rafael Cunha de Almeida
rafael at kontesti.me
Wed Aug 24 04:30:45 UTC 2011
Package: cdbs
Version: 0.4.96
Severity: normal
Hello,
I attached a very simple example package in order to make this bug
easier to talk about. The source package name is foo and it provides two
packages: foo and python-foo.
Package foo has only one binary, also called foo. It is installed to
/usr/bin/foo using foo.install file.
Package python-foo has a python package called foolizer and a module
foo inside it. It can be installed using distutils.
At first I set up my debian/rules like this:
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
DEB_PYTHON_MODULE_PACKAGES = python-foo
include /usr/share/cdbs/1/class/python-distutils.mk
it did not work (actually, at first I tried without
DEB_PYTHON_MODULE_PACKAGES, but it didn't work either). After some
debugging, I found out that this would work:
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
DEB_PYTHON_MODULE_PACKAGES = python-foo
DEB_PYTHON_DESTDIR = $(CURDIR)/debian/python-foo
include /usr/share/cdbs/1/class/python-distutils.mk
If I don't set DEB_PYTHON_DESTDIR, then the destination directory for
python modules becomes debian/tmp. That never gets added into python-foo
package. By setting that variable, it is properly installed in
debian/python-foo and it gets included in python-foo package.
It seems odd to me, because if I remove package foo from debian/control,
then all works even without setting DEB_PYTHON_DESTDIR or
DEB_PYTHON_MODULE_PACKAGES (actually, DEB_PYTHON_MODULE_PACKAGES never
seems to be necessary). Perhaps that's even the proper way. But why does
it need to be that way? Can't it be deduced from
DEB_PYTHON_MODULE_PACKAGES?
The same thing happens on cdbs from squeeze (setting DEB_PYTHON_SYSTEM
properly, of course), but I don't know how taget both versions of the
package. So I'm reporting this on sid, which has the latest version.
[]'s
Rafael
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages cdbs depends on:
ii debhelper 8.9.6 helper programs for debian/rules
Versions of packages cdbs recommends:
ii autotools-dev 20110511.1 Update infrastructure for config.{
Versions of packages cdbs suggests:
ii devscripts 2.11.1 scripts to make the life of a Debi
-- no debconf information
More information about the Build-common-hackers
mailing list