Source: wmweather
Version: 2.4.6-2
Tags: patch
User: [email protected]
Usertags: rebootstrap

wmweather fails to cross build from source, because it uses the build
architecture strip for stripping host architecture objects. After adding
a host architecture prefix to strip, it cross builds successfully.
Please consider applying the attached patch.

Helmut
diff --minimal -Nru wmweather-2.4.6/debian/changelog 
wmweather-2.4.6/debian/changelog
--- wmweather-2.4.6/debian/changelog    2016-08-07 19:53:00.000000000 +0200
+++ wmweather-2.4.6/debian/changelog    2017-08-03 22:09:46.000000000 +0200
@@ -1,3 +1,10 @@
+wmweather (2.4.6-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use a triplet-prefixed strip, closes: #-1.
+
+ -- Helmut Grohne <[email protected]>  Thu, 03 Aug 2017 22:09:46 +0200
+
 wmweather (2.4.6-2) unstable; urgency=low
 
   * Made build reproducible, closes: 828855. Thanks to Reiner Herrmann.
diff --minimal -Nru wmweather-2.4.6/debian/rules wmweather-2.4.6/debian/rules
--- wmweather-2.4.6/debian/rules        2016-08-07 19:52:12.000000000 +0200
+++ wmweather-2.4.6/debian/rules        2017-08-03 22:09:44.000000000 +0200
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
 testdir  = test -f src/wmweather.c && test -f debian/rules
 testroot = test x`whoami` = xroot
 
@@ -44,7 +46,7 @@
 
        $(MAKE) -C src install DESTDIR=$(CURDIR)/debian/wmweather
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       strip -R .comment -R .note debian/wmweather/usr/bin/wmweather
+       $(DEB_HOST_GNU_TYPE)-strip -R .comment -R .note 
debian/wmweather/usr/bin/wmweather
 endif
        gzip -9n debian/wmweather/usr/share/man/man1/wmweather.1
        rm -f debian/wmweather/usr/share/man/man1/wmWeather.1

Reply via email to