Source: stymulator
Version: 0.21a~dfsg-3
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

stymulator fails to cross build from source, because it does not pass
cross tools to make. The easiest way of doing so - using dh_auto_build -
makes stymulator cross buildable. I'm attaching a patch for your
convenience.

Helmut
diff --minimal -Nru stymulator-0.21a~dfsg/debian/changelog 
stymulator-0.21a~dfsg/debian/changelog
--- stymulator-0.21a~dfsg/debian/changelog      2022-11-04 00:37:59.000000000 
+0100
+++ stymulator-0.21a~dfsg/debian/changelog      2023-03-07 20:17:06.000000000 
+0100
@@ -1,3 +1,9 @@
+stymulator (0.21a~dfsg-4) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 07 Mar 2023 20:17:06 +0100
+
 stymulator (0.21a~dfsg-3) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru stymulator-0.21a~dfsg/debian/rules 
stymulator-0.21a~dfsg/debian/rules
--- stymulator-0.21a~dfsg/debian/rules  2022-11-04 00:37:59.000000000 +0100
+++ stymulator-0.21a~dfsg/debian/rules  2023-03-07 20:17:04.000000000 +0100
@@ -14,7 +14,7 @@
 build: build-stamp
 build-stamp:
        dh_testdir
-       $(MAKE) CXXFLAGS="$(CXXFLAGS)" CXX="g++" -C src/
+       dh_auto_build -D src -- CXXFLAGS="$(CXXFLAGS)"
        touch $@
 
 clean:

Reply via email to