Bug#535120: hk-classes FTBFS with python2.6
Package: hk-classes
Version: 0.8.3-5
Severity: serious
Tags: patch
Justification: no longer builds from source
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, python2.6 is the default python version, and this package has
to be adapted to build properly. Here is the patch for that
*** /tmp/tmpO_WB5c
In Ubuntu, we've applied the attached patch to achieve the following:
* debian/patches/python2.6.patch: patch python/Makefile.in to add parameter
--install-layout=deb to setup.py install call (LP: #392390)
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.28-13-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
--- hk-classes-0.8.3.orig/debian/patches/python2.6.patch
+++ hk-classes-0.8.3/debian/patches/python2.6.patch
@@ -0,0 +1,30 @@
+diff -Nur -x '*.orig' -x '*~' hk-classes-0.8.3/python/Makefile.am hk-classes-0.8.3.new/python/Makefile.am
+--- hk-classes-0.8.3/python/Makefile.am 2006-05-23 18:02:11.000000000 +0000
++++ hk-classes-0.8.3.new/python/Makefile.am 2009-06-26 04:07:47.000000000 +0000
+@@ -10,9 +10,9 @@
+
+ install-data-hook:
+ if test -z "$(DESTDIR)"; then \
+- python setup.py install ; \
++ python setup.py install --install-layout=deb ; \
+ else \
+- python setup.py install --root $(DESTDIR) ; \
++ python setup.py install --install-layout=deb --root $(DESTDIR) ; \
+ fi
+ /bin/rm -f -R ./build/*
+
+diff -Nur -x '*.orig' -x '*~' hk-classes-0.8.3/python/Makefile.in hk-classes-0.8.3.new/python/Makefile.in
+--- hk-classes-0.8.3/python/Makefile.in 2006-12-17 14:27:52.000000000 +0000
++++ hk-classes-0.8.3.new/python/Makefile.in 2009-06-26 04:07:00.000000000 +0000
+@@ -371,9 +371,9 @@
+
+ install-data-hook:
+ if test -z "$(DESTDIR)"; then \
+- python setup.py install ; \
++ python setup.py install --install-layout=deb ; \
+ else \
+- python setup.py install --root $(DESTDIR) ; \
++ python setup.py install --install-layout=deb --root $(DESTDIR) ; \
+ fi
+ /bin/rm -f -R ./build/*
+
Reply to: