I took a look at this one because I thought (incorrectly) that we needed to 
rebuild the package for a transition in raspbian.

Fixing the failure in this bug report was easy enough and i've attached a patch.

Unfortunately at least in raspbian jessie the package then goes on to fail with.

make[1]: Leaving directory `/regina-normal-4.93/builds/debbuild'
# Split into separate binary packages.
dh_install --sourcedir=debian/tmp --list-missing
dh_install: regina-normal missing files (usr/bin/reg*), aborting
make: *** [install] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
root@linaro-ubuntu-desktop:/regina-normal-4.93#
diff -ur regina-normal-4.93/debian/changelog regina-normal-4.93.new/debian/changelog
--- regina-normal-4.93/debian/changelog	2013-07-10 21:11:23.000000000 +0000
+++ regina-normal-4.93.new/debian/changelog	2013-07-10 20:05:02.000000000 +0000
@@ -1,3 +1,11 @@
+regina-normal (4.93-1+rpi1) jessie-staging; urgency=low
+
+  * Force python library location to new multiarch path.
+  * Bump python-dev build-depends to 2.7.5 for multiarch
+    (earlier versions may or may not be safe, I can't easilly tell)
+
+ -- Peter Michael Green <plugw...@raspbian.org>  Wed, 10 Jul 2013 19:58:18 +0000
+
 regina-normal (4.93-1) unstable; urgency=low
 
   * New upstream release.
diff -ur regina-normal-4.93/debian/control regina-normal-4.93.new/debian/control
--- regina-normal-4.93/debian/control	2013-07-10 21:11:23.000000000 +0000
+++ regina-normal-4.93.new/debian/control	2013-07-10 20:04:29.000000000 +0000
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Ben Burton <b...@debian.org>
 Homepage: http://regina.sourceforge.net/
-Build-Depends: debhelper (>= 7), cmake, doxygen, libboost-python-dev (>= 1.39.0), libboost-regex-dev, libcppunit-dev (>= 1.10.2-4), libgmp-dev (>= 4.1.4-10), libqt4-dev, libpopt-dev, libsource-highlight-dev, libxml2-dev, mpi-default-dev, python-dev (>= 2.5.2-1~), python-support (>= 0.6), shared-mime-info, xsltproc, zlib1g-dev
+Build-Depends: debhelper (>= 7), cmake, doxygen, libboost-python-dev (>= 1.39.0), libboost-regex-dev, libcppunit-dev (>= 1.10.2-4), libgmp-dev (>= 4.1.4-10), libqt4-dev, libpopt-dev, libsource-highlight-dev, libxml2-dev, mpi-default-dev, python-dev (>= 2.7.5), python-support (>= 0.6), shared-mime-info, xsltproc, zlib1g-dev
 Standards-Version: 3.9.3
 
 Package: regina-normal
diff -ur regina-normal-4.93/debian/rules regina-normal-4.93.new/debian/rules
--- regina-normal-4.93/debian/rules	2013-07-10 21:11:23.000000000 +0000
+++ regina-normal-4.93.new/debian/rules	2013-07-10 20:17:16.000000000 +0000
@@ -5,6 +5,8 @@
 
 tmp = debian/tmp
 
+DEB_HOST_MULTIARCH ?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
 INSTALL_DIR = install -p -d -o root -g root -m 755
 INSTALL_FILE = install -p -o root -g root -m 644
 
@@ -27,6 +29,7 @@
 		-DPACKAGE_NAME=regina-normal -DPACKAGING_MODE=1 \
 		$(DEB_CMAKE_CUSTOM_FLAGS) \
 		-DPYTHON_EXECUTABLE=/usr/bin/python${pyver} \
+		-DPYTHON_LIBRARY=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython${pyver}.so
 		-DCMAKE_INSTALL_PREFIX=/usr \
 		-DDISABLE_RPATH=1 \
 		-DCMAKE_MODULE_PATH="/usr/share/apps/cmake/modules"

Reply via email to