[Pkg-julia-devel] Bug#912683: openlibm FTCBFS: make install rebuilds for the build architecture

Helmut Grohne helmut at subdivi.de
Fri Nov 2 19:57:51 GMT 2018


Source: openlibm
Version: 0.6.0+dfsg-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

openlibm fails to cross build from source. It successfully builds
(dh_auto_build) and the rebuilds objects with the wrong compiler during
make install. It turns out that dh_auto_install does not pass a cross
compiler along. The Make.inc file derives the ARCH variable from the
compiler and then uses that to construct a build directory. Given the
unexpected change in $(ARCH), those files go missing and it starts
building again (with the wrong compiler). Passing a CC to make install
fixes that. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru openlibm-0.6.0+dfsg/debian/changelog openlibm-0.6.0+dfsg/debian/changelog
--- openlibm-0.6.0+dfsg/debian/changelog	2018-06-21 11:01:29.000000000 +0200
+++ openlibm-0.6.0+dfsg/debian/changelog	2018-11-02 20:48:43.000000000 +0100
@@ -1,3 +1,10 @@
+openlibm (0.6.0+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: make install needs to know CC. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 02 Nov 2018 20:48:43 +0100
+
 openlibm (0.6.0+dfsg-1) unstable; urgency=medium
 
   [ Peter Colberg ]
diff --minimal -Nru openlibm-0.6.0+dfsg/debian/rules openlibm-0.6.0+dfsg/debian/rules
--- openlibm-0.6.0+dfsg/debian/rules	2018-06-21 10:31:16.000000000 +0200
+++ openlibm-0.6.0+dfsg/debian/rules	2018-11-02 20:48:43.000000000 +0100
@@ -1,6 +1,10 @@
 #!/usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
+-include /usr/share/dpkg/buildtools.mk
 
 %:
 	dh $@
+
+override_dh_auto_install:
+	dh_auto_install -- "CC=$(CC)"


More information about the Pkg-julia-devel mailing list