Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633918 - broken =app-eselect/eselect-postgresql-2.2
Summary: broken =app-eselect/eselect-postgresql-2.2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-10 07:43 UTC by Sergey S. Starikoff
Modified: 2017-10-10 09:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey S. Starikoff 2017-10-10 07:43:38 UTC
Making tests with writing logs to database I've got some postgresql-related issues.

Istalled eselect module is:
[I] app-eselect/eselect-postgresql
     Available versions:  1.2.1 ~2.0 2.1 2.2
     Installed versions:  2.2(17:43:40 10/05/17)
     Homepage:            https://www.gentoo.org/
     Description:         Utility to select the default PostgreSQL slot

Present PostgreSQL installations are:
# eselect postgresql list
Available PostgreSQL Slots
  9.5                       9.5.7
  9.6                       9.6.4

Trying to set previous version default failes:
# eselect postgresql set 9.5
Setting 9.5 as the default...ln: failed to create symbolic link '/usr/include/postgresql/postgresql-9.5': File exists
!!! Error: Unable to create link! postgresql-9.5 -> /usr/include/postgresql

The issued file is symbolic link:
# file /usr/include/postgresql
/usr/include/postgresql: symbolic link to postgresql-9.6

Which presents not to eselect package as it was expected:
# equery b /usr/include/postgresql
 * Searching for /usr/include/postgresql ... 
dev-db/postgresql-9.6.4 (/usr/include/postgresql-9.6)

All related files are:
# ls /usr/include/postgresql*
/usr/include/postgresql@

/usr/include/postgresql-9.5:
ecpg_config.h	 ecpgtype.h  libpq-events.h   pg_config_manual.h  pgtypes_interval.h   server/	       sqlda-native.h
ecpg_informix.h  informix/   libpq-fe.h       pg_config_os.h	  pgtypes_numeric.h    sql3types.h     sqlda.h
ecpgerrno.h	 internal/   pg_config.h      pgtypes_date.h	  pgtypes_timestamp.h  sqlca.h
ecpglib.h	 libpq/      pg_config_ext.h  pgtypes_error.h	  postgres_ext.h       sqlda-compat.h

/usr/include/postgresql-9.6:
ecpg_config.h	 ecpgtype.h  libpq-events.h   pg_config_manual.h  pgtypes_interval.h   postgresql-9.5@	sqlca.h
ecpg_informix.h  informix/   libpq-fe.h       pg_config_os.h	  pgtypes_numeric.h    postgresql-9.6@	sqlda-compat.h
ecpgerrno.h	 internal/   pg_config.h      pgtypes_date.h	  pgtypes_timestamp.h  server/		sqlda-native.h
ecpglib.h	 libpq/      pg_config_ext.h  pgtypes_error.h	  postgres_ext.h       sql3types.h	sqlda.h

# einfo 
Portage 2.3.8 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r4, 4.9.34-gentoo x86_64)
=================================================================
System uname: Linux-4.9.34-gentoo-x86_64-AMD_Athlon-tm-_II_X2_250_Processor-with-gentoo-2.4.1
KiB Mem:     1793120 total,    163972 free
KiB Swap:    8000364 total,   7520768 free
Timestamp of repository gentoo: Mon, 09 Oct 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage/gentoo
    sync-type: webrsync
    sync-uri: rsync://gw-1.caotus.ru/gentoo-portage/
    priority: -1000

local_hdd
    location: /usr/portage/local
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask --verbose --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/                 ftp://mirror.yandex.ru/gentoo-distfiles/                 http://ftp.corbina.net/pub/Linux/gentoo/                 ftp://ftp.corbina.net/pub/Linux/gentoo/"
LANG="C"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 ac3 acl alsa amd64 avi berkdb bold bzip2 cdr cli consolekit cracklib crypt cups cxx dbus djvu dri dvd flac fortran gdbm gif gtk iconv inotify jpeg jpeg2k lock modules mp3 multilib ncurses nls nptl ogg openmp pam pcre pdf png policykit qt3support readline seccomp session ssl tcpd thunar tiff udev udisks unicode utf8 vorbis xattr xcb xulrunner zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Sergey S. Starikoff 2017-10-10 07:46:01 UTC
Probably this bug should block =app-eselect/eselect-postgresql-2.2 stabilizaion request (bug #627476).
Comment 2 Sergey S. Starikoff 2017-10-10 08:23:37 UTC
It was particularly my miss.
Or, probably not enough clear update procedure.

After manual remove all old symbolic links eselect postgresql set 9.6 succeed.
But after trying to set pervious version I've again got ln error:

# eselect postgresql set 9.5
Unsetting 9.6 as default...done.
Setting 9.5 as the default...ln: failed to create symbolic link '/usr/lib64/postgresql/lib64': File exists
success!
# file /usr/lib64/postgresql/lib64
/usr/lib64/postgresql/lib64: broken symbolic link to postgresql-9.6/lib64
Comment 3 Sergey S. Starikoff 2017-10-10 09:47:03 UTC
That was past of intermediate test installation.