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
Created attachment 349702 [details, diff] es-pgsql-fix.patch Seems to be caused by a simple variable name typo, patch attached
*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.