Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471866 - app-admin/eselect-postgresql-1.1.1 sets wrong relative symlinks for headers
Summary: app-admin/eselect-postgresql-1.1.1 sets wrong relative symlinks for headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-05-31 03:15 UTC by Ben Kohler
Modified: 2013-06-16 21:00 UTC (History)
1 user (show)

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


Attachments
es-pgsql-fix.patch (es-pgsql-fix.patch,619 bytes, patch)
2013-05-31 03:17 UTC, Ben Kohler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2013-05-31 03:15:52 UTC
I noticed "eselect postgresql set x.y" creates a relative symlink, and in the current version, the link is wrong unless your current working dir happens to be at the same level as /usr/include (any /foo/bar).  Eg

# mkdir -p /1/2/3/4/5/6
# cd /1/2/3/4/5/6
# eselect postgresql set 9.2
Setting 9.2 as the default installation...
        Removing old links...done.
        Generating new links...done.
Setting 9.2 as default was successful!
# readlink /usr/include/libpq-fe.h 
../../../../../../usr/include/postgresql-9.2/libpq-fe.h
# cd /usr/include
# eselect postgresql set 9.2
Setting 9.2 as the default installation...
        Removing old links...done.
        Generating new links...done.
Setting 9.2 as default was successful!
# readlink /usr/include/libpq-fe.h
postgresql-9.2/libpq-fe.h
Comment 1 Ben Kohler gentoo-dev 2013-05-31 03:17:11 UTC
Created attachment 349702 [details, diff]
es-pgsql-fix.patch

Seems to be caused by a simple variable name typo, patch attached
Comment 2 Aaron W. Swenson gentoo-dev 2013-06-16 21:00:54 UTC
*eselect-postgresql-1.1.2 (16 Jun 2013)

  16 Jun 2013; Aaron W. Swenson <titanofold@gentoo.org>
  -eselect-postgresql-1.1.1.ebuild, +eselect-postgresql-1.1.2.ebuild:
  Fix bug 471866. Remove broken version.

I forgot to acknowledge your contribution, but thank you for finding the trouble spot.