Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260127 - dev-libs/icu breaks deps with LC_ALL=et_EE
Summary: dev-libs/icu breaks deps with LC_ALL=et_EE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis (RETIRED)
URL: https://bugs.icu-project.org/trac/tic...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-24 13:36 UTC by Ahti
Modified: 2010-07-02 22:46 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahti 2009-02-24 13:36:31 UTC
emerge -avu webkit-gtk fails

[ebuild     U ] net-libs/webkit-gtk-0_p40220 [0_p36403] USE="-coverage -debug -gstreamer* -pango -soup -sqlite -svg -xslt" 0 kB


Reproducible: Always

Steps to Reproduce:
1.emerge -avu webkit-gtk


Actual Results:  
bCore.lax/libWebCoreJS.a/JSMediaList.o .libs/libWebCore.lax/libWebCoreJS.a/JSCounter.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSVariablesRule.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSVariablesDeclaration.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSValueList.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSValue.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSStyleSheet.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSStyleRule.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSStyleDeclaration.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSRuleList.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSRule.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSPrimitiveValue.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSPageRule.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSMediaRule.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSImportRule.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSFontFaceRule.o .libs/libWebCore.lax/libWebCoreJS.a/JSCSSCharsetRule.o 
libtool: link: i686-pc-linux-gnu-ranlib .libs/libWebCore.a
libtool: link: rm -fr .libs/libWebCore.lax
libtool: link: ( cd ".libs" && rm -f "libWebCore.la" && ln -s "../libWebCore.la" "libWebCore.la" )
make[1]: Leaving directory `/var/tmp/portage/net-libs/webkit-gtk-0_p40220/work/WebKit-r40220'
make: *** [all] Error 2
 * 
 * ERROR: net-libs/webkit-gtk-0_p40220 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2570:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-0_p40220/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-0_p40220/temp/environment'.
 * 

>>> Failed to emerge net-libs/webkit-gtk-0_p40220, Log file:

>>>  '/var/tmp/portage/net-libs/webkit-gtk-0_p40220/temp/build.log'



emerge --info
Portage 2.2_rc23 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo i686)
=================================================================
System uname: Linux-2.6.28-gentoo-i686-Intel-R-_Celeron-R-_M_processor_1.40GHz-with-glibc2.0
Timestamp of tree: Sun, 22 Feb 2009 06:10:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.7
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="et_EE.UTF-8"
LC_ALL="et_EE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="et"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apm berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt curl dbus dri dvd dvdr dvdread eds emboss encode epiphany esd evo exif fam firefox fortran fuse gedit gif gnome gnome-keyring gpm gstreamer gtk gtk2 gvfs hal iconv isdnlog jpeg ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap nautilus ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="et" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ahti 2009-02-24 13:43:02 UTC
Topmost build error:

/var/tmp/portage/net-libs/webkit-gtk-0_p40220/work/WebKit-r40220/JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp:120: undefined reference to `ucol_open_3_8'
/var/tmp/portage/net-libs/webkit-gtk-0_p40220/work/WebKit-r40220/JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp:123: undefined reference to `ucol_open_3_8'
/var/tmp/portage/net-libs/webkit-gtk-0_p40220/work/WebKit-r40220/JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp:127: undefined reference to `ucol_setAttribute_3_8'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-CollatorICU.o): In function `WTF::Collator::collate(unsigned short const*, unsigned int, unsigned short const*, unsigned int) const':
/var/tmp/portage/net-libs/webkit-gtk-0_p40220/work/WebKit-r40220/JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp:92: undefined reference to `ucol_strcoll_3_8'
collect2: ld returned 1 exit status
make[1]: *** [Programs/jsc] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: link: (cd .libs/libWebCore.lax/libJavaScriptCore.a && i686-pc-linux-gnu-ar x "/var/tmp/portage/net-libs/webkit-gtk-0_p40220/work/WebKit-r40220/./.libs/libJavaScriptCore.a")
libtool: link: (cd .libs/libWebCore.lax/libWebCoreJS.a && i686-pc-linux-gnu-ar x "/var/tmp/portage/net-libs/webkit-gtk-0_p40220/work/WebKit-r40220/./.libs/libWebCoreJS.a")
libtool: link: i686-pc-linux-gnu-ar cru .libs/libWebCore.a WebCore/bindings/js/.libs/libWebCore_la-DOMTimer.o WebCore/bindings/js/.libs/libWebCore_la-GCController.o WebCore/bindings/js/.libs/libWebCore_la-JSAttrCustom.o WebCore/bindings/js/.libs/libWebCore_la-JSCDATASectionCustom.o WebCore/bindings/js/.libs/libWebCore_la-JSCSSRuleCustom.o WebCore/bindings/js/.libs/libWebCore_la-JSCSSStyleDeclarationCustom.o WebCore/bindings/js/.libs/libWebCore_la-JSCSSValueCustom.o WebCore/bindings/js/.libs/libWebCore_la-JSCanvasRenderingContext2DCustom.o WebCore/bindings/js/.libs/libWebCore_la-JSClipboardCustom.o WebCore/bindings/js/.libs/libWebCore_la-JSConsoleCustom.o WebCore/bindings/js/.libs/libWebCore_la-JSCustomPositionCallback.o WebCore/bindings/js/.libs/libWebCore_la-JSCustomPositionErrorCallback.o WebCore/bindings
Comment 2 Ahti 2009-02-25 17:44:46 UTC
After i emerged dev-libs/icu with LC_ALL=C net-libs/webkit-gtk emerged fine also with LC_ALL=C. So problem is with et_EE locale.
Comment 3 Christian Hoffmann (RETIRED) gentoo-dev 2009-04-09 10:18:48 UTC
Please retry if this is still the case with icu-4.0.1.

Reassigning to the new maintainer. :)
Comment 4 Magnus Kessler 2009-04-22 07:08:06 UTC
(In reply to comment #3)
> Please retry if this is still the case with icu-4.0.1.

The issue is still present in icu-4.0.1. I have the en_GB locale set and icu only compiles after setting LC_ALL=C on x86. Interestingly the compilation seems to work with other locales on amd64.
Comment 5 Priit Laes (IRC: plaes) 2009-05-14 08:58:07 UTC
After some investigation I believe the culprit is actually "LANG=et_EE.UTF-8", as this is the only locale related variable that's present when using sudo for calling emerge.

And the resulting error (which breaks webkit) is following:

plaes@chi ~ $ icu-config --cc
/usr/bin/icu-config: line 50: prefix: käsku ei ole
/usr/bin/icu-config: line 51: exec_prefix: käsku ei ole
/usr/bin/icu-config: line 53: libexecdir: käsku ei ole
/usr/bin/icu-config: line 55: datarootdir: käsku ei ole
/usr/bin/icu-config: line 56: datadir: käsku ei ole
/usr/bin/icu-config: line 60: VERSION: käsku ei ole
/usr/bin/icu-config: line 61: UNICODE_VERSION: käsku ei ole
/usr/bin/icu-config: line 64: ICUPREFIX: käsku ei ole
/usr/bin/icu-config: line 66: LIBICU: käsku ei ole
/usr/bin/icu-config: line 69: STATIC_PREFIX: käsku ei ole
/usr/bin/icu-config: line 70: LIBSICU: käsku ei ole
/usr/bin/icu-config: line 74: ICULIBSUFFIX: käsku ei ole
/usr/bin/icu-config: line 82: ENABLE_RPATH: käsku ei ole
/usr/bin/icu-config: line 83: RPATHLDFLAGS: käsku ei ole
/usr/bin/icu-config: Unknown --enable-rpath value


After diffing the tarball between builds without et_EE (su - root ; emerge) and with (sudo emerge), I found that some of the " characters which were used for defining variables were stripped from icu-config (and thus breaking it..):


[snip]
diff -urN root/usr/bin/icu-config sudo/usr/bin/icu-config
--- root/usr/bin/icu-config	2009-05-14 11:37:34.000000000 +0300
+++ sudo/usr/bin/icu-config	2009-05-14 11:43:39.000000000 +0300
@@ -47,32 +47,31 @@
 # etc.  If ICU is not installed in this directory, you must change the
 # following line.  There should exist ${prefix}/include/unicode/utypes.h
 # for example.
-default_prefix="/usr"
-if [ "x${prefix}" = "x" ]; then prefix="$default_prefix"; fi
-exec_prefix="${prefix}"
+prefix = /usr
+exec_prefix = ${prefix}
 libdir="/usr/lib64"
-libexecdir="${exec_prefix}/libexec"
+libexecdir = ${exec_prefix}/libexec
 bindir="${exec_prefix}/bin"
...
[/snip]

I am not including the whole patch because it is a bit big...
Comment 6 Priit Laes (IRC: plaes) 2009-05-14 17:40:50 UTC
Submitted upstream - http://bugs.icu-project.org/trac/ticket/6934
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-02 22:46:18 UTC
Fixed in dev-libs/icu-4.4.1.