Bug#916164: berkeley-abc FTCBFS: builds for the wrong architecture

Helmut Grohne helmut at subdivi.de
Mon Dec 10 19:17:13 GMT 2018


Source: berkeley-abc
Version: 1.01+20181130git163bba5+dfsg-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

berkeley-abc fails to cross build from source, because it does not pass
cross tools to make. The easiest way of fixing that is using
dh_auto_build. Then it loudly fails, because its arch_flags.c approach
does not work for cross compilation at all. Fortunately, it also
supports using stdint.h and fortunately, glibc's stdint.h works well
here. So setting ABC_USE_STDINT_H can fix that. Please consider applying
the attached patch to make berkeley-abc cross buildable.

Helmut
-------------- next part --------------
diff --minimal -Nru berkeley-abc-1.01+20181130git163bba5+dfsg/debian/changelog berkeley-abc-1.01+20181130git163bba5+dfsg/debian/changelog
--- berkeley-abc-1.01+20181130git163bba5+dfsg/debian/changelog	2018-12-03 21:51:46.000000000 +0100
+++ berkeley-abc-1.01+20181130git163bba5+dfsg/debian/changelog	2018-12-10 16:21:46.000000000 +0100
@@ -1,3 +1,10 @@
+berkeley-abc (1.01+20181130git163bba5+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Use the libc's stdint.h instead of arch_flags.c.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 10 Dec 2018 16:21:46 +0100
+
 berkeley-abc (1.01+20181130git163bba5+dfsg-1) unstable; urgency=medium
 
   * New upstream version
diff --minimal -Nru berkeley-abc-1.01+20181130git163bba5+dfsg/debian/rules berkeley-abc-1.01+20181130git163bba5+dfsg/debian/rules
--- berkeley-abc-1.01+20181130git163bba5+dfsg/debian/rules	2018-12-03 21:51:46.000000000 +0100
+++ berkeley-abc-1.01+20181130git163bba5+dfsg/debian/rules	2018-12-10 16:21:46.000000000 +0100
@@ -15,5 +15,5 @@
 	dh_auto_clean
 
 override_dh_auto_build:
-	make PROG="abc" MSG_PREFIX="ABC: " ABC_MAKE_VERBOSE=1
+	dh_auto_build -- PROG="abc" MSG_PREFIX="ABC: " ABC_MAKE_VERBOSE=1 ABC_USE_STDINT_H=1
 	cp abc berkeley-abc


More information about the debian-science-maintainers mailing list