Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223189 - postgresql-base-8.3.1 and postgresql-server-8.3.1 build failure
Summary: postgresql-base-8.3.1 and postgresql-server-8.3.1 build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-22 10:54 UTC by Leonid Podolny
Modified: 2008-06-04 21:55 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,16.16 KB, text/plain)
2008-05-22 10:55 UTC, Leonid Podolny
Details
emerge --info (emerge.info,4.49 KB, text/plain)
2008-05-22 10:57 UTC, Leonid Podolny
Details

Note You need to log in before you can comment on or make changes to this bug.
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!