I started migrating vips to use dh_python2. This fragment of
debian/rules:
install/python-vipscc::
set -e; \
for v in $(l_OTHER_PYTHON_VERSIONS); do \
make -C $(DEB_BUILDDIR)/python/vipsCC clean; \
make -C $(DEB_BUILDDIR)/python/vipsCC PYTHON_VERSION=$$v
PYTHON_INCLUDES=-I/usr/include/python$$v install DESTDIR=$(l_PWD)/debian/tmp; \
done
now causes errors:
set -e; \
for v in 2.7; do \
make -C ./python/vipsCC clean; \
make -C ./python/vipsCC PYTHON_VERSION=$v
PYTHON_INCLUDES=-I/usr/include/python$v install
DESTDIR=/tmp/buildd/vips-7.24.5/debian/tmp; \
done
make: *** ./python/vipsCC: No such file or directory. Stop.
make: *** [install/python-vipscc] Error 2
$(l_OTHER_PYTHON_VERSIONS) is initialized here:
l_OTHER_PYTHON_VERSIONS := \
$(filter-out $(l_PYTHON_VERSION), $(shell pyversions -vr))
This code came from you in May, 2008. While I am fluent with make,
perl, C, C++, and a handful of other languages, I am not fluent in
Python. I haven't written any non-trivial Python code for over a
decade, and I don't use it enough to be following its progress. I don't
know why the above code is/was necessary and whether it's still
necessary. I don't know why python/vipsCC doesn't exist and what is
responsible for creating it. Looking at the build log, I see that
swig/vipsCC does exist. I also see that the selected version of python
is 2.6, not 2.7, though 2.7 is present in sid now.
So, basically, I don't know enough to fix this completely, and I don't
have time to mess with it. So I would be grateful for some added
assistance either in the form of a patch or instructions that are
understandable to someone who doesn't know anything about Python and how
it works.
Attached is a patch to vips 7.24.5-4 that brings it to my current
working version. I believe I have followed the instructions on the wiki
page sited by the bug report.
Thanks for any help you can provide.
--Jay
Index: debian/control
===================================================================
--- debian/control (.../tags/7.24.5-4) (revision 1570)
+++ debian/control (.../trunk) (revision 1570)
@@ -1,9 +1,8 @@
Source: vips
Section: libs
Priority: optional
-Build-Depends: cdbs, debhelper (>= 5.0.38), libjpeg-dev, libtiff4-dev, zlib1g-dev, fftw3-dev | libfftw3-dev, liblcms1-dev, libpng12-dev, libmagickcore-dev, libmagickwand-dev, libfreetype6-dev, libpango1.0-dev, libfontconfig1-dev, libglib2.0-dev, libice-dev, gettext, pkg-config, libxml-parser-perl, libexif-gtk-dev, python-dev (>= 2.4), python-central (>= 0.5.6), liborc-0.4-dev, libopenexr-dev, libmatio-dev, libxml2-dev, libcfitsio3-dev, flex, bison
+Build-Depends: cdbs (>= 0.4.90~), debhelper (>= 5.0.38), libjpeg-dev, libtiff4-dev, zlib1g-dev, fftw3-dev | libfftw3-dev, liblcms1-dev, libpng12-dev, libmagickcore-dev, libmagickwand-dev, libfreetype6-dev, libpango1.0-dev, libfontconfig1-dev, libglib2.0-dev, libice-dev, gettext, pkg-config, libxml-parser-perl, libexif-gtk-dev, python-dev (>= 2.6.6-3~), liborc-0.4-dev, libopenexr-dev, libmatio-dev, libxml2-dev, libcfitsio3-dev, flex, bison
Maintainer: Jay Berkenbilt <[email protected]>
-XS-Python-Version: current
Standards-Version: 3.9.2
Homepage: http://www.vips.ecs.soton.ac.uk
@@ -31,7 +30,7 @@
Package: libvips-dev
Section: libdevel
Architecture: any
-Depends: ${misc:Depends}, libvips15 (= ${binary:Version}), libjpeg-dev, libtiff4-dev, zlib1g-dev, fftw3-dev | libfftw3-dev, liblcms1-dev, libpng12-dev, libmagickcore-dev, libmagickwand-dev, libfreetype6-dev, libpango1.0-dev, libfontconfig1-dev, libglib2.0-dev, libice-dev, gettext, pkg-config, libexif-gtk-dev, python-all-dev, python-central, python-dev (>= 2.4), liborc-0.4-dev, libopenexr-dev, libmatio-dev, libxml2-dev, libcfitsio3-dev
+Depends: ${misc:Depends}, libvips15 (= ${binary:Version}), libjpeg-dev, libtiff4-dev, zlib1g-dev, fftw3-dev | libfftw3-dev, liblcms1-dev, libpng12-dev, libmagickcore-dev, libmagickwand-dev, libfreetype6-dev, libpango1.0-dev, libfontconfig1-dev, libglib2.0-dev, libice-dev, gettext, pkg-config, libexif-gtk-dev, python-all-dev, python-dev (>= 2.6.6-3~), liborc-0.4-dev, libopenexr-dev, libmatio-dev, libxml2-dev, libcfitsio3-dev
Recommends: libvips-doc, libvips-tools
Suggests: nip2
Description: image processing system good for very large images (dev)
@@ -72,7 +71,6 @@
command line.
Package: python-vipscc
-XB-Python-Version: ${python:Versions}
Section: python
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, ${python:Depends}
Index: debian/changelog
===================================================================
--- debian/changelog (.../tags/7.24.5-4) (revision 1570)
+++ debian/changelog (.../trunk) (revision 1570)
@@ -1,3 +1,9 @@
+vips (7.24.5-5) unstable; urgency=low
+
+ * Migrate from dh_pycentral to dh_python2. (Closes: #617141)
+
+ -- Jay Berkenbilt <[email protected]> Sat, 02 Jul 2011 04:02:00 -0400
+
vips (7.24.5-4) unstable; urgency=high
* Fixed ImageMagick dependencies; previous fix missed dependencies of
Index: debian/rules
===================================================================
--- debian/rules (.../tags/7.24.5-4) (revision 1570)
+++ debian/rules (.../trunk) (revision 1570)
@@ -21,7 +21,6 @@
$(DEB_BUILDDIR)/doc/html
DEB_COMPRESS_EXCLUDE = html
-DEB_PYTHON_SYSTEM = pycentral
DEB_PYTHON_PRIVATE_MODULES_DIRS = swig/vipsCC
# Include cdbs rules files.
Index: debian/python-vipscc.install
===================================================================
--- debian/python-vipscc.install (.../tags/7.24.5-4) (revision 1570)
+++ debian/python-vipscc.install (.../trunk) (revision 1570)
@@ -1 +1,2 @@
debian/tmp/usr/lib/python*.*
+debian/tmp/usr/share/pyshared