Package: vips
Version: 7.18.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu jaunty ubuntu-patch

Hi,

Here are the changes that we performed in Ubuntu to make vips compile with 
python2.6. This changes are compatible with python 2.5, and can be applied right
 now in Unstable.

Fabrice

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

  * debian/rules: 
    - changes site-packages to *-packages (LP: #401941)
    - added DEB_AUTO_UPDATE_LIBTOOL, *-AUTOMAKE, *-ACLOCAL and *-AUTOCONF to 
      update configure file and makefiles
    - Set DEB_CONFIGURE_EXTRA_FLAGS to --exec_prefix=/usr to force configure
      to set correctly python extension module directory
  * debian/control: added build dependency on libtool

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: 5.0
  APT prefers jaunty-updates
  APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty')
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
diff -u vips-7.18.1/debian/rules vips-7.18.1/debian/rules
--- vips-7.18.1/debian/rules
+++ vips-7.18.1/debian/rules
@@ -25,11 +25,18 @@
 	$(DEB_BUILDDIR)/doc/html
 DEB_COMPRESS_EXCLUDE = html
 
+DEB_AUTO_UPDATE_LIBTOOL = pre
+DEB_AUTO_UPDATE_AUTOMAKE = 1.10
+DEB_AUTO_UPDATE_ACLOCAL = $(DEB_AUTO_UPDATE_AUTOMAKE)
+DEB_AUTO_UPDATE_AUTOCONF = 2.63
+
 # Include cdbs rules files.
 #include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 
+DEB_CONFIGURE_EXTRA_FLAGS = --exec_prefix=/usr
+
 # "make install" runs installed programs at one point, so we need to
 # set LD_LIBRARY_PATH to the installed library directory.
 ifeq ("$(LD_LIBRARY_PATH)", "")
@@ -53,8 +60,8 @@
 install/libvips-tools::
 	rm debian/tmp/usr/bin/header
 	rm debian/tmp/usr/share/man/man1/header.1*
-	rm debian/tmp/usr/lib/python*/site-packages/vipsCC/*.pyc
-	rm debian/tmp/usr/lib/python*/site-packages/vipsCC/*.pyo
+	rm debian/tmp/usr/lib/python*/*-packages/vipsCC/*.pyc
+	rm debian/tmp/usr/lib/python*/*-packages/vipsCC/*.pyo
 	perl $(l_PWD)/debian/scripts/create_missing_manual_pages
 
 # Install lintian override files
diff -u vips-7.18.1/debian/control vips-7.18.1/debian/control
--- vips-7.18.1/debian/control
+++ vips-7.18.1/debian/control
@@ -1,8 +1,9 @@
 Source: vips
 Section: libs
 Priority: optional
-Build-Depends: cdbs, debhelper (>= 5.0.38), libjpeg62-dev, libtiff4-dev, zlib1g-dev, fftw3-dev | libfftw3-dev, liblcms1-dev, libpng12-dev, libmagick9-dev | libmagick-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), liboil0.3-dev, libopenexr-dev, libmatio-dev, flex, bison
-Maintainer: Jay Berkenbilt <[email protected]>
+Build-Depends: cdbs, debhelper (>= 5.0.38), libjpeg62-dev, libtiff4-dev, zlib1g-dev, fftw3-dev | libfftw3-dev, liblcms1-dev, libpng12-dev, libmagick9-dev | libmagick-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), liboil0.3-dev, libopenexr-dev, libmatio-dev, flex, bison, libtool
+Maintainer: Ubuntu Developers <[email protected]>
+XSBC-Original-Maintainer: Jay Berkenbilt <[email protected]>
 XS-Python-Version: current
 Standards-Version: 3.8.1
 Homepage: http://www.vips.ecs.soton.ac.uk

Reply via email to