Source: libmsv
Version: 1.1.1-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libmsv fails to cross build from source, because it does not pass --host
to ./configure. It actually computes the right flags in $(CONFARGS) and
then fails to use them. It also uses the build architecture strip. It
actually computes the right strip in $(STRIP) and then fails to use it.
The attached patch fixes that and makes libmsv cross buildable. Please
consider applying it.

Helmut
diff --minimal -Nru libmsv-1.1.1/debian/changelog libmsv-1.1.1/debian/changelog
--- libmsv-1.1.1/debian/changelog       2018-02-04 15:27:07.000000000 +0100
+++ libmsv-1.1.1/debian/changelog       2019-02-24 14:25:10.000000000 +0100
@@ -1,3 +1,10 @@
+libmsv (1.1.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use $(CONFARGS) and $(STRIP). (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 24 Feb 2019 14:25:10 +0100
+
 libmsv (1.1.1-2) unstable; urgency=medium
 
   * Build-depend on file.  closes: #889521
diff --minimal -Nru libmsv-1.1.1/debian/rules libmsv-1.1.1/debian/rules
--- libmsv-1.1.1/debian/rules   2018-02-03 21:20:23.000000000 +0100
+++ libmsv-1.1.1/debian/rules   2019-02-24 14:25:10.000000000 +0100
@@ -28,7 +28,7 @@
 build-indep: build-arch
 build-arch: stamp-build
 stamp-build: configure
-       ./configure --prefix=/usr CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" 
LDFLAGS="$(LDFLAGS)"
+       ./configure $(CONFARGS) --prefix=/usr CFLAGS="$(CFLAGS)" 
CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
        $(MAKE)
        doxygen libmsvdox.cfg
        touch $@
@@ -71,7 +71,7 @@
        gzip -9fn debian/$(devpkg)/usr/share/doc/$(devpkg)/changelog.Debian
 
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       strip debian/$(package)/usr/lib/*.so.*
+       $(STRIP) debian/$(package)/usr/lib/*.so.*
 endif
        $(INSTALL_SCRIPT) debian/$(package).postinst 
debian/$(package)/DEBIAN/postinst
        cd debian/$(package) && find * -type f ! -regex '^DEBIAN/.*' -print0 | 
LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums

Reply via email to