Source: sqlcipher
Version: 3.2.0-2
Tags: patch
User: [email protected]
Usertags: rebootstrap

sqlcipher fails to cross build from source, because it configures for
the build architecture by not passing the relevant --host flag. We can
defer that task to dh_auto_configure and after doing so, sqlcipher cross
builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru sqlcipher-3.2.0/debian/changelog 
sqlcipher-3.2.0/debian/changelog
--- sqlcipher-3.2.0/debian/changelog    2016-12-23 11:00:19.000000000 +0100
+++ sqlcipher-3.2.0/debian/changelog    2017-06-21 21:54:43.000000000 +0200
@@ -1,3 +1,10 @@
+sqlcipher (3.2.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass --host (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 21 Jun 2017 21:54:43 +0200
+
 sqlcipher (3.2.0-2) unstable; urgency=medium
 
   * support building with openssl 1.1 (Closes: #828555)
diff --minimal -Nru sqlcipher-3.2.0/debian/rules sqlcipher-3.2.0/debian/rules
--- sqlcipher-3.2.0/debian/rules        2014-10-17 21:23:48.000000000 +0200
+++ sqlcipher-3.2.0/debian/rules        2017-06-21 21:54:41.000000000 +0200
@@ -32,12 +32,11 @@
        dh_autotools-dev_updateconfig
        dh_autoreconf
        echo CFLAGS = $$CFLAGS
-       ./configure --prefix=/usr --mandir="/usr/share/man" \
+       dh_auto_configure -- \
          $(confflags) --enable-threadsafe \
          --enable-load-extension \
          --enable-tempstore \
          --disable-tcl \
-         --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
          --libexecdir=\$${libdir}/sqlcipher \
          $(DDEBUG)
 

Reply via email to