Source: cohomcalg
Version: 0.32+ds-1
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source

cohomcalg fails to cross build from source, because it uses the build
architecture linker. One has to pass LD as well.

I also noticed that it fails an arch-only build everywhere, because it
uses pdflatex without a suitable dependency. It seems like it shouldn't
be runing pdflatex during an arch-only build. Failing an arch-only
native build is a release-critical bug.

The attached patch fixes both. Please consider applying it.

Helmut
diff --minimal -Nru cohomcalg-0.32+ds/debian/changelog 
cohomcalg-0.32+ds/debian/changelog
--- cohomcalg-0.32+ds/debian/changelog  2018-01-07 04:06:15.000000000 +0100
+++ cohomcalg-0.32+ds/debian/changelog  2019-05-12 13:32:25.000000000 +0200
@@ -1,3 +1,11 @@
+cohomcalg (0.32+ds-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass C++ compiler as LD. (Closes: #-1)
+  * Fix arch-only FTBFS: don't run pdflatex. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 12 May 2019 13:32:25 +0200
+
 cohomcalg (0.32+ds-1) unstable; urgency=medium
 
   * Initial release (Closes: #850587).
diff --minimal -Nru cohomcalg-0.32+ds/debian/rules 
cohomcalg-0.32+ds/debian/rules
--- cohomcalg-0.32+ds/debian/rules      2018-01-07 04:06:15.000000000 +0100
+++ cohomcalg-0.32+ds/debian/rules      2019-05-12 13:32:25.000000000 +0200
@@ -5,6 +5,9 @@
 %:
        dh $@
 
-override_dh_installdocs:
+override_dh_auto_build:
+       dh_auto_build -- LD='$$(CXX)'
+
+override_dh_installdocs-indep:
        cd manual/latex_source && pdflatex manual
        dh_installdocs

Reply via email to