Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305645 - www-client/firefox-bin-3.5.6 puts /opt/firefox in ld.so.conf, and breaks the runtime libnspr4.so linking of pidgin-2.6.5
Summary: www-client/firefox-bin-3.5.6 puts /opt/firefox in ld.so.conf, and breaks the ...
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-17 20:12 UTC by Jon Bramley
Modified: 2010-02-18 11:31 UTC (History)
1 user (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 Jon Bramley 2010-02-17 20:12:55 UTC
www-client/firefox-bin-3.5.6 adds the file: /etc/env.d/71firefox-bin

This file sets LDPATH="/opt/firefox"

This in turn means that /opt/firefox/libnspr4.so is picked up by ldconfig before the one in /usr/lib/libnspr4.so, which breaks pidgin (and presumably other apps that rely upon libnspr4.so)

 

Reproducible: Always

Steps to Reproduce:
1. emerge firefox-bin-3.5.6 and pidgin
2. run ldconfig to update ld.so.cache
3. attempt to start pidgin

Actual Results:  
pidgin crashes with "Aborted" (strace reveals it crashes just after reading /opt/firefox/libnspr4.so)

Expected Results:  
pidgin loads normally

running:
export LD_LIBRARY_PATH=/usr/lib

before running pidgin allows it to start.


518 20:08 $ strings /etc/ld.so.cache  | grep libnspr
libnspr4.so.8
/usr/lib/libnspr4.so.8
libnspr4.so
/opt/firefox/libnspr4.so
libnspr4.so
/usr/lib/libnspr4.so

firefox libnspr4.so takes precedence over /usr/lib


519 20:09 $ grep firefox /etc/env.d/*
/etc/env.d/71firefox-bin:LDPATH="/opt/firefox"


520 20:10 $ equery belongs /etc/env.d/71firefox-bin
[ Searching for file(s) /etc/env.d/71firefox-bin in *... ]
www-client/firefox-bin-3.5.6 (/etc/env.d/71firefox-bin)





521 20:11 $ emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 17 Feb 2010 19:00:15 +0000
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.6.3, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en uk"
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/local/portage/jb /usr/local/portage/layman/haskell /usr/local/portage/pd-overlay"
SYNC="rsync://localhost:14040/gentoo-portage"
USE="X a52 aac acl acpi alsa audiofile bash-completion beagle berkdb binary-drivers bzip2 cairo calendar cjk cli cracklib crypt cups curl cxx daap dbus directfb divx dmenu dri dvd dvdread fbcon fbcondecor ffmpeg firefox flac fortran ftp fuse galago gdbm gif gmail gpm gstreamer gtk gtk2 hal ical iconv imap informix innodb insecure-savers ipod ipv6 jabber jack java javascript jikes jpeg junit ldap libcaca libnotify lm_sensors mad matroska midi mime mmx modules mono mozdevelop mozilla mp3 mp4 mpd mpeg mpeg4 msn mudflap musicbrainz ncurses nis nls nptl nptlonly nsplugin nvidia ogg ole opengl openmp oss pam pcre pdf perl png pop postgres pppd python qt3 qt3support qt4 quicktime readline realmedia reflection samba session skins spell spl sse sse2 ssl sysfs taglib tcl tcltk tcpd thunderbird tk truetype type1 uk unicode usb vcd vim-syntax virmidi visualization vorbis wavpack win32codecs wma wmp wxwindows x86 xcomposite xine xinerama xml xorg xosd xscreensaver xvid xvmc zlib" ALSA_CARDS="hda-intel usb-audio virmidi" 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="evdev keyboard mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en uk" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jory A. Pratt gentoo-dev 2010-02-18 02:27:30 UTC
Mixing stable/testing is not supported by mozilla products in gentoo, please either use stable nss/nspr with stable firefox-bin or upgrade to firefox-bin testing.
Comment 2 Jon Bramley 2010-02-18 11:31:25 UTC
Moving nss and nspr back to stable versions allows pidgin to be started.