Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 322485

Summary: emerge --config postgresql-server does not work with nonstandard locales due to erroneous regex
Product: Gentoo Linux Reporter: Oliver Kleinecke <okleinecke>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Oliver Kleinecke 2010-06-02 15:50:13 UTC
The Regex in the line 
[code]MATCHSTRING="([cC]|[pP][oO][sS][iI][xX]|[a-z][a-z]_[A-Z][A-Z]\.[[:alnum:]_-]+)"[/code] of any newer postgresql-server.ebuild file
does not match locales like e.g. de_DE@euro, although those are valid locales. Therefore, emerge --config fails complaining about locales not being set correctly, although everything`s fine.


Reproducible: Always

Steps to Reproduce:
emerge --config dev-db/postgresql-server with "nontypic" localename, like de_DE@euro set in /etc/env.d/02locale

Actual Results:  
emerge --config dev-db/postgresql-server fails complaining about wrong locale-settings when using valid, but nontypic localenames


The problem is the regex in the postgresql-server.ebuild :
MATCHSTRING="([cC]|[pP][oO][sS][iI][xX]|[a-z][a-z]_[A-Z][A-Z]\.[[:alnum:]_-]+)"
will NOT match untypical localenames. Works fine with typical ones, like en_US.iso...
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2010-06-02 19:57:31 UTC

*** This bug has been marked as a duplicate of bug 322481 ***