Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45546 - /etc/ld.so.conf shouldn't be sorted alphabetically
Summary: /etc/ld.so.conf shouldn't be sorted alphabetically
Status: RESOLVED DUPLICATE of bug 44028
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 14:23 UTC by Gustavo Felisberto (RETIRED)
Modified: 2005-07-17 13:06 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 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-23 14:23:56 UTC
Acording to http://www.gentoo.org/doc/en/handbook/handbook.xml?part=2&chap=6#doc_chap2 the order of entry's in ld.so.conf should follow the alphabetic order of files in /etc/env.d:
humpback@sam humpback $ cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/opt/aim/lib
/opt/eclipse-sdk-3.0_rc7
/opt/sun-jdk-1.4.2.03/jre/lib
/usr/X11R6/lib
/usr/games/lib
/usr/kde/3.1/lib
/usr/kde/3.2/lib
/usr/lib/MozillaFirefox
/usr/lib/fltk-1.1
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2
/usr/lib/opengl/xfree/lib
/usr/local/lib
/usr/qt/3/lib
humpback@sam humpback $ cd /etc/env.d/
humpback@sam env.d $ ls
00basic     10acroread5       20java                 50gconf    50qtdir3        93sgmltools-lite  99icc-ifc
01hostname  10MozillaFirefox  30java-finalclasspath  50glib2    56kdedir-3.1.4  98tetex           99kde-env
02distcc    10xfree           45qt3                  50gtk2     57kdedir-3.2.0  99aim             gcc
05gcc       11maple           48kdepaths-3.2.0       50guile    70less          99fltk-1.1        java
09opengl    20eclipse-3.0m7   49kdepaths-3.1.4       50ncurses  90games         99glibc_spp
humpback@sam env.d $ cat 10MozillaFirefox
LDPATH=/usr/lib/MozillaFirefox

As we can see Mozilla Should be before eclipse and sun's sdk. I found this problem because i had icc installed and it also appeared out of order and gave problems with some opengl stuff.


humpback@sam env.d $ emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-mm4)
=================================================================
System uname: 2.6.3-mm4 i686 Intel(R) Celeron(TM) CPU                1066MHz
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs distcc sandbox"
GENTOO_MIRRORS=" ftp://ftp.rnl.ist.utl.pt/gentoo  http://mirrors.twobit.net/gentoo  http://gentoo.oregonstate.edu/ "
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/humpback/work/gentoo/gentoo-x86"
SYNC="rsync://felisberto.net/gentoo-portage"
USE="X aalib alsa apache2 apm avi berkdb bonobo crypt cups dillo dvd encode esd evo flash foomaticdb gd gdbm ggi gif gimpprint gphoto2 gpm gtk gtk2 gtkhtml guile icc imlib ipv6 irmc java jpeg kde ldap libg++ libwww linguas_linguas_pt linguas_pt mad mikmod mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl openssh operanom2 oss pam pdflib perl png python qt quicktime readline ruby samba sdl slang spell sse ssl svga tcltk tcltki tcpd tetex tiff truetype video_cards_i830 wmf x86 xml2 xmms xv zlib"
Comment 1 Matthias Liertzer 2004-04-12 09:00:42 UTC
Same here, gave me big troubles when compiling openoffice...

Fix is pretty simple: I don't know why, but portage seems to sort ld.so.conf alphabetically. The fix should be as simple as to remove line 657( oldld.sort() ) and line 665 (newld.sort() ) in /usr/lib/portage/pym/portage.py.

Matt
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-12 09:20:57 UTC

*** This bug has been marked as a duplicate of 44028 ***