Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194350 - >=dev-db/libpq-8.2.4 creates broken symlinks
Summary: >=dev-db/libpq-8.2.4 creates broken symlinks
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:
: 183011 198151 203422 208987 (view as bug list)
Depends on:
Blocks: 183011
  Show dependency tree
 
Reported: 2007-10-01 08:01 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2008-11-14 06:34 UTC (History)
3 users (show)

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 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2007-10-01 08:01:03 UTC
After a friend lamenting to me the exact same problem I decided I would just
stop using pdns to get around, I decided to look into the problem a bit
further. 

 cat /usr/portage/dev-db/libpq/libpq-8.2.4.ebuild

<--snip-->
SLOT="4"
<--snip-->
src_install() {
<--snip-->
        dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a
<--snip-->

file /usr/lib/libpq.a
/usr/lib/libpq.a: broken symbolic link to `libpq-4.a'

qlist libpq | grep "\/libpq\...."
/usr/lib/libpq.so.5.0
/usr/lib/debug/usr/lib/libpq.so.5.0.debug
/usr/lib/libpq.so.5

hmm. No libpq-4. 


<pkgmetadata>
        <herd>postgresql</herd>
</pkgmetadata>

THeres about 3 different easy ways to get around this problem of course ;) Just
needs somebody with commit rights to choose which is most sane and get it done
:)

(In reply to comment #4)
> This bug is about slotted postgresql; if you have issues with libpq, file a
> *new* bug please. Thanks.
>

My Apologies, I had envisioned the bug was in fact the need to change the SLOT value in libpq to make this work properly ( as changing the SLOT value would instantly solve this problem ) ( also, being titled libpq make me think it was a libpq deal, not a postgres one .. )

The only case where its a different bug is where one chooses to fix the bug without re-slotting it. 


Reproducible: Always

Steps to Reproduce:
remove libpq
emerge libpq
try compiling something that needs libpq.a
Actual Results:  
PDNS: cant find libpq

file /usr/lib/libpq.a 
/usr/lib/libpq.a: broken symbolic link to `libpq-4.a'



Expected Results:  
PDNS: Yay merges. 

file /usr/lib/libpq.a
/usr/lib/libpq.a: symbolic link to `/usr/lib/libpq-5.a'


Portage 2.1.3.11 (default-linux/x86/2007.0, gcc-4.2.X/default, glibc-2.6.1-r0, 2.6.22-gentoo-r1kz i686)
=================================================================
System uname: 2.6.22-gentoo-r1kz i686 AMD Athlon(TM) XP 2000+
Timestamp of tree: Sat, 29 Sep 2007 16:50:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1, 2.18, 2.18.50.0.1
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/local/kdeextra/share/config /usr/local/kdeextra/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe "
DISTDIR="/mnt/fission/distfiles/distfiles"
FEATURES="autoaddcvs collision-protect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_NZ.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1,-z,combreloc,--sort-common,--enable-new-dtags"
LINGUAS="en_NZ en_GB en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/mnt/rammage/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mysql-testing /usr/portage/local/layman/mysql-experimental /usr/portage/local/layman/enlightenment /usr/portage/local/layman/sunrise /usr/portage/local/layman/kde /usr/portage/local/layman/toolchain /usr/portage/local/layman/php-experimental /usr/portage/local/layman/php-testing /usr/portage/local/layman/armagetron /usr/local/portage /usr/src/musicbrainz-overlay_svn /usr/src/xgl/xgl-coffee"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X acl bash-completion berkdb bitmap-fonts cli cracklib crypt cups dbus doc dri examples fortran gdbm gpm gtk iconv ipv6 isdnlog kdeenablefinal kdehiddenvisibility midi mmx mudflap multislot nas ncurses nfs nptl nptlonly opengl openmp pam pcre perl php pppd python readline reflection session socks5 source spl ssl syslog tcpd test threads tiff truetype-fonts type1-fonts unicode x86 xinerama xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" CAMERAS="directory ptp2 template" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_NZ en_GB en en_US" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mathieu Z 2007-11-05 11:22:19 UTC
*** Bug 198151 has been marked as a duplicate of this bug. ***
Comment 2 Sven Wegener gentoo-dev 2008-01-01 14:27:16 UTC
*** Bug 183011 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-05 11:20:28 UTC
*** Bug 208987 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-02-05 11:21:39 UTC
Anyone to fix this?
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2008-02-05 12:49:44 UTC
Option 1: 
   -SLOT="4"
   +SLOT="5" 

Option 2: 
   -dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a
   +dosym libpq-5.a /usr/$(get_libdir)/libpq.a

Theres probably a more elegant way of doing it, but this is pathetic.  2007-06-24  was when I first noted a problem with this. I know its the ~ tree, but hell, the last non ~ tree is 8.0.15, but ew, the 8.0 branch came out in 2005, even the fedora before now is more up with the times
( i dont want to explain how I know this, I already feel defiled by using it :(  ) and debian stable ( we all know how old that tends to be ) has 8.1 

Somebody should at least make a /temporary/ adjustment to the ebuild 

Broken Ebuilds in tree suck. 

Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2008-06-14 11:50:46 UTC
I don't see this issue anymore with dev-db/postgresql-base. I think we can consider it to be fixed...
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-14 06:34:44 UTC
*** Bug 203422 has been marked as a duplicate of this bug. ***