Package: libsepol1
Version: 2.0.3-1+b1
Severity: wishlist
Tags: patch
libsepol1 has cross-built successfully in the past but the cross
building support in Debian has been rewritten to stop overriding the CC
variable to $(MAKE) in order to correctly support those packages that
build internal tools with the native compiler during the build.
This means that other packages that assume that CC will be overridden by
the cross-compiling build scripts now fail to build. libsepol1 is one
of those packages.
The patch is simply to set CC to $(DEB_HOST_GNU_TYPE)-gcc only if a
cross-build is detected and I'm attaching a patch for debian/local.mk
that supports this.
(This isn't a mass bug filing, I just found the same issue in two
packages during routine testing of emdebian-tools.)
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libsepol1 depends on:
ii libc6 2.6.1-6 GNU C Library: Shared libraries
libsepol1 recommends no packages.
-- no debconf information
--- libsepol.old/debian/local.mk Thu Oct 25 11:53:17 2007
+++ /opt/emdebian/trunk/l/libsepol/trunk/libsepol-2.0.3/debian/local.mk Thu Oct
25 11:54:13 2007
@@ -46,6 +46,9 @@
CLEAN/sepol-utils::
-rm -rf $(TMPTOP)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
build/libsepol1:
$(checkdir)