Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338604 - app-text/opensp-1.5.2-r2 fails under et_EE locale
Summary: app-text/opensp-1.5.2-r2 fails under et_EE locale
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo SGML project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-24 21:19 UTC by Mart Raudsepp
Modified: 2012-09-10 03:08 UTC (History)
0 users

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


Attachments
/var/tmp/portage/app-text/opensp-1.5.2-r2/temp/build.log (build.log,19.17 KB, text/plain)
2010-09-24 21:21 UTC, Mart Raudsepp
Details
opensp.emerge.info (opensp.emerge.info,3.40 KB, text/plain)
2010-09-24 21:24 UTC, Mart Raudsepp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mart Raudsepp gentoo-dev 2010-09-24 21:19:07 UTC
app-text/opensp fails to build under a LC_COLLATE=et_EE system, as follows:

make  all-am
make[3]: Entering directory `/var/tmp/portage/app-text/opensp-1.5.2-r2/work/OpenSP-1.5.2/lib'
/bin/sh ../libtool --tag=CXX --mode=compile mips64el-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../generic    -O2 -march=loongson2f -mabi=n32 -pipe -mplt -c -o Allocator.lo Allocator.cxx
libtool: invalid tag name: --tCXX
make[3]: *** [Allocator.lo] Error 1


The problem is that it ships with the libtool files generated with a buggy version (1.5.18), 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.18 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.
Comment 1 Mart Raudsepp gentoo-dev 2010-09-24 21:21:28 UTC
Created attachment 248556 [details]
/var/tmp/portage/app-text/opensp-1.5.2-r2/temp/build.log

Full build log
Comment 2 Mart Raudsepp gentoo-dev 2010-09-24 21:24:43 UTC
Created attachment 248558 [details]
opensp.emerge.info

emerge --info app-text/opensp
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2012-03-24 08:40:37 UTC
for starters the EE locale ie superseded.  It is now el or et or something.

The problem is that it ships with the libtool files generated with a buggy version (1.5.18)

History

archtester xml2doc # eix libtool
[I] sys-devel/libtool
     Available versions:  
	(1.3)	1.3.5
	(1.5)	**1.5.26 (~)1.5.26-r1
	(2)	2.2.10 2.4-r1 (~)2.4-r4 (~)2.4.2 **9999
	{static-libs test vanilla}
     Installed versions:  2.4.2(2)(17:59:00 08/02/12)(-static-libs -test -vanilla)

It's only been 2 1/2 years.  Try again
Comment 4 Mart Raudsepp gentoo-dev 2012-03-25 08:46:49 UTC
(In reply to comment #3)
> for starters the EE locale ie superseded.  It is now el or et or something.

Just for the record, my national language of Estonian (with the LINGUAS code of et_EE) has not been superseded by greek or ethopian yet.
Would be nice if eautoreconf or something at least would be called here if there's no newer release yet that uses a less broken libtool in tarball.
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2012-03-25 20:33:03 UTC
ohh, eeer hmmmm.  So much for that going unnoticed.  them's the breaks.
I tackled an odd java eclass bug that required the Estonian locale, and from memory what was EE became ET.  hmm et_EE, a bit of both.
An Estonian national and a gentoo dev.  I really know how to pick 'em!!
Comment 6 Mike Gilbert gentoo-dev 2012-03-25 20:42:06 UTC
I'm not actually able to reproduce this.

I have added et_EE ISO-8859-1 to /etc/locale.gen and ran locale-gen. I then did LC_ALL=et_EE emerge app-text/opensp. Everything worked fine.

Do you still have this problem yourself?