Package: buildbot
Version: 0.7.12-1
Severity: important
Tags: patch
User: debian-pyt...@lists.debian.org
Usertags: origin-ubuntu karmic ubuntu-patch python2.6

Hi,

During rebuild of buildbot in Ubuntu, the package FTBFS because some binaries 
are installed in /usr/local:
....
dh_builddeb
Found files in /usr/local (must be in /usr).
debian/buildbot/usr/local
debian/buildbot/usr/local/bin
debian/buildbot/usr/local/bin/buildbot
dh_builddeb: dpkg-deb --build debian/buildbot .. returned exit code 1
make: *** [binary-indep] Error 9

This can be easilly fixed by adding a --prefix argument to setup call

Thanks,
Fabrice

*** /tmp/tmpCUU380
In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/rules: added --prefix value to setup.py install call to fix a FTBFS

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-19-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
diff -u buildbot-0.7.12/debian/rules buildbot-0.7.12/debian/rules
--- buildbot-0.7.12/debian/rules
+++ buildbot-0.7.12/debian/rules
@@ -32,7 +32,7 @@
 		/usr/share/buildbot/contrib \
 		/usr/share/info \
 		/usr/share/doc/$(p)
-	python setup.py install --root=$(d) --no-compile
+	python setup.py install --prefix=/usr --root=$(d) --no-compile
 	cp -p contrib/*.py contrib/README.txt $(d)//usr/share/buildbot/contrib/
 	-find debian -name '*.py[co]' | xargs rm -f
 

Reply via email to