Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361053 - media-libs/alsa-lib-1.0.24.1 fails under et_EE locale
Summary: media-libs/alsa-lib-1.0.24.1 fails under et_EE locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 08:19 UTC by Mart Raudsepp
Modified: 2012-01-26 11:49 UTC (History)
0 users

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 Mart Raudsepp gentoo-dev 2011-03-29 08:19:13 UTC
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...
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2012-01-26 11:49:11 UTC
+*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.