Source: dwm
Version: 6.1-4
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

dwm fails to cross build from source, because it does not pass cross
tools to make and thus uses the build architecture compiler. The easiest
way of passing them is letting dh_auto_build do it and then dwm cross
builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru dwm-6.1/debian/changelog dwm-6.1/debian/changelog
--- dwm-6.1/debian/changelog    2017-08-30 12:12:50.000000000 +0200
+++ dwm-6.1/debian/changelog    2018-06-08 22:54:56.000000000 +0200
@@ -1,3 +1,10 @@
+dwm (6.1-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 08 Jun 2018 22:54:56 +0200
+
 dwm (6.1-4) unstable; urgency=medium
 
   * debian/control:
diff --minimal -Nru dwm-6.1/debian/rules dwm-6.1/debian/rules
--- dwm-6.1/debian/rules        2017-08-30 12:12:50.000000000 +0200
+++ dwm-6.1/debian/rules        2018-06-08 22:54:51.000000000 +0200
@@ -22,7 +22,7 @@
        do \
                $(MAKE) clean; \
                cp $${ALTERNATIVE} config.h; \
-               CFLAGS="$(CFLAGS)" $(MAKE) PREFIX=/usr; \
+               CFLAGS="$(CFLAGS)" dh_auto_build -- PREFIX=/usr; \
                install -m 0755 dwm debian/dwm/usr/bin/dwm.`basename 
$${ALTERNATIVE} | cut -d'.' -f 2`; \
                ln -s dwm.1.gz debian/dwm/usr/share/man/man1/dwm.`basename 
$${ALTERNATIVE} | cut -d'.' -f 2`.1.gz; \
        done

Reply via email to