Source: libretro-mupen64plus
Version: 2.0+git20160207+dfsg2-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libretro-mupen64plus fails to cross build from source, because it uses a
uname based architecture detection and thus tries to use a -msse flag
when being built on amd64. Please always pass the relevant platform and
ARCH variables to make to avoid the detection entirely and thus making
the build more predictable. The attached patch implements that for your
convenience.

Helmut
diff --minimal -Nru libretro-mupen64plus-2.0+git20160207+dfsg2/debian/changelog 
libretro-mupen64plus-2.0+git20160207+dfsg2/debian/changelog
--- libretro-mupen64plus-2.0+git20160207+dfsg2/debian/changelog 2016-06-13 
04:10:06.000000000 +0200
+++ libretro-mupen64plus-2.0+git20160207+dfsg2/debian/changelog 2020-01-26 
07:05:21.000000000 +0100
@@ -1,3 +1,11 @@
+libretro-mupen64plus (2.0+git20160207+dfsg2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS from amd64: Always pass platform and ARCH to make. (Closes:
+    #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 26 Jan 2020 07:05:21 +0100
+
 libretro-mupen64plus (2.0+git20160207+dfsg2-1) unstable; urgency=low
 
   * Removed compiled libs from gliden64
diff --minimal -Nru libretro-mupen64plus-2.0+git20160207+dfsg2/debian/rules 
libretro-mupen64plus-2.0+git20160207+dfsg2/debian/rules
--- libretro-mupen64plus-2.0+git20160207+dfsg2/debian/rules     2016-06-13 
03:37:24.000000000 +0200
+++ libretro-mupen64plus-2.0+git20160207+dfsg2/debian/rules     2020-01-26 
07:05:19.000000000 +0100
@@ -6,17 +6,19 @@
 export DEB_CXXFLAGS_MAINT_STRIP=-O2
 export DEB_CFLAGS_MAINT_STRIP=-O2
 
-ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+include /usr/share/dpkg/architecture.mk
 
-ifeq ($(ARCH),armhf)
-       PLATFORM=platform="armv gles neon hardfloat"
+ifeq ($(DEB_HOST_ARCH),armhf)
+       platform=armv gles neon hardfloat
+else
+       platform=unix
 endif
 
 %:
        dh $@ --parallel
 
 override_dh_auto_build:
-       dh_auto_build -- $(PLATFORM)
+       dh_auto_build -- 'platform=$(platform)' ARCH=$(DEB_HOST_GNU_CPU)
 
 override_dh_installdocs:
        dh_installdocs

Reply via email to