Package: libselinux1
Version: 2.0.15-2+b1
Severity: wishlist
Tags: patch

libselinux1 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. libselinux1 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.

-- 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 libselinux1 depends on:
ii  libc6                         2.6.1-6    GNU C Library: Shared libraries
ii  libsepol1                     2.0.3-1+b1 Security Enhanced Linux policy lib

libselinux1 recommends no packages.

-- no debconf information
--- libselinux.old/debian/local.mk      Thu Oct 25 10:40:12 2007
+++ /opt/emdebian/trunk/l/libselinux/trunk/libselinux-2.0.15/debian/local.mk    
Thu Oct 25 11:26:23 2007
@@ -51,6 +51,9 @@
 CLEAN/selinux-utils::
        test ! -d $(TMPTOP) || rm -rf $(TMPTOP)
 
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
 
 build/libselinux1:
        $(checkdir)

Reply via email to