Bug#958135: dvi2dvi FTCBFS: strips with the build architecture strip
Source: dvi2dvi
Version: 2.0alpha-10
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
dvi2dvi fails to cross build from source, because the upstream Makefile
strips during make install using the build architecture strip via
install -s. Beyond breaking cross compilation, doing so breaks
DEB_BUILD_OPTIONS=nostrip as well as generation of -dbgsym packages.
Please consider applying the attached patch to skip such stripping and
defer it to dh_strip.
Helmut
diff --minimal -Nru dvi2dvi-2.0alpha/debian/changelog dvi2dvi-2.0alpha/debian/changelog
--- dvi2dvi-2.0alpha/debian/changelog 2017-01-14 09:35:54.000000000 +0100
+++ dvi2dvi-2.0alpha/debian/changelog 2020-04-18 21:42:07.000000000 +0200
@@ -1,3 +1,9 @@
+dvi2dvi (2.0alpha-11) UNRELEASED; urgency=medium
+
+ * Fix FTCBFS: Defer stripping to dh_strip. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sat, 18 Apr 2020 21:42:07 +0200
+
dvi2dvi (2.0alpha-10) unstable; urgency=medium
* QA upload
diff --minimal -Nru dvi2dvi-2.0alpha/debian/patches/cross.patch dvi2dvi-2.0alpha/debian/patches/cross.patch
--- dvi2dvi-2.0alpha/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100
+++ dvi2dvi-2.0alpha/debian/patches/cross.patch 2020-04-18 21:41:36.000000000 +0200
@@ -0,0 +1,11 @@
+--- dvi2dvi-2.0alpha.orig/Makefile
++++ dvi2dvi-2.0alpha/Makefile
+@@ -81,7 +81,7 @@
+ install: install-dvi2dvi
+
+ install-dvi2dvi: dvi2dvi
+- install -s -m 755 dvi2dvi ${BINAREA}/dvi2dvi
++ $(INSTALL) -s -m 755 dvi2dvi ${BINAREA}/dvi2dvi
+
+ install-lib:
+ -mkdir ${DVI2LIB}
diff --minimal -Nru dvi2dvi-2.0alpha/debian/patches/series dvi2dvi-2.0alpha/debian/patches/series
--- dvi2dvi-2.0alpha/debian/patches/series 2017-01-14 09:35:54.000000000 +0100
+++ dvi2dvi-2.0alpha/debian/patches/series 2020-04-18 21:41:22.000000000 +0200
@@ -8,3 +8,4 @@
pass-flags-hardening-build.patch
dont-overwrite-prototypes.patch
fix-printf-usage.patch
+cross.patch
diff --minimal -Nru dvi2dvi-2.0alpha/debian/rules dvi2dvi-2.0alpha/debian/rules
--- dvi2dvi-2.0alpha/debian/rules 2017-01-14 09:35:54.000000000 +0100
+++ dvi2dvi-2.0alpha/debian/rules 2020-04-18 21:42:02.000000000 +0200
@@ -13,5 +13,5 @@
override_dh_auto_install:
- dh_auto_install
+ dh_auto_install -- INSTALL='install --strip-program=true'
$(MAKE) install-lib DESTDIR=$(CURDIR)/debian/dvi2dvi
Reply to: