Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80515 - baselayout-1.11.x: get_abi_LIBDIR from multilib.eclass breaks stuff on amd64
Summary: baselayout-1.11.x: get_abi_LIBDIR from multilib.eclass breaks stuff on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 14:01 UTC by Georgi Georgiev
Modified: 2005-02-02 19:43 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 Georgi Georgiev 2005-02-02 14:01:11 UTC
I emerged baselayout-1.11.9-r1 today, and my system was quite broken (depscan.sh was failing without being able to find the awk scripts). It continued to be broken even after downgrading to older versions.

The problem was that the important scripts got installed in /rcscripts/{sh,awk}...

The reason for that is that the following:

    # This should be /lib/rcscripts, but we have to support old profiles too.
    if [ "${SYMLINK_LIB}" = "yes" ]; then
        rcscripts_dir="/$(get_abi_LIBDIR ${DEFAULT_ABI})/rcscripts"
    else
        rcscripts_dir="/lib/rcscripts"
    fi

sets rcscripts_dir to /rcscripts, because on my profile get_abi_LIBDIR does return an empty string.

The reasons for this:

$ readlink /etc/make.profile
../usr/portage/profiles/default-linux/amd64/2004.3/lib64
$ grep SYMLINK /etc/make.profile/make.defaults 
SYMLINK_LIB="yes"

Some other useful info:

$ cat  /etc/make.profile/make.defaults 
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/amd64/2004.3/lib64/make.defaults,v 1.16 2005/02/01 18:48:23 eradicator Exp $

# GCC 3.4.2 has multilib enabled by default, but we still need multilib in USE
# for compatibility
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb ncurses multilib readline zlib -java -nptl"

# Sane, functional, almost-but-not-quite-minimal default for USE
USE="${GRP_STAGE23_USE} bitmap-fonts truetype-fonts type1-fonts font-server oss alsa crypt fortran f77 jpeg nls userlocales opengl png xml2 acpi gif jp2 lzw lzw-tiff png tiff truetype usb xpm xrandr xv"

# we can enable sandbox now that we use multilib by default
FEATURES="sandbox autoconfig"

CONF_LIBDIR="lib64"
CONF_MULTILIBDIR="lib32"

# If FEATURES="multilib-strict" on newer portages (see bug #75420), emerge
# will die if we try installing 64bit libs into a lib dir.  This should
# help us squash bugs for future correct multilib support.
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib"
MULTILIB_STRICT_DENY="64-bit.*shared object"

SYMLINK_LIB="yes"

$ emerge --info

Portage 2.0.51-r15 (default-linux/amd64/2004.3/lib64, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.10-y2 x86_64)
=================================================================
System uname: 2.6.10-y2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.4,dev-lang/python-2.3.4 [2.4 (#1, Jan 10 2005, 19:31:18)]
dev-lang/python:     2.4, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=k8"
DISTDIR="/usr/portage-distfiles"
FEATURES="autoaddcvs autoconfig noinfo sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://gg3.net/pub/linux/gentoo"
LANG="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage-lion/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-maildir /usr/portage-jp /usr/portage-chutz /usr/portage-amd64"
SYNC="rsync://rsync.gg3.net/gentoo-portage"
USE="amd64 X Xaw3d aalib acl acpi alsa avi berkdb bitmap-fonts bonobo canna cdr cjk crypt cups dga dmx dvd encode fam fbcon flac font-server foomaticdb gdbm gif gimpprint gnutls gpm gstreamer gtk gtk2 gtkhtml guile ieee1394 imagemagick imap imlib ipv6 ipv6arpa java javascript joystick jp2 jpeg junit latex lcms ldap libcaca libg++ libwww live lzo lzw lzw-tiff mad maildir matroska mikmod mng motif moznoirc moznomail mp3 mpeg mule multilib mysql ncurses net network nls nntp nogcj nptl offensive oggvorbis opengl pam pdflib perl plotutils png ppds python qt quicktime readline real samba scanner sdl silc slang sndfile snmp speex spell ssl system-iiimf tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vim-with-x wmf wxwindows xgetdefault xml xml2 xmms xpm xrandr xv xvid zlib linguas_en linguas_ja"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-02 19:43:45 UTC
SYMLINK_LIB shouldn't be set in the 2004.3 profile...