Source: libieee1284
Version: 0.2.11-12
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libieee1284 fails to cross build from source for a number of reasons.
Foremost is that its python-all-dev build dependency will request a host
architecture python which can neither be installed nor executed. Then
the ./configure invocations are lacking --host flags and finally
stripping with the build architecture strip fails. All of these issues
are fixed by the attached patch. Please consider applying it.

Helmut
diff --minimal -Nru libieee1284-0.2.11/debian/changelog 
libieee1284-0.2.11/debian/changelog
--- libieee1284-0.2.11/debian/changelog 2013-09-01 01:18:30.000000000 +0200
+++ libieee1284-0.2.11/debian/changelog 2016-10-15 21:41:10.000000000 +0200
@@ -1,3 +1,13 @@
+libieee1284 (0.2.11-12.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Fix python Build-Depends
+    + Don't strip with install -s
+    + Let dh_auto_configure pass cross flags
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 15 Oct 2016 21:38:03 +0200
+
 libieee1284 (0.2.11-12) unstable; urgency=low
 
   * New maintainer (closes: #688539).
diff --minimal -Nru libieee1284-0.2.11/debian/control 
libieee1284-0.2.11/debian/control
--- libieee1284-0.2.11/debian/control   2013-09-01 00:52:30.000000000 +0200
+++ libieee1284-0.2.11/debian/control   2016-10-15 21:38:01.000000000 +0200
@@ -2,7 +2,7 @@
 Priority: optional
 Section: libs
 Maintainer: Laszlo Boszormenyi (GCS) <g...@debian.org>
-Build-Depends: debhelper (>= 8.1.3), python-all-dev (>= 2.6.6-3~), 
autotools-dev, dh-autoreconf, automake, chrpath
+Build-Depends: debhelper (>= 8.1.3), python-all-dev:any (>= 2.6.6-3~), 
libpython-all-dev (>= 2.6.6-3~), autotools-dev, dh-autoreconf, automake, chrpath
 Standards-Version: 3.9.4
 Homepage: http://cyberelk.net/tim/software/libieee1284/
 X-Python-Version: >= 2.2
diff --minimal -Nru libieee1284-0.2.11/debian/rules 
libieee1284-0.2.11/debian/rules
--- libieee1284-0.2.11/debian/rules     2013-09-01 01:15:49.000000000 +0200
+++ libieee1284-0.2.11/debian/rules     2016-10-15 22:50:00.000000000 +0200
@@ -15,9 +15,6 @@
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -g
 endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       INSTALL_PROGRAM += -s
-endif
 
 # Available python versions
 PYVERS = $(shell pyversions -v -r debian/control)
@@ -35,19 +32,17 @@
 configure-stamp: $(PYVERS:%=configure-py%-stamp) autotools-stamp
        dh_testdir
        # Add here commands to configure the package.
-       ./configure --without-python --prefix=/usr \
-               --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
-               --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info 
$(shell dpkg-buildflags --export=configure)
+       dh_auto_configure -- --without-python \
+               -libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
+               $(shell dpkg-buildflags --export=configure)
 
        touch configure-stamp
 
 configure-py%-stamp: autotools-stamp
        dh_testdir
 
-       mkdir build-py$*
-
-       cd build-py$* && PYTHON=/usr/bin/python$* ../configure --with-python 
--prefix=/usr \
-               --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info 
$(shell dpkg-buildflags --export=configure)
+       PYTHON=/usr/bin/python$* dh_auto_configure --builddirectory=build-py$* 
-- --with-python \
+               $(shell dpkg-buildflags --export=configure)
 
        touch configure-py$*-stamp
 

Reply via email to