[Build-common-hackers] Bug#525436: cdbs: distutils does not call setup.py install any more

Martin Pitt mpitt at debian.org
Fri Apr 24 14:57:29 UTC 2009


Package: cdbs
Version: 0.4.56
Severity: grave
Justification: causes other packages to FTBFS

calibre's debian/rules has an extra install/calibre rule which looks
like

install/calibre::
	# remove bundled python libraries which are provided by system
	# packages
	rm -r debian/tmp/usr/lib/python*/*-packages/cherrypy
	[...]

With version 0.4.52, the install part worked fine, first the internal
automatic rules were called (including setup.py install), and
afterwards my own rules kicked in which removed some upstream stuff
from debian/tmp/:

[... output from build, which works fine ... ]
 fakeroot debian/rules binary
test -x debian/rules
dh_testroot
dh_clean -k 
dh_installdirs -A 
mkdir -p "."
cd . && python setup.py install --root=/home/martin/ubuntu/calibre/build-area/calibre-0.4.143+dfsg/debian/tmp/ --no-compile -O0
Setup calibre version: 0.4.143
running install
[...]
running install_lib
creating /home/martin/ubuntu/calibre/build-area/calibre-0.4.143+dfsg/debian/tmp
[...]
Installing calibre script to /home/martin/ubuntu/calibre/build-area/calibre-0.4.143+dfsg/debian/tmp/usr/bin
dh_installdirs -pcalibre 
# remove bundled python libraries which are provided by system
# packages
rm -r debian/tmp/usr/lib/python*/*-packages/cherrypy

With current version 0.4.56, setup.py install is never called, it immediately
goes into the custom rules in debian/rules:

[... output from build, which works fine ... ]
touch debian/python-module-stampdir/calibre-bin
 fakeroot debian/rules binary
test -x debian/rules
dh_clean -k 
dh_installdirs -A 
mkdir -p "."
mkdir -p debian/python-module-stampdir
dh_installdirs -pcalibre 
# remove bundled python libraries which are provided by system
# packages
rm -r debian/tmp/usr/lib/python*/*-packages/cherrypy
rm: Entfernen von „debian/tmp/usr/lib/python*/*-packages/cherrypy“ nicht möglich: Datei oder Verzeichnis nicht gefunden

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20090424/5f4c589d/attachment.pgp>


More information about the Build-common-hackers mailing list