Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406529 - dev-libs/nspr-4.9 fails under et_EE locale
Summary: dev-libs/nspr-4.9 fails under et_EE locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 07:44 UTC by Priit Laes (IRC: plaes)
Modified: 2012-03-30 13:33 UTC (History)
0 users

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


Attachments
Use C locale when building (nspr-nss-locale-C.patch,942 bytes, patch)
2012-03-04 04:30 UTC, Jory A. Pratt
Details | Diff
Force C locae during econf (nspr-4.9-locale.patch,815 bytes, patch)
2012-03-30 13:27 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2012-03-02 07:44:50 UTC
dev-libs/nspr-4.9 (and also dev-libs/nss) fail to configure when system is using et_EE locale:

[snip]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9 ...
 * econf: updating nspr-4.9/mozilla/nsprpub/build/autoconf/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nspr-4.9/mozilla/nsprpub/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub
../mozilla/nsprpub/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debug --enable-optimize --libdir=/usr/lib
configure: error: debug: invalid feature name
[/snip]

The reason is that autotools that were used to generate the tarball were too old, so please go and smack the upstream guy who generates them, because I'm getting tired of reporting this issue every time one of the mozilla-related packages (nspr, nss, xulrunner...) is bumped.
Comment 1 Jory A. Pratt gentoo-dev 2012-03-04 04:30:32 UTC
Created attachment 304177 [details, diff]
Use C locale when building

Please give it a spin should be fine but feedback is always best.
Comment 2 Priit Laes (IRC: plaes) 2012-03-04 18:20:39 UTC
(In reply to comment #1)
> Created attachment 304177 [details, diff] [details, diff]
> Use C locale when building
> 
> Please give it a spin should be fine but feedback is always best.

Doesn't work.

Easier would be forcing it when calling `econf` in `src_configure()`:


LC_ALL=C ECONF_SOURCE="../mozilla/nsprpub" econf ...
Comment 3 step 2012-03-30 10:47:11 UTC
I can confirm, dev-libs/nspr-4.9 also fails to compile  with LANG=et_EE.UTF-8

Easy workaround is:
open new terminal instance:
Type:  
$ LANG= 
$ emerge dev-libs/nspr
Comment 4 Jory A. Pratt gentoo-dev 2012-03-30 13:27:36 UTC
Created attachment 307183 [details, diff]
Force C locae during econf
Comment 5 Jory A. Pratt gentoo-dev 2012-03-30 13:33:29 UTC
Feel free to reopen if after you sync in a few hours it is still broken.