media-libs/alsa-lib fails to build under a LC_COLLATE=et_EE system, as follows: Making all in control make[2]: Entering directory `/var/tmp/portage/media-libs/alsa-lib-1.0.24.1/work/alsa-lib-1.0.24.1/src/control' CC cards.lo /bin/sh ../../libtool --silent --tag=CC --mode=compile mips64el-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -D__mips__ -O2 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop -g -D_GNU_SOURCE -c -o cards.lo cards.c libtool: invalid tag name: --tCC make[2]: *** [cards.lo] Error 1 The problem is that it ships with the libtool files generated with a buggy version (1.5.22), that uses [A-Za-z] and similar regex all over the place, but this doesn't cover the whole alphabet obviously under such a LC_COLLATE, as estonian alphabet does not end with Z - that is a bit before T. It does try to set some locales to "C" for the duration of libtool script running, to ensure that A-Z covers everything, but does it wrong (specifically sets LC_ALL only if unset, as is the case for me, so individual LC_COLLATE setting does not get overridden). Newer versions of libtool do it right by also dealing with LC_COLLATE and so on, instead of just LC_ALL and LANG if set like that ancient 1.5.22 version from year 2005 does. Please fix it by eautoreconf'ing to get a newer libtool used or exporting LC_ALL=C and LANG=C in src_compile(), such as: export LANG=C LC_ALL=C which will force all LC_* variables to C. The chosen workaround becomes unnecessary again once alsa-lib upstream generates tarballs with a more modern libtool than one from 2005...
+*alsa-lib-1.0.25 (26 Jan 2012) + + 26 Jan 2012; Tony Vroon <chainsaw@gentoo.org> + +files/1.0.25-extraneous-cflags.diff, -alsa-lib-1.0.23.ebuild, + +alsa-lib-1.0.25.ebuild: + Version bump. Do a full eautoreconf to avoid failures with et_EE locale, + closes bug #361053 by Mart "leio" Raudsepp. Remove extraneous CFLAGS, closes + bug #378653 by Agostino "ago" Sarubbo. Prevent build failures in the library + and beyond by not allowing individual plugin control, closes bug #379925 by + Myckel Habets. Removed old ebuild.