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

Bug 377195

Summary: PostgreSQL 9.0.4 ebuilds install files in ${ROOT}/${ROOT}/...
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matt Whitlock 2011-07-31 18:17:50 UTC
Installing dev-db/postgresql-base-9.0.4-r2 and dev-db/postgresql-server-9.0.4-r1 with ROOT causes files to be installed into paths within ${ROOT} that themselves contain ${ROOT}.

# ROOT=/mnt/trunk equery list postgresql
[ Searching for package 'postgresql' in all categories among: ]
 * installed packages
[I--] [  ] app-admin/eselect-postgresql-1.0.10 (0)
[I--] [  ] dev-db/postgresql-base-9.0.4-r2 (9.0)
[I--] [  ] dev-db/postgresql-server-9.0.4-r1 (9.0)

# ROOT=/mnt/trunk qlist postgresql-base | egrep -c '^/mnt/trunk'
533
# ROOT=/mnt/trunk qlist postgresql-base | egrep -cv '^/mnt/trunk'
173

# ROOT=/mnt/trunk qlist postgresql-server | egrep -c '^/mnt/trunk'
194
# ROOT=/mnt/trunk qlist postgresql-server | egrep -cv '^/mnt/trunk'
16

# cat /mnt/trunk/etc/env.d/50postgresql 
# Configuration file for eselect
# This file has been automatically generated.
LDPATH="/mnt/trunk/usr/lib/postgresql:/mnt/trunk/usr/lib64/postgresql:/mnt/trunk/usr/lib64/postgresql-9.0/lib64/"
MANPATH="/mnt/trunk/usr/share/postgresql/man/:/mnt/trunk/usr/share/postgresql-9.0/man/"
PATH="/usr/lib64/postgresql-9.0/bin"
PGHOME="/usr/lib64/postgresql-9.0"


This is a regression against the PostgreSQL 9.0.3 ebuilds, which did not exhibit this erroneous behavior.
Comment 1 Aaron W. Swenson gentoo-dev 2011-08-02 11:14:24 UTC
Give the latest revisions a go. The previously had ${EROOT} in the econf paths when it should have been ${EPREFIX}.
Comment 2 Matt Whitlock 2011-08-02 14:39:35 UTC
Fixed!  Thanks for the quick turnaround.