Source: mathomatic
Version: 16.0.5-3
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

mathomatic 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 mathomatic cross buildable. Please consider applying the attached
patch.

Helmut
diff --minimal -Nru mathomatic-16.0.5/debian/changelog 
mathomatic-16.0.5/debian/changelog
--- mathomatic-16.0.5/debian/changelog  2020-07-27 06:02:41.000000000 +0200
+++ mathomatic-16.0.5/debian/changelog  2020-10-27 15:24:16.000000000 +0100
@@ -1,3 +1,10 @@
+mathomatic (16.0.5-3.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>  Tue, 27 Oct 2020 15:24:16 +0100
+
 mathomatic (16.0.5-3) unstable; urgency=medium
 
   * Build with libedit instead of libeditline (Closes: #966331)
diff --minimal -Nru mathomatic-16.0.5/debian/rules 
mathomatic-16.0.5/debian/rules
--- mathomatic-16.0.5/debian/rules      2020-07-27 06:02:41.000000000 +0200
+++ mathomatic-16.0.5/debian/rules      2020-10-27 15:24:15.000000000 +0100
@@ -9,8 +9,8 @@
        dh $@
 
 override_dh_auto_build:
-       CFLAGS="$(CFLAGS) -DEDITLINE" LDLIBS="-ledit" $(MAKE)
-       $(MAKE) -C primes
+       CFLAGS="$(CFLAGS) -DEDITLINE" LDLIBS="-ledit" dh_auto_build
+       dh_auto_build --sourcedirectory=primes
        $(MAKE) pdf
 
 override_dh_auto_test:

Reply via email to