[Android-tools-devel] Bug#852734: android-platform-system-core FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Thu Jan 26 19:54:54 UTC 2017


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

android-platform-system-core fails to cross build from source, because
it uses the build architecture compiler and ultimately fails finding
openssl, which is only requested for the host architecture. Indirecting
the make invocations through dh_auto_build makes cross builds work,
because dh_auto_build knows how to pass cross compilers. Please consider
applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru android-platform-system-core-7.0.0+r1/debian/changelog android-platform-system-core-7.0.0+r1/debian/changelog
--- android-platform-system-core-7.0.0+r1/debian/changelog	2016-12-21 21:45:45.000000000 +0100
+++ android-platform-system-core-7.0.0+r1/debian/changelog	2017-01-26 20:49:58.000000000 +0100
@@ -1,3 +1,10 @@
+android-platform-system-core (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>  Thu, 26 Jan 2017 20:49:58 +0100
+
 android-platform-system-core (1:7.0.0+r1-2) unstable; urgency=medium
 
   * Build tools for working with sparse images
diff --minimal -Nru android-platform-system-core-7.0.0+r1/debian/rules android-platform-system-core-7.0.0+r1/debian/rules
--- android-platform-system-core-7.0.0+r1/debian/rules	2016-12-21 21:45:45.000000000 +0100
+++ android-platform-system-core-7.0.0+r1/debian/rules	2017-01-26 20:49:55.000000000 +0100
@@ -35,40 +35,40 @@
 endif
 
 lib%.so: debian/lib%.mk
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 libadb.so: debian/libadb.mk libcutils.so libbase.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 libbacktrace.so: debian/libbacktrace.mk libcutils.so libbase.so liblog.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 libbase.so: debian/libbase.mk liblog.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 libcutils.so: debian/libcutils.mk liblog.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 libutils.so: debian/libutils.mk liblog.so libcutils.so libbacktrace.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 libziparchive: debian/libziparchive.mk libutils.so liblog.so libbase.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 adb: debian/adb.mk libadb.so libcutils.so libbase.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 fastboot: debian/fastboot.mk libziparchive.so libsparse.so libbase.so libcutils.so libadb.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 simg2img: debian/simg2img.mk libsparse.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 img2simg: debian/img2simg.mk libsparse.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 append2simg: debian/append2simg.mk libsparse.so
-	make -f $<
+	dh_auto_build --buildsystem=makefile -- -f $<
 
 .PHONY: adb fastboot simg2img img2simg append2simg
 


More information about the Android-tools-devel mailing list