Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128444 - arts-3.5.x bad lib64 LDPATH in 45kdepaths-3.5
Summary: arts-3.5.x bad lib64 LDPATH in 45kdepaths-3.5
Status: RESOLVED DUPLICATE of bug 128442
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-01 15:06 UTC by Duncan
Modified: 2006-04-01 15:13 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 Duncan 2006-04-01 15:06:43 UTC
This appears to be either a portage or amd64 profile bug.  The ebuild is doing the right thing, but getting the wrong info from portage or an eclass somehow.  The LDPATH line of 45kdepaths-3.5 ends up as:

LDPATH=/usr/kde/3.5/lib:/usr/kde/3.5//lib64:/usr/kde/3.5/lib32

From the 3.5.2 ebuild but other arts ebuilds look similar:

for libdir in $(get_all_libdirs); do
    libdirs="${libdirs}:${PREFIX}/${libdir}"
done

$libdirs is later echoed into LDPATH in /etc/env.d/45kdepaths-3.5

Sticking a debugging eerror in there demonstrates that libdirs contains

/usr/kde/3.5/lib and lib32, but for lib64 it's /usr/kde/3.5//lib64.

That kills revdep-rebuild, as it does find all those KDE libraries, but can't associate them with packages because the packages merged to 3.5/lib64 not 3.5//lib64.  (This came up due to libexpat, a dependency of most of KDE, being upgraded like two days /after/ kde-3.5.2 came out. =8^(  )

Well, get_all_libdirs is in multilib.eclass.  Debugging there reveals that it's using the CONF_LIBDIR "if" branch, even tho from what I can see it should be using the "else" branch as the amd64/2006.0 profile  has the abi vars set.

Further debugging back in the arts-3.5.2 ebuild demonstrates that $CONF_LIBDIR=/lib64 at the top of src_install, before any commands there execute.

Unfortunately, it's resisting all my efforts to trace it further.  I can't seem to figure out where /lib64 is coming from.  If CONF_LIBDIR is set at all, AFAIK, it should be lib64 (no /).  The 2006.0 profile doesn't set it, and sets only lib32 and lib64 in the corresponding LIBDIR_<abi> settings in its make.defaults.  That's frustrating, because the system keeps the un-slashed lib32, which is used very little, while for whatever reason adding the / in front of lib64, so only lib64 doubles the slash in 3.5//lib64.

No, I don't have CONF_LIBDIR set in my regular environment, so that's not it either.

Of interest due to the mentions of CONF_LIBDIR in /sbin/functions.sh and /usr/lib/portage/ebuild.sh, preplib, and dolib (with nothing related seeming to be called from any of them, if I my debug statements were placed correctly -- where it's being set remains a mystery), I'm running ~amd64, so portage-2.1_pre7-r3 and  baselayout-1.12.0_pre16-r3.

$emerge --info
!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.1_pre7-r3 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16.1 x86_64)
=================================================================
System uname: 2.6.16.1 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.91.0.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer -frename-registers -funit-at-a-time -fweb -freorder-blocks -freorder-blocks-and-partition -ftree-pre -fmerge-all-constants"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /mnt /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/mc /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer -frename-registers -funit-at-a-time -fweb -freorder-blocks -ftree-pre -fmerge-all-constants"
DISTDIR="/p/src"
FEATURES="autoconfig buildpkg candy ccache confcache distlocks multilib-strict parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://prometheus.cs.wmich.edu/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.arcticnetwork.ca/ http://gentoo.netnitco.net http://modzer0.cs.uaf.edu/public/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.ccccom.com http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.ccccom.com http://lug.mtu.edu/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://mirror.espri.arizona.edu/gentoo/"
LANG="en_US"
LDFLAGS="-Wl,-z,now"
LINGUAS="en"
MAKEOPTS="-j6 -l5"
PKGDIR="/pkg"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/p"
PORTDIR_OVERLAY="/l/p"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac acpi alsa amr apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 caps cdparanoia cdr cli crypt css ctype cups curl dba dga divx4linux dlloader dri dts dv dvd dvdr dvdread eds emboss encode expat extrafilters fam fame fastbuild ffmpeg flac font-server foomaticdb force-cgi-redirect ftp gd gdbm gif glibc-omitfp gpm gstreamer gtk2 idn imagemagick imlib isdnlog ithreads jp2 jpeg jpeg2k kde kdeenablefinal lcms libwww linuxthreads-tls lm_sensors logitech-mouse logrotate lzo lzw lzw-tiff mad maildir memlimit mikmod mjpeg mng motif mp3 mp4 mpeg musicbrainz ncurses network no-old-linux nolvm1 nomirrors nptl nptlonly offensive ogg openexr opengl oss pam pcre pdflib perl pic png posix ppds pppd profile python qt quicktime radeon readline scanner session simplexml slang soap sockets speex spell spl ssl tcltk theora threads tiff tokenizer truetype truetype-fonts type1 type1-fonts usb userlocales vcd vorbis x264 xcomposite xine xinerama xml xml2 xmms xosd xpm xrandr xsl xv xvid yv12 zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-04-01 15:13:26 UTC
a double slash shouldn't do any harm in the first place...

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

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