Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431094 - app-admin/eselect-postgresql creates incorrect symlinks when $ROOT is not "/"
Summary: app-admin/eselect-postgresql creates incorrect symlinks when $ROOT is not "/"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-08-12 15:02 UTC by John Keeping
Modified: 2013-05-09 11:09 UTC (History)
0 users

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


Attachments
Patch to create relative symlinks (postgresql-eselect-ROOT.patch,3.50 KB, patch)
2012-08-12 15:02 UTC, John Keeping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Keeping 2012-08-12 15:02:05 UTC
Created attachment 321114 [details, diff]
Patch to create relative symlinks

When $ROOT is set, eselect-postgresql creates absolute symlinks, which do not work when inside the system pointed at by $ROOT.  Relative symlinks would appear correct both in the host system and inside $ROOT.

The attached patch changes all of the created symlinks to be relative as well as storing the patch in the "active.links" files relative to $ROOT, so that eselect-postgresql can be used both in the host system and when inside $ROOT.
Comment 1 Aaron W. Swenson gentoo-dev 2013-01-21 00:35:22 UTC
Patch applied in git.