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

utalk fails to cross build from source, because it strips with the build
architecture strip during make install. Beyond breaking cross
compilation, this also breaks DEB_BUILD_OPTIONS=nostrip as well as
generation of -dbgsym packages. The best solution is to defer all
stripping to dh_strip and not strip at an earlier time. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru utalk-1.0.2/debian/changelog utalk-1.0.2/debian/changelog
--- utalk-1.0.2/debian/changelog        2021-05-14 15:49:22.000000000 +0200
+++ utalk-1.0.2/debian/changelog        2021-08-01 20:32:18.000000000 +0200
@@ -1,3 +1,10 @@
+utalk (1.0.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not strip during make install. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 01 Aug 2021 20:32:18 +0200
+
 utalk (1.0.2-1) unstable; urgency=low
 
   * New upstream release (closes: #980251)
diff --minimal -Nru utalk-1.0.2/debian/patches/nostrip.patch 
utalk-1.0.2/debian/patches/nostrip.patch
--- utalk-1.0.2/debian/patches/nostrip.patch    1970-01-01 01:00:00.000000000 
+0100
+++ utalk-1.0.2/debian/patches/nostrip.patch    2021-08-01 20:31:38.000000000 
+0200
@@ -0,0 +1,20 @@
+--- utalk-1.0.2.orig/Makefile
++++ utalk-1.0.2/Makefile
+@@ -47,6 +47,8 @@
+ 
+ ROFF = nroff
+ 
++STRIP ?= strip
++
+ all:  utalk
+ 
+ utalk.cat:    utalk.1
+@@ -59,7 +61,7 @@
+       $(CC) $(LDFLAGS) -o stest stest.o $(LIBS) $(EXTRALIBS)
+ 
+ install:      utalk utalk.1
+-      strip utalk
++      $(STRIP) utalk
+       mkdir -p $(BINDIR)
+       mkdir -p $(MANDIR)
+       mkdir -p $(MANDIR)/man1
diff --minimal -Nru utalk-1.0.2/debian/patches/series 
utalk-1.0.2/debian/patches/series
--- utalk-1.0.2/debian/patches/series   2021-05-14 15:49:22.000000000 +0200
+++ utalk-1.0.2/debian/patches/series   2021-08-01 20:31:14.000000000 +0200
@@ -1 +1,2 @@
 fix-utalk-makefile.patch
+nostrip.patch
diff --minimal -Nru utalk-1.0.2/debian/rules utalk-1.0.2/debian/rules
--- utalk-1.0.2/debian/rules    2021-05-14 15:49:22.000000000 +0200
+++ utalk-1.0.2/debian/rules    2021-08-01 20:32:14.000000000 +0200
@@ -20,7 +20,7 @@
 
 
 override_dh_auto_install:
-       dh_auto_install -- prefix=/usr
+       dh_auto_install -- prefix=/usr STRIP=true
 
 %:
        dh $@

Reply via email to