[Build-common-hackers] Bug#450483: cdbs: Stop setting DEB_CONFIGURE_SCRIPT_ENV in order to enable cross-building
Neil Williams
codehelp at debian.org
Wed Nov 7 14:55:55 UTC 2007
Package: cdbs
Version: 0.4.50
Severity: normal
Tags: patch
The cross building support in Debian has been rewritten and part of the
changes included stopping the tools from overriding the MAKEFLAGS
variable in order to allow CC_FOR_BUILD to identify the correct compiler
to use for internal build tools during a cross compile.
The effect of this in CDBS packages is that DEB_CONFIGURE_SCRIPT_ENV now
prevents cross compilation because it sets CC etc. and the tools no
longer set an override.
Please can DEB_CONFIGURE_SCRIPT_ENV be set to empty in CDBS so that CDBS
packages can be cross-built successfully?
Patch for 1/class/autotools-vars.mk.in attached that unsets
DEB_CONFIGURE_SCRIPT_ENV if cross compiling.
-- 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 cdbs depends on:
ii debhelper 5.0.60 helper programs for debian/rules
Versions of packages cdbs recommends:
ii autotools-dev 20070725.1 Update infrastructure for config.{
-- no debconf information
-------------- next part --------------
--- cdbs.old/1/class/autotools-vars.mk.in 2007-05-18 17:01:14.000000000 +0100
+++ cdbs-0.4.50/1/class/autotools-vars.mk.in 2007-11-07 13:43:03.000000000 +0000
@@ -40,6 +40,7 @@
ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
DEB_CONFIGURE_NORMAL_ARGS += --host=$(DEB_HOST_GNU_TYPE)
+DEB_CONFIGURE_SCRIPT_ENV =
endif
### TODO: Fix the above to also handle 2.13 which needs other tweaks
More information about the Build-common-hackers
mailing list