From ea45876d7ba3d4d2b132fd38a2c40834a2385f34 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 10 Jun 2010 22:04:20 +0100 Subject: icu: Fix LD_LIBRARY_PATH corruption causing build failures Signed-off-by: Richard Purdie --- meta/packages/icu/files/noldlibpath.patch | 47 +++++++++++++++++++++++++++++++ meta/packages/icu/icu-3.6.inc | 1 + meta/packages/icu/icu_3.6.bb | 2 +- 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 meta/packages/icu/files/noldlibpath.patch diff --git a/meta/packages/icu/files/noldlibpath.patch b/meta/packages/icu/files/noldlibpath.patch new file mode 100644 index 0000000000..eba3d805d4 --- /dev/null +++ b/meta/packages/icu/files/noldlibpath.patch @@ -0,0 +1,47 @@ +Setting LD_LIBRARY_PATH is a really bad idea when cross compiling. Simplest way +to disable this is to rename the variable as per the patch below, then its +harmless. This is a hack. + +RP 10/6/2010 + +Index: source/config/Makefile.inc.in +=================================================================== +--- source.orig/config/Makefile.inc.in 2010-06-10 21:49:19.000000000 +0100 ++++ source/config/Makefile.inc.in 2010-06-10 21:49:46.000000000 +0100 +@@ -126,7 +126,7 @@ + ################################################################## + # Environment variable to set a runtime search path + # (Overridden when necessary in -mh files) +-LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH ++LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH2 + + # Versioned target for a shared library + FINAL_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION) +Index: source/icudefs.mk.in +=================================================================== +--- source.orig/icudefs.mk.in 2010-06-10 21:51:03.000000000 +0100 ++++ source/icudefs.mk.in 2010-06-10 21:51:09.000000000 +0100 +@@ -150,7 +150,7 @@ + SHLIB.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared + + # Environment variable to set a runtime search path +-LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH ++LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH2 + + # Versioned target for a shared library. + FINAL_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION) +Index: source/tools/genrb/gendtjar.pl +=================================================================== +--- source.orig/tools/genrb/gendtjar.pl 2010-06-10 21:51:36.000000000 +0100 ++++ source/tools/genrb/gendtjar.pl 2010-06-10 21:52:03.000000000 +0100 +@@ -68,8 +68,8 @@ + $icuLibDir = abs_path($icuBinDir."/../lib"); + $path .=":$icuBinDir:$icuLibDir"; + +- $libpath = $ENV{'LD_LIBRARY_PATH'}.":$icuLibDir"; +- $ENV{'LD_LIBRARY_PATH'} = $libpath; ++ $libpath = $ENV{'LD_LIBRARY_PATH2'}.":$icuLibDir"; ++ $ENV{'LD_LIBRARY_PATH2'} = $libpath; + + #print ("##### LD_LIBRARY_PATH = $ENV{'LD_LIBRARY_PATH'}\n"); + diff --git a/meta/packages/icu/icu-3.6.inc b/meta/packages/icu/icu-3.6.inc index 3a186150de..e99fc4a202 100644 --- a/meta/packages/icu/icu-3.6.inc +++ b/meta/packages/icu/icu-3.6.inc @@ -1,6 +1,7 @@ SRC_URI = "ftp://ftp.software.ibm.com/software/globalization/icu/3.6/icu4c-3_6-src.tgz \ file://gccfix.patch;patch=1 \ + file://noldlibpath.patch;patch=1 \ file://use-g++-for-linking.patch;patch=1" LICENSE = "ICU" DEPENDS = "icu-native" diff --git a/meta/packages/icu/icu_3.6.bb b/meta/packages/icu/icu_3.6.bb index 7490dbd6cf..20e7df857d 100644 --- a/meta/packages/icu/icu_3.6.bb +++ b/meta/packages/icu/icu_3.6.bb @@ -1,6 +1,6 @@ require icu-3.6.inc -PR = "r4" +PR = "r5" -- cgit v1.2.3