tags 628830 + patch
thanks

* Jakub Wilk <[email protected]>, 2011-06-01, 19:16:
When rebuilt against python-defaults 2.7.2-1 (currently in experimental), mirage failed to build from source:
| running build
| running build_py
| creating /build/mirage-PGosHC/mirage-0.9.5.1/build
| creating /build/mirage-PGosHC/mirage-0.9.5.1/build/lib.linux-i686-2.6
| copying mirage.py -> 
/build/mirage-PGosHC/mirage-0.9.5.1/./build/lib.linux-i686-2.6
| running build_ext
| building 'imgfuncs' extension
| creating /build/mirage-PGosHC/mirage-0.9.5.1/build/temp.linux-i686-2.6
| gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -g -O2 -g -O2 -Wall -fPIC -I/usr/include/python2.6 -c 
imgfuncs.c -o 
/build/mirage-PGosHC/mirage-0.9.5.1/./build/temp.linux-i686-2.6/imgfuncs.o
| imgfuncs.c:1:20: fatal error: Python.h: No such file or directory
| compilation terminated.
| error: command 'gcc' failed with exit status 1
| make: *** [debian/python-module-stampdir/mirage] Error 1

Here's a patch to fix this bug.

--
Jakub Wilk
diff -Nru mirage-0.9.5.1/debian/control mirage-0.9.5.1/debian/control
--- mirage-0.9.5.1/debian/control	2010-08-08 12:43:29.000000000 +0000
+++ mirage-0.9.5.1/debian/control	2011-06-26 18:49:09.000000000 +0000
@@ -5,7 +5,6 @@
 Build-Depends: cdbs (>= 0.4.51), debhelper (>= 7), python-support (>= 0.7.6), python-dev (>= 2.6), python-gtk2-dev, quilt
 Standards-Version: 3.9.1
 Homepage: http://mirageiv.berlios.de/
-XS-Python-Version: 2.6
 
 Package: mirage
 Architecture: any
diff -Nru mirage-0.9.5.1/debian/rules mirage-0.9.5.1/debian/rules
--- mirage-0.9.5.1/debian/rules	2010-08-08 11:51:37.000000000 +0000
+++ mirage-0.9.5.1/debian/rules	2011-06-26 19:11:10.000000000 +0000
@@ -4,10 +4,9 @@
 DEB_PYTHON_SYSTEM=pysupport
 
 include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/class/python-module.mk
 include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
-PYTHONVER = 2.5
 DEB_CONFIGURE_EXTRA_FLAGS := --no-compile --prefix $(DEB_DESTDIR)/usr --install-layout=deb
 
 binary-install/mirage::
@@ -20,7 +19,7 @@
 	rm -f $(DEB_DESTDIR)/usr/share/mirage/CHANGELOG
 
 configure/mirage::
-	PKG_CONFIG_PATH=${PKGCONFIGPATH}:/usr/lib/pkgconfig/$(PYTHONVER) /usr/bin/python setup.py build
+	python setup.py build
 
 clean::
 	/usr/bin/python setup.py clean

Reply via email to