Source: android-platform-external-libselinux
Version: 7.0.0+r1-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

android-platform-external-libselinux fails to cross build from source,
because it uses the build architecture compiler. Just indirecting make
through dh_auto_build makes the cross build successful, because
dh_auto_build knows how to pass cross compilers. Please consider
applying the attached patch after stretch is released.

Helmut
diff --minimal -Nru 
android-platform-external-libselinux-7.0.0+r1/debian/changelog 
android-platform-external-libselinux-7.0.0+r1/debian/changelog
--- android-platform-external-libselinux-7.0.0+r1/debian/changelog      
2016-12-06 09:56:35.000000000 +0100
+++ android-platform-external-libselinux-7.0.0+r1/debian/changelog      
2017-06-10 18:14:36.000000000 +0200
@@ -1,3 +1,10 @@
+android-platform-external-libselinux (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 <hel...@subdivi.de>  Sat, 10 Jun 2017 18:14:36 +0200
+
 android-platform-external-libselinux (7.0.0+r1-2) unstable; urgency=medium
 
   * Upload to unstable
diff --minimal -Nru android-platform-external-libselinux-7.0.0+r1/debian/rules 
android-platform-external-libselinux-7.0.0+r1/debian/rules
--- android-platform-external-libselinux-7.0.0+r1/debian/rules  2016-12-06 
09:56:35.000000000 +0100
+++ android-platform-external-libselinux-7.0.0+r1/debian/rules  2017-06-10 
18:14:36.000000000 +0200
@@ -8,7 +8,7 @@
        dh $@
 
 override_dh_auto_build:
-       make -f debian/Makefile
+       dh_auto_build --buildsystem=makefile -- -f debian/Makefile
 
 override_dh_auto_clean:
        dh_auto_clean

Reply via email to