Source: wmwork
Version: 0.2.6-4
Tags: patch
User: [email protected]
Usertags: ftcbfs

wmwork fails to cross build from source, because debian/rules hard codes
the build architecture strip. I'm attaching a patch to make it use the
host architecture one via dpkg's buildtools.mk for your convenience.

Helmut
diff --minimal -Nru wmwork-0.2.6/debian/changelog wmwork-0.2.6/debian/changelog
--- wmwork-0.2.6/debian/changelog       2020-07-26 12:55:33.000000000 +0200
+++ wmwork-0.2.6/debian/changelog       2023-04-06 12:50:28.000000000 +0200
@@ -1,3 +1,10 @@
+wmwork (0.2.6-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host architecture strip, closes: #-1.
+
+ -- Helmut Grohne <[email protected]>  Thu, 06 Apr 2023 12:50:28 +0200
+
 wmwork (0.2.6-4) unstable; urgency=medium
 
   * source-only upload
diff --minimal -Nru wmwork-0.2.6/debian/rules wmwork-0.2.6/debian/rules
--- wmwork-0.2.6/debian/rules   2015-06-07 18:52:29.000000000 +0200
+++ wmwork-0.2.6/debian/rules   2023-04-06 12:50:27.000000000 +0200
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/buildtools.mk
+
 BUILDDIR = debian/wmwork
 DEBDIR   = $(BUILDDIR)/DEBIAN
 DOCDIR   = $(BUILDDIR)/usr/share/doc/wmwork
@@ -53,7 +55,7 @@
 
        $(MAKE) -C src install DESTDIR=$(CURDIR)/debian/wmwork
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       strip -R .comment -R .note $(BUILDDIR)/usr/bin/wmwork
+       $(STRIP) -R .comment -R .note $(BUILDDIR)/usr/bin/wmwork
 endif
        gzip -9n $(BUILDDIR)/usr/share/man/man1/wmwork.1
        install -D -o root -g root -m 0644 debian/menu 
$(BUILDDIR)/usr/share/menu/wmwork

Reply via email to