[Android-tools-devel] Bug#850914: android-platform-frameworks-native FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Wed Jan 11 08:21:00 UTC 2017


Source: android-platform-frameworks-native
Version: 1:7.0.0+r1-2
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

android-platform-frameworks-native fails to cross build from source,
because it uses the build architecture C++ compiler (as a GNU make
builtin). Indirecting the make invocation through dh_auto_build fixes
the problem, because debhelper knows when to supply cross compilers.
Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru android-platform-frameworks-native-7.0.0+r1/debian/changelog android-platform-frameworks-native-7.0.0+r1/debian/changelog
--- android-platform-frameworks-native-7.0.0+r1/debian/changelog	2016-12-06 10:16:45.000000000 +0100
+++ android-platform-frameworks-native-7.0.0+r1/debian/changelog	2017-01-11 09:17:29.000000000 +0100
@@ -1,3 +1,10 @@
+android-platform-frameworks-native (1:7.0.0+r1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 11 Jan 2017 09:17:29 +0100
+
 android-platform-frameworks-native (1:7.0.0+r1-2) unstable; urgency=medium
 
   * Upload to unstable
diff --minimal -Nru android-platform-frameworks-native-7.0.0+r1/debian/rules android-platform-frameworks-native-7.0.0+r1/debian/rules
--- android-platform-frameworks-native-7.0.0+r1/debian/rules	2016-12-06 10:16:20.000000000 +0100
+++ android-platform-frameworks-native-7.0.0+r1/debian/rules	2017-01-11 09:17:29.000000000 +0100
@@ -8,7 +8,7 @@
 export DEB_LDFLAGS_MAINT_APPEND = -fPIC
 
 ifneq ($(filter amd64 i386 armel armhf arm64 mips mipsel mips64el,$(DEB_HOST_ARCH)),)
-  BUILD_COMMANDS = make -f debian/libETC1.mk
+  BUILD_COMMANDS = dh_auto_build --buildsystem=makefile -- -f debian/libETC1.mk
 endif
 
 %:


More information about the Android-tools-devel mailing list