Bug#865656: spooles FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Fri Jun 23 14:17:39 UTC 2017


Source: spooles
Version: 2.2-12
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

spooles fails to cross build from source, because it uses the build
architecture compiler, which is make's default. Running make through
dh_auto_build mostly fixes this, since dh_auto_build supplies a suitable
CC= assignment for cross compilation. There is still one place that
invokes gcc directly and after fixing that, spooles cross builds
successfully. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru spooles-2.2/debian/changelog spooles-2.2/debian/changelog
--- spooles-2.2/debian/changelog	2016-02-23 15:49:03.000000000 +0100
+++ spooles-2.2/debian/changelog	2017-06-21 20:14:39.000000000 +0200
@@ -1,3 +1,12 @@
+spooles (2.2-12.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross compilers.
+    + Add cross.patch.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 21 Jun 2017 20:14:39 +0200
+
 spooles (2.2-12) unstable; urgency=medium
 
   [ Martin Pitt ]
diff --minimal -Nru spooles-2.2/debian/patches/cross.patch spooles-2.2/debian/patches/cross.patch
--- spooles-2.2/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ spooles-2.2/debian/patches/cross.patch	2017-06-21 20:14:39.000000000 +0200
@@ -0,0 +1,16 @@
+From: Helmut Grohne <helmut at subdivi.de>
+Subject: allow substituting gcc for a cross compiler
+
+Index: spooles-2.2/makefile
+===================================================================
+--- spooles-2.2.orig/makefile
++++ spooles-2.2/makefile
+@@ -125,7 +125,7 @@
+ 	cd misc             ; make lib
+ 	cd MPI              ; make lib
+ 	cd MT               ; make lib
+-	gcc -shared */*/*.lo -Wl,-soname,libspooles.so.2.2 -o libspooles.so.2.2 -lmpi -lpthread -lm
++	$(CC) -shared */*/*.lo -Wl,-soname,libspooles.so.2.2 -o libspooles.so.2.2 -lmpi -lpthread -lm
+ 	ln -s libspooles.so.2.2 libspooles.so
+ 
+ global :
diff --minimal -Nru spooles-2.2/debian/patches/series spooles-2.2/debian/patches/series
--- spooles-2.2/debian/patches/series	2014-05-17 16:53:28.000000000 +0200
+++ spooles-2.2/debian/patches/series	2017-06-21 20:14:39.000000000 +0200
@@ -7,3 +7,4 @@
 set_CFLAGS_from_ENV.patch
 fix_format_not_a_string.patch
 fix_FTBFS_timings.patch
+cross.patch
diff --minimal -Nru spooles-2.2/debian/rules spooles-2.2/debian/rules
--- spooles-2.2/debian/rules	2016-02-23 15:45:42.000000000 +0100
+++ spooles-2.2/debian/rules	2017-06-21 20:14:37.000000000 +0200
@@ -3,7 +3,7 @@
 	dh $@ --parallel
 
 override_dh_auto_build-arch:
-	make lib
+	dh_auto_build -- lib
 
 override_dh_auto_build-indep:
 	for texdocdir in AllInOne FrontTrees ReferenceManual; do \


More information about the debian-science-maintainers mailing list