Author: Heiko Przybyl Desc: Don't return libdirs containing EROOT which would break all depending eselect modules, since they expect only values defined in ES_VALID_MULTILIB_DIRS. This failure seems to occur due to the assumption that ROOT=/ in gx86, which gets eprefixied to EROOT and then possibly $EROOT/{lib,lib32,lib64} is returned. This seems to only happen if $EROOT/etc/ld.so.conf does not contain $EROOT/*/lib{,32,64}. --- multilib.bash 2009-10-11 12:16:06.689958000 +0200 +++ multilib.bash.new 2009-10-11 12:15:51.403554032 +0200 @@ -32,6 +32,7 @@ list_libdirs() { # Broken or non-existing ld.so.conf libdirs=( "${EROOT}"/lib* ) + libdirs=( ${libdirs[@]/${EROOT}} ) libdirs=( ${libdirs[@]/\/lib/lib} ) fi echo "${libdirs[@]}" }