Source: libhdhomerun
Version: 20170930-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libhdhomerun fails to cross build from source, because it uses the build
architecture strip at build time. Stripping is a bad idea in general,
because it prevents dh_strip from doing its job and generating a useful
-dbgsym package. Thus the attached patch replaces strip with true and
defers that task to debhelper. After doing so, libhdhomerun successfully
cross builds a useful -dbgsym package. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru libhdhomerun-20170930/debian/changelog 
libhdhomerun-20170930/debian/changelog
--- libhdhomerun-20170930/debian/changelog      2017-10-10 20:06:35.000000000 
+0200
+++ libhdhomerun-20170930/debian/changelog      2017-10-23 06:28:34.000000000 
+0200
@@ -1,3 +1,10 @@
+libhdhomerun (20170930-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not strip with the wrong strip at build. (closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 23 Oct 2017 06:28:34 +0200
+
 libhdhomerun (20170930-2) unstable; urgency=medium
 
   * Make libhdhomerun4 "Multi-Arch: same" (closes: #878099).
diff --minimal -Nru libhdhomerun-20170930/debian/rules 
libhdhomerun-20170930/debian/rules
--- libhdhomerun-20170930/debian/rules  2017-10-10 20:06:35.000000000 +0200
+++ libhdhomerun-20170930/debian/rules  2017-10-23 06:28:32.000000000 +0200
@@ -4,6 +4,9 @@
 %:
        dh $@
 
+override_dh_auto_build:
+       dh_auto_build -- STRIP=true
+
 override_dh_install:
        dh_install
        chmod -x $(CURDIR)/debian/libhdhomerun-dev/usr/include/libhdhomerun/*.h

Reply via email to