[DSE-Dev] Bug#875559: libsemanage stage1 FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Tue Sep 12 08:15:33 UTC 2017


Source: libsemanage
Version: 2.7-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

libsemanage stage1 fails to cross build from source, because it defaults
to using the build architecture compiler "cc" as a GNU make default.
Exporting a triplet-prefixed CC is sufficient for making stage1 cross
build. Please apply the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru libsemanage-2.7/debian/changelog libsemanage-2.7/debian/changelog
--- libsemanage-2.7/debian/changelog	2017-09-10 01:07:48.000000000 +0200
+++ libsemanage-2.7/debian/changelog	2017-09-12 10:12:54.000000000 +0200
@@ -1,3 +1,10 @@
+libsemanage (2.7-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix stage1 FTCBFS: Export triplet-prefixed CC. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 12 Sep 2017 10:12:54 +0200
+
 libsemanage (2.7-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru libsemanage-2.7/debian/rules libsemanage-2.7/debian/rules
--- libsemanage-2.7/debian/rules	2017-09-10 01:07:48.000000000 +0200
+++ libsemanage-2.7/debian/rules	2017-09-12 10:12:52.000000000 +0200
@@ -1,7 +1,11 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+export CC
 
 ifeq ($(DEB_BUILD_PROFILES),stage1)
 export DH_OPTIONS += -Nruby-semanage -Npython-semanage -Npython3-semanage


More information about the SELinux-devel mailing list