Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306957 - dev-db/libpq-8.2.14 ebuild assumes wrong library version
Summary: dev-db/libpq-8.2.14 ebuild assumes wrong library version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-26 13:37 UTC by Marc Schiffbauer
Modified: 2010-07-11 22:46 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 Marc Schiffbauer gentoo-dev 2010-02-26 13:37:50 UTC
In the the ebuild $SLOT is often used to reference as something like libpq-$SLOT and in the patch the CATALOG_NAME is changed from "libpq" to "libpq-4"

However: THE VERSION IS 5! NOT 4!

This leads to a dangling symlink for example: 
/usr/lib64/libpq.a -> /usr/lib64/libpq-4.a
(but only /usr/lib64/libpq-5.a exists)

I thisnk the correct fix will be to change the slot to SLOT="5" and to update the CATALOG_NAME in the patch.
Comment 1 Marc Schiffbauer gentoo-dev 2010-02-26 13:38:19 UTC
emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-2.0.1
Timestamp of tree: Fri, 26 Feb 2010 01:45:03 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cups cxx device-mapper dri fam fortran gdbm gpm iconv mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl postgres pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode vim-syntax xattr xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Marc Schiffbauer gentoo-dev 2010-02-26 13:40:36 UTC
--- /usr/portage/dev-db/libpq/libpq-8.2.14.ebuild       2009-11-05 22:33:58.000000000 +0100
patch for ebuild:

+++ /usr/local/portage/local/dev-db/libpq/libpq-8.2.14.ebuild   2010-02-26 14:36:02.162461731 +0100
@@ -10,7 +10,7 @@
 HOMEPAGE="http://www.postgresql.org/"
 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
 LICENSE="POSTGRESQL"
-SLOT="4"
+SLOT="5"
 IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib"

 RDEPEND="!<=dev-db/postgresql-8.1.4
Comment 3 Marc Schiffbauer gentoo-dev 2010-02-26 13:41:40 UTC
patch for patch:

--- /usr/portage/dev-db/libpq/files/libpq-8.2.14-gentoo.patch   2009-11-05 22:33:56.000000000 +0100
+++ /usr/local/portage/local/dev-db/libpq/files/libpq-8.2.14-gentoo.patch       2010-02-26 14:16:44.306461190 +0100
@@ -23,7 +23,7 @@
 @@ -1,5 +1,5 @@
  # $PostgreSQL: pgsql/src/interfaces/libpq/nls.mk,v 1.20 2005/01/14 08:57:06 petere Exp $
 -CATALOG_NAME  := libpq
-+CATALOG_NAME  := libpq-4
++CATALOG_NAME  := libpq-5
  AVAIL_LANGUAGES       := af cs de es fr hr it ko nb pl pt_BR ru sk sl sv tr zh_CN zh_TW
  GETTEXT_FILES := fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-protocol2.c fe-protocol3.c fe-secure.c
  GETTEXT_TRIGGERS:= libpq_gettext pqInternalNotice:2
Comment 4 Aaron W. Swenson gentoo-dev 2010-02-27 12:59:42 UTC
dev-db/libpq and dev-db/postgresql are deprecated and will no longer be maintained.

Please use dev-db/postgresql-docs, dev-db/postgresql-base and/or dev-db/postgresql-server as these use proper slotting.
Comment 5 Marc Schiffbauer gentoo-dev 2010-02-27 19:57:00 UTC
Hm.... I have dev-db/postgresql-base and
dev-db/postgresql-server installed, but when I uninstall dev-db/libpq packages that depend on PG will break because there is no libpq anymore...

How can a smooth transition be done?

Comment 6 Aaron W. Swenson gentoo-dev 2010-02-27 21:53:17 UTC
(In reply to comment #5)
> Hm.... I have dev-db/postgresql-base and
> dev-db/postgresql-server installed, but when I uninstall dev-db/libpq packages
> that depend on PG will break because there is no libpq anymore...
> 
> How can a smooth transition be done?
> 

Most likely by doing an "emerge -C dev-db/libpq" and "revdep-rebuild". For further support, join us on freenode IRC #gentoo or forums.gentoo.org
Comment 7 Patrick Lauer gentoo-dev 2010-07-11 22:46:16 UTC
Package gone.