Source: elog
Version: 3.1.3-1-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

elog fails to cross build from source. It does not pass cross tools to
make and thus builds for the build architecture. The easiest way of
fixing that - using dh_auto_build - does not entirely make the cross
build work. make install attempts to strip with the build architecture
strip via install -s. Doing so also breaks generation of -dbgsym
packages as well as DEB_BUILD_OPTIONS=nostrip. It is best to defer all
stripping to dh_strip. The attached patch fixes all mentioned problems.
Please consider applying it.

Helmut
diff --minimal -Nru elog-3.1.3-1/debian/changelog elog-3.1.3-1/debian/changelog
--- elog-3.1.3-1/debian/changelog       2017-06-11 22:04:06.000000000 +0200
+++ elog-3.1.3-1/debian/changelog       2020-09-07 20:12:16.000000000 +0200
@@ -1,3 +1,12 @@
+elog (3.1.3-1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Don't strip during make install.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 07 Sep 2020 20:12:16 +0200
+
 elog (3.1.3-1-1) unstable; urgency=medium
 
   * new upstream version grabbed
diff --minimal -Nru elog-3.1.3-1/debian/rules elog-3.1.3-1/debian/rules
--- elog-3.1.3-1/debian/rules   2017-06-11 22:02:38.000000000 +0200
+++ elog-3.1.3-1/debian/rules   2020-09-07 20:12:16.000000000 +0200
@@ -53,7 +53,7 @@
 build-stamp:
        dh_testdir
        # Compile with the standard crypt support.
-       cd $(SRCDIR); $(MAKE) CFLAGS='$(CFLAGS)' LIBS='$(LIBS)'
+       dh_auto_build --sourcedirectory=$(SRCDIR) -- CFLAGS='$(CFLAGS)' 
LIBS='$(LIBS)'
        touch build-stamp
 
 clean:
@@ -67,7 +67,7 @@
        dh_testroot
        dh_prep
        dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/elog install
+       $(MAKE) DESTDIR=$(CURDIR)/debian/elog INSTALL='install 
--strip-program=true' install
 
 # Build architecture-independent files here.
 binary-indep: install

Reply via email to