Summary: | dev-ruby/pg-0.18.4-r1 fails configuration phase for ruby21 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Giuseppe Foti <foti.giuseppe> |
Component: | Current packages | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Giuseppe Foti
2017-07-29 17:10:59 UTC
Which version of dev-db/postgresql do you have installed, and with which USE flags? I have installed dev-db/postegresql-9.6.3-r1 # emerge -av postgresql These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ] dev-db/postgresql-9.6.3-r1:9.6::gentoo USE="kerberos ldap nls pam readline server ssl systemd xml zlib -doc (-libressl) -perl -pg_legacytimestamp -python (-selinux) -static-libs -tcl -threads -uuid" LINGUAS="it -af -cs -de -en -es -fa -fr -hr -hu -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python3_4 -python2_7 (-python3_5) (-python3_6)" PYTHON_TARGETS="python2_7 python3_4 (-python3_5) (-python3_6)" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB I tried reemerging it, and I have seen there is a conflict: ... Setting 9.6 as the default...ln: failed to create symbolic link '/usr/include/libpq-fe.h': File exists !!! Error: Unable to create link! postgresql-9.6/libpq-fe.h -> /usr/include/libpq-fe.h exiting >>> Regenerating /etc/ld.so.cache... >>> Original instance of package unmerged safely. Setting 9.6 as the default...ln: failed to create symbolic link '/usr/include/postgresql/postgresql-9.6': File exists !!! Error: Unable to create link! postgresql-9.6 -> /usr/include/postgresql ... ... * GNU info directory index is up-to-date. !!! existing preserved libs: >>> package: dev-db/postgresql-9.5.7 * - /usr/lib64/postgresql-9.5/lib64/libpq.so.5 * - /usr/lib64/postgresql-9.5/lib64/libpq.so.5.8 * used by /usr/lib64/ruby/gems/2.1.0/gems/pg-0.18.4/lib/pg_ext.so (dev-ruby/pg-0.18.4-r1) * used by /usr/lib64/ruby/gems/2.2.0/gems/pg-0.18.4/lib/pg_ext.so (dev-ruby/pg-0.18.4-r1) Use emerge @preserved-rebuild to rebuild packages using these libraries if I try, it tries to reemerge dev-ruby/pg-0.18.4-r1, but it fails # emerge @preserved-rebuild Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-ruby/pg-0.18.4-r1::gentoo ... it fails. Then I have manually deleted some broken links /usr/include/libpq /usr/include/libpq-fe.h /usr/include/pg_config_ext.h /usr/include/pg_config_manual.h /usr/include/postgres_ext.h AND /usr/include/postgresql/postgresql-9.6 ( # ls -la /usr/include | grep postgresql lrwxrwxrwx 1 root root 20 16 lug 22.01 libpq -> postgresql-9.5/libpq lrwxrwxrwx 1 root root 25 16 lug 22.01 libpq-fe.h -> postgresql-9.5/libpq-fe.h lrwxrwxrwx 1 root root 30 16 lug 22.01 pg_config_ext.h -> postgresql-9.5/pg_config_ext.h lrwxrwxrwx 1 root root 33 16 lug 22.01 pg_config_manual.h -> postgresql-9.5/pg_config_manual.h lrwxrwxrwx 1 root root 29 16 lug 22.01 postgres_ext.h -> postgresql-9.5/postgres_ext.h lrwxrwxrwx 1 root root 14 17 lug 10.12 postgresql -> postgresql-9.6 drwxr-xr-x 6 root root 4096 30 lug 16.35 postgresql-9.6 ) and reemerged dev-db/postgresql-9.6.3-r1. Now dev-ruby/pg-0.18.4.r1 compiles. (another attempt without removing /usr/include/postgresql/postgresql-9.6 failed). Not sure if this is a bug of postgresql ebuild, or a misconfiguration in my system. However, now I solved. Thanks |