Source: openuniverse
Version: 1.0beta3.1+dfsg-6
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

openuniverse fails to cross build from source, because it uses the build
architecture compiler and thus fails finding libfl.a at configure time.
For such an ancient ./configure, compilers should be passed via
environment variables. After exporting suitable CC and CXX, it cross
builds successfully. Please consider applying the attached patch.

I also note that the packaging would be less confusing, if it were only
configuring once and if it were running ./configure in the
override_dh_auto_configure target.

Helmut
diff -u openuniverse-1.0beta3.1+dfsg/debian/changelog 
openuniverse-1.0beta3.1+dfsg/debian/changelog
--- openuniverse-1.0beta3.1+dfsg/debian/changelog
+++ openuniverse-1.0beta3.1+dfsg/debian/changelog
@@ -1,3 +1,10 @@
+openuniverse (1.0beta3.1+dfsg-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export triplet-prefixed CC and CXX. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 06 Aug 2017 22:15:48 +0200
+
 openuniverse (1.0beta3.1+dfsg-6) unstable; urgency=high
 
   * debian/openuniverse.links: Fix symbolic link definition that prevent the
diff -u openuniverse-1.0beta3.1+dfsg/debian/rules 
openuniverse-1.0beta3.1+dfsg/debian/rules
--- openuniverse-1.0beta3.1+dfsg/debian/rules
+++ openuniverse-1.0beta3.1+dfsg/debian/rules
@@ -9,6 +9,15 @@
 # Uncomment this to turn on verbose mode. 
 # export DH_VERBOSE=1
 
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+ifeq ($(origin CXX),default)
+CXX := $(DEB_HOST_GNU_TYPE)-g++
+endif
+export CC CXX
+
 
 %:
        dh $@

Reply via email to