Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631936 - =app-eselect/eselect-postgresql-2.2: fails to create existing symlinks
Summary: =app-eselect/eselect-postgresql-2.2: fails to create existing symlinks
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:
Depends on: 647554
Blocks:
  Show dependency tree
 
Reported: 2017-09-24 14:03 UTC by Agostino Sarubbo
Modified: 2018-05-20 09:47 UTC (History)
1 user (show)

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


Attachments
php-7.0.23:20170924-135931.log (php-7.0.23:20170924-135931.log,25.62 KB, text/plain)
2017-09-24 14:03 UTC, Agostino Sarubbo
Details
emerge --info (.info,5.48 KB, text/plain)
2017-09-24 14:03 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2017-09-24 14:03:19 UTC
This is an auto-filled bug because this package fails to compile.
Comment 1 Agostino Sarubbo gentoo-dev 2017-09-24 14:03:24 UTC
Created attachment 496298 [details]
php-7.0.23:20170924-135931.log

build log
Comment 2 Agostino Sarubbo gentoo-dev 2017-09-24 14:03:27 UTC
Created attachment 496300 [details]
emerge --info

emerge --info
Comment 3 Brian Evans (RETIRED) gentoo-dev 2017-09-24 14:28:35 UTC
> checking for pg_config... not found
> configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path


This is most likely a PostgreSQL configuration error. (aka check 'eselect postgresql')
Comment 4 Agostino Sarubbo gentoo-dev 2017-09-24 16:11:50 UTC
you are right, after file the bug I investigated by myself. The issue resides in the fact that "eselect postgresql set 9.6" does not work, instead it returns something like:
!!! Error: Unable to create link! postgresql-9.6/postgres_ext.h -> /usr/include/postgres_ext.h

As a workaround I did:
rm -fr /usr/include/libpq-fe.h /usr/include/postgresql /usr/include/pg_config_manual.h /usr/include/pg_config_ext.h /usr/include/libpq /usr/include/postgres_ext.h /usr/lib64/postgresql

eselect postgresql set 9.6

Now it seems to work
Comment 5 Michael Orlitzky gentoo-dev 2017-09-24 19:31:14 UTC
This was bug #625368 in eselect-postgresql, and should be fixed now in =app-eselect/eselect-postgresql-2.2. Please tell me you are running an earlier version than that Agostino =)
Comment 6 Agostino Sarubbo gentoo-dev 2017-09-25 06:47:07 UTC
No, I'm running 2.2 :(
Comment 7 Michael Orlitzky gentoo-dev 2017-11-05 23:19:48 UTC
I was wrong about the version -- it looks like 2.2 is a version that we know causes problems (there are a large number of reports on bug 627476).
Comment 8 Larry the Git Cow gentoo-dev 2018-01-14 18:25:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fb5707e09234326c4fd71ddc0b6b34d66775968

commit 9fb5707e09234326c4fd71ddc0b6b34d66775968
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2018-01-14 18:25:05 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2018-01-14 18:25:33 +0000

    app-eselect/eselect-postgresql: Bump to 2.3
    
    ln now tries to force the link (Thanks Matthew Thode [prometheanfire])
    
    Cleans up nonsensical links in /usr/include/postgresql-* that were
    made by some previous versions of this module.
    
    Bug: https://bugs.gentoo.org/627476
    Bug: https://bugs.gentoo.org/631936
    Bug: https://bugs.gentoo.org/640154
    Bug: https://bugs.gentoo.org/640394
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 app-eselect/eselect-postgresql/Manifest            |  1 +
 .../eselect-postgresql-2.3.ebuild                  | 34 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)}
Comment 9 Larry the Git Cow gentoo-dev 2018-05-20 09:47:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46ba303e9150033c32827f78cc7a60b30483599a

commit 46ba303e9150033c32827f78cc7a60b30483599a
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2018-05-20 09:47:14 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2018-05-20 09:47:14 +0000

    app-eselect/eselect-postgresql: Cleanup 2.2
    
    Closes: https://bugs.gentoo.org/631936
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-eselect/eselect-postgresql/Manifest            |  1 -
 .../eselect-postgresql-2.2.ebuild                  | 35 ----------------------
 2 files changed, 36 deletions(-)