Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232701 - app-admin/eselect-postgresql doesn't work correctly in Prefix
Summary: app-admin/eselect-postgresql doesn't work correctly in Prefix
Status: RESOLVED DUPLICATE of bug 267014
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 00:44 UTC by Matt Michalowski
Modified: 2009-04-29 04:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Michalowski 2008-07-23 00:44:47 UTC
Recently, dev-db/postgresql-base-8.3.3 and its dependency app-admin/eselect-postgresql-0.3 were added to the Prefix tree. postgresql-base-8.3.3 compiles OK, but eselect-postgresql does not seem to create the right symlinks, or actually see in profiles:

$ eselect postgresql list
Available postgresql installations

(nothing output here)

As a result, some things dependent on pg_config or the libpq headers fail to compile, for example dev-python/psycopg-2.0.7



Reproducible: Always



Expected Results:  
On mainline Gentoo:

$ eselect postgresql list
Available postgresql installations
  8.3 <-*                    base-8.3.3
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-23 17:58:41 UTC
Committed a patch that does this, but I don't have anymore time today to spend on it:

%% eselect postgresql list
Available postgresql installations
  8.3 <-*                    base-8.3.3 server-8.3.3

%% eselect postgresql set 8.3
!!! Warning: /usr/include/libpq-fe.h exists and is not a symbolic link
!!! Warning: /usr/include/libpq exists and is not a symbolic link
!!! Warning: /usr/include/postgres_ext.h exists and is not a symbolic link
!!! Error: Broken install: no pg_config found
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
Killed
Comment 2 Fabian Groffen gentoo-dev 2008-07-30 16:52:51 UTC
the wrong paths come from 

local slotdir=""/Library/Gentoo"/etc/eselect/postgresql/slots/${1}"

(quoting is a bit weird, but that aside, fixed that on the go)

maybe postgresql doesn't install correct stuff.

I patched the binwrapper to be prefix aware too.
Comment 3 James Cloos 2008-10-25 04:09:04 UTC
This is not an alt-specific bug.

I have the same problem with a ~x86 install.

Only by manually making the symlinks contained in the postgres_symlinks array in the /etc/eselect/postgresql/slots/8.3/base file will anything which depends on dev-db/postgresql-base build.
Comment 4 Matt Michalowski 2009-04-22 00:25:28 UTC
The fix in eselect-postgresql-0.3-r00.1 gets us a little closer, we just need a couple more to get it working fully. These are:

* eselect-postgresql needs to eprefixy binwrapper
* dev-db/postgresql-base installs $EPREFIX/etc/eselect/postgresql/slots/8.3/base - this file also needs to be prefix'ed

Cheers.
Comment 5 Matt Michalowski 2009-04-29 04:47:28 UTC

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