tags 642746 + patch
thanks

* Mònica Ramírez Arceda <mon...@probeta.net>, 2011-09-24, 22:19:
dh_installgsettings -ppython-vipscc
if [ -f debian/python-vipscc.lintian ]; then \
            mkdir -p debian/python-vipscc/usr/share/lintian/overrides && \
            cp -p debian/python-vipscc.lintian 
debian/python-vipscc/usr/share/lintian/overrides/python-vipscc; \
        fi
dh_python2 -ppython-vipscc
E: dh_python2:145: extension for python2.7 is missing. Build extensions for all 
supported Python versions (`pyversions -vr`) or adjust X-Python-Version field 
or pass --no-guessing-versions to dh_python2
make: *** [binary-install-python/python-vipscc] Error 3

The problem is that the Python modules are built for non-default Python versions, but they are all installed to /usr/lib/python2.X/, for 2.X = default version.

The attached patch fixes the problem.

(The current version of vips was compiled successfully in the past only due to incorrect usage of DEB_PYTHON_PRIVATE_MODULES_DIRS, combined with a cdbs bug.)

--
Jakub Wilk
diff -Nru vips-7.26.3/debian/rules vips-7.26.3/debian/rules
--- vips-7.26.3/debian/rules	2011-09-03 18:46:41.000000000 +0200
+++ vips-7.26.3/debian/rules	2011-12-30 23:58:00.000000000 +0100
@@ -21,13 +21,13 @@
 	$(DEB_BUILDDIR)/doc/html
 DEB_COMPRESS_EXCLUDE = html
 
-DEB_PYTHON_PRIVATE_MODULES_DIRS = swig/vipsCC
-
 # Include cdbs rules files.
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-module.mk
 include /usr/share/cdbs/1/class/autotools.mk
 
+include /usr/share/python/python.mk
+
 # exec_prefix set explicitly to /usr appears to be required by
 # configure scripts in order to properly install multiple versions of
 # python.  Setting to "\$${prefix}" doesn't work.
@@ -69,6 +69,6 @@
 	set -e; \
 	for v in $(l_OTHER_PYTHON_VERSIONS); do \
 	  make -C $(DEB_BUILDDIR)/swig/vipsCC clean; \
-          make -C $(DEB_BUILDDIR)/swig/vipsCC PYTHON_VERSION=$$v PYTHON_INCLUDES=-I/usr/include/python$$v install DESTDIR=$(l_PWD)/debian/tmp; \
+          make -C $(DEB_BUILDDIR)/swig/vipsCC PYTHON_VERSION=$$v PYTHON_INCLUDES=-I/usr/include/python$$v pyexecdir="$(call py_libdir_sh, $$v)" install DESTDIR=$(l_PWD)/debian/tmp; \
 	done
 	find $(l_PWD)/debian/tmp -type f \( -name '*.la' -o -name '*.pyc' -o -name '*.pyo' \) -exec rm {} \;

Reply via email to