# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 11 Oct 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/support/chroot-functions.sh:
+ Added a version of get_libdir from multilib.eclass so we can determine where
+ to go poking around if we need to touch anything in libdir.
+
11 Oct 2007; Andrew Gaffney <agaffney@gentoo.org> catalyst:
print an error saying what target failed before the traceback
+#!/bin/bash
# Trap these signals and kill ourselves if recieved
# Force ourselves to die if any of these signals are recieved
fi
}
+get_libdir() {
+ DEFAULT_ABI=$(portageq envvar DEFAULT_ABI)
+ LIBDIR_default=$(portageq envvar LIBDIR_default)
+ MULTILIB_ABIS=${MULTILIB_ABIS:-"default"}
+ export DEFAULT_ABI=${DEFAULT_ABI:-"default"}
+ export LIBDIR_default=${CONF_LIBDIR:-"lib"}
+
+ local abi
+ if [ $# -gt 0 ]
+ then
+ abi=${1}
+ elif [ -n "${ABI}" ]
+ then
+ abi=${ABI}
+ elif [ -n "${DEFAULT_ABI}" ]
+ then
+ abi=${DEFAULT_ABI}
+ else
+ abi="default"
+ fi
+
+ local var="LIBDIR_${abi}"
+ var=$(portageq envvar ${var})
+ echo ${var}
+}
+
setup_myfeatures(){
setup_myemergeopts
if [ -n "${clst_CCACHE}" ]