Source: stella
Version: 6.1.2-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

stella fails to cross build from source, because it builds for the build
architecture. It uses a hand-crafted configure script that doesn't
behave like the usual autoconf ones. Still it consumes the standard
--host option. Unfortunately, it does not derive a tool prefix from the
pass host so cross tools need to be passed separately. Please consider
applying the attached to pass both --host and cross tools. After doing
so, stella cross builds successfully.

Helmut
diff --minimal -Nru stella-6.1.2/debian/changelog stella-6.1.2/debian/changelog
--- stella-6.1.2/debian/changelog       2020-05-23 19:36:27.000000000 +0200
+++ stella-6.1.2/debian/changelog       2020-05-28 16:30:22.000000000 +0200
@@ -1,3 +1,10 @@
+stella (6.1.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass both --host and CXX to configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 28 May 2020 16:30:22 +0200
+
 stella (6.1.2-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru stella-6.1.2/debian/rules stella-6.1.2/debian/rules
--- stella-6.1.2/debian/rules   2019-07-16 18:06:28.000000000 +0200
+++ stella-6.1.2/debian/rules   2020-05-28 16:30:22.000000000 +0200
@@ -2,6 +2,10 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+include /usr/share/dpkg/architecture.mk
+DPKG_EXPORT_BUILDTOOLS=1
+-include /usr/share/dpkg/buildtools.mk
+
 %:
        dh $@
 
@@ -11,7 +15,7 @@
        dh_auto_clean
 
 override_dh_auto_configure:
-       ./configure --prefix=/usr
+       ./configure --prefix=/usr $(if $(filter 
$(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)),,--host=$(DEB_HOST_GNU_TYPE))
 
 override_dh_auto_install:
        dh_auto_install

Reply via email to