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

Bug 223189

Summary: postgresql-base-8.3.1 and postgresql-server-8.3.1 build failure
Product: Gentoo Linux Reporter: Leonid Podolny <leonidp.lists>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, tb
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Leonid Podolny 2008-05-22 10:54:37 UTC
Build log and emerge info attached
Comment 1 Leonid Podolny 2008-05-22 10:55:58 UTC
Created attachment 153923 [details]
build.log

build.log
Comment 2 Leonid Podolny 2008-05-22 10:57:52 UTC
Created attachment 153925 [details]
emerge --info
Comment 3 Jose Quinteiro 2008-05-23 00:45:32 UTC
Change the line that reads

use $u && echo ${u#linguas_}

to

use $u && echo -n "${u#linguas_} "

In /usr/portage/dev-db/postgresql-base/postgresql-base-8.3.1.ebuild
Comment 4 Leonid Podolny 2008-05-23 08:43:24 UTC
(In reply to comment #3)
> 
> use $u && echo ${u#linguas_}
> 
> to
> 
> use $u && echo -n "${u#linguas_} "

It works, great.
Comment 5 Leonid Podolny 2008-05-23 08:47:59 UTC
The very same error and the very same fix applies to 
/usr/portage/dev-db/postgresql-server/postgresql-server-8.3.1.ebuild
Comment 6 Jose Quinteiro 2008-05-23 14:49:38 UTC
This happens because Leonid has two LINGUAS defined that are recognized by the pgsql ebuilds: es and ru.  As written the "echo" line in wanted_languages will add a newline between es and ru.  This newline propagates to the makefile, which winds up with two lines like this:

WANTED_LANGUAGES=es
ru

The bareword language definition at the beginning of a line is what causes make to barf.  The fix suppresses the newline and adds a space between the languages.
Comment 7 Tiziano Müller (RETIRED) gentoo-dev 2008-06-04 21:55:01 UTC
Fixed. Thanks for the report and the analysis!