Bug#930206: evolver FTCBFS: does not pass cross tools to make

Helmut Grohne helmut at subdivi.de
Sat Jun 8 09:42:41 BST 2019


Source: evolver
Version: 2.70+ds-4
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

evolver fails to cross build from source, because it does not pass cross
tools to make. The easiest way of fixing that - using dh_auto_build -
does not make evolver cross buildable, because it uses help2man.
help2man is tricky to fix, so I'm only submitting a patch for using
dh_auto_build here. Please consider applying it and close this bug when
doing so. At least it makes parallel building just work.

Helmut
-------------- next part --------------
diff --minimal -Nru evolver-2.70+ds/debian/changelog evolver-2.70+ds/debian/changelog
--- evolver-2.70+ds/debian/changelog	2018-12-31 15:06:09.000000000 +0100
+++ evolver-2.70+ds/debian/changelog	2019-06-08 10:36:00.000000000 +0200
@@ -1,3 +1,10 @@
+evolver (2.70+ds-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building: Use dh_auto_build. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 08 Jun 2019 10:36:00 +0200
+
 evolver (2.70+ds-4) unstable; urgency=medium
 
   [ Jelmer Vernooij ]
diff --minimal -Nru evolver-2.70+ds/debian/rules evolver-2.70+ds/debian/rules
--- evolver-2.70+ds/debian/rules	2018-12-31 13:35:29.000000000 +0100
+++ evolver-2.70+ds/debian/rules	2019-06-08 10:36:00.000000000 +0200
@@ -36,12 +36,6 @@
 
 CFLAGS := $(subst -O2,-O3,$(CFLAGS))
 
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-	MAKEFLAGS += -j$(NUMJOBS)
-endif
-
-
 SED_KEY_FLAVOUR_nox = NOX
 SED_KEY_FLAVOUR_ogl = GLUT
 SED_KEY_FPF_d = UNDEFINED
@@ -89,7 +83,7 @@
 	dh_prep -a
 
 override_dh_auto_build-arch:
-	$(foreach ev, $(DEB_VIRT_EVOLVER_LISTOF_VARIANT), $(MAKE) -C _build/$(ev)/src EXEC_SUFFIX=-$(ev) VPATH=../../../src $(NEWLINE) )
+	$(foreach ev, $(DEB_VIRT_EVOLVER_LISTOF_VARIANT), dh_auto_build --builddirectory=_build/$(ev)/src -- EXEC_SUFFIX=-$(ev) VPATH=../../../src $(NEWLINE) )
 
 override_dh_auto_build-indep:
 


More information about the debian-science-maintainers mailing list