Source: filters
Version: 2.55-2
Severity: normal
Tags: upstream patch
User: helm...@debian.org
Usertags: rebootstrap

filters fails to cross build from source, because it strips at
installation time (via install -s). Since it uses the build architecture
strip, this breaks cross building and it also breaks -dbgsym packages.
After removing -s, filters cross builds successfully. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru filters-2.55/debian/changelog filters-2.55/debian/changelog
--- filters-2.55/debian/changelog       2016-12-08 17:08:58.000000000 +0100
+++ filters-2.55/debian/changelog       2017-08-04 22:16:40.000000000 +0200
@@ -1,3 +1,10 @@
+filters (2.55-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: do not strip during installation. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 04 Aug 2017 22:16:40 +0200
+
 filters (2.55-2) unstable; urgency=medium
 
   * Build-Depend on libfl-dev (Closes: #846423)
diff --minimal -Nru filters-2.55/debian/patches/nostrip.patch 
filters-2.55/debian/patches/nostrip.patch
--- filters-2.55/debian/patches/nostrip.patch   1970-01-01 01:00:00.000000000 
+0100
+++ filters-2.55/debian/patches/nostrip.patch   2017-08-04 22:16:37.000000000 
+0200
@@ -0,0 +1,21 @@
+From: Helmut Grohne <hel...@subdivi.de>
+Subject: defer stripping to dh_strip
+
+Doing otherwise breaks cross building and -dbgsym packages.
+
+Index: filters-2.55/Makefile
+===================================================================
+--- filters-2.55.orig/Makefile
++++ filters-2.55/Makefile
+@@ -9,11 +9,6 @@
+ export CFLAGS
+ INSTALL_PROGRAM = install
+ 
+-# DEB_BUILD_OPTIONS suport, to control binary stripping.
+-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+-INSTALL_PROGRAM += -s
+-endif
+-
+ all:  $(OTHER) $(BUILD)
+ 
+ install:      $(BUILD) $(OTHER)
diff --minimal -Nru filters-2.55/debian/patches/series 
filters-2.55/debian/patches/series
--- filters-2.55/debian/patches/series  1970-01-01 01:00:00.000000000 +0100
+++ filters-2.55/debian/patches/series  2017-08-04 22:15:33.000000000 +0200
@@ -0,0 +1 @@
+nostrip.patch

Reply via email to