sys-apps/baselayout: Do not complain about lib+lib32 when it is valid
authorMichał Górny <mgorny@gentoo.org>
Sat, 3 Sep 2016 10:45:25 +0000 (12:45 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 3 Sep 2016 11:05:59 +0000 (13:05 +0200)
Remove the error on 'lib' directory with SYMLINK_LIB=no multilib layout
if lib32 is a valid directory as well. This fixes the wrong assert
in the new no-lib-symlink profile while preserving the check on regular
lib+lib64 profile.

sys-apps/baselayout/baselayout-2.3.ebuild

index b4e82d224cdd283c8a53ac68362a4c5e128ce44f..d3d135162a91ac4db168f2e56311b4c6b2bbdc7a 100644 (file)
@@ -87,7 +87,7 @@ multilib_layout() {
                                else
                                        mkdir -p "${prefix}lib" || die
                                fi
-                       elif [ -d "${prefix}lib" ] ; then
+                       elif [ -d "${prefix}lib" ] && ! has lib32 ${libdirs} ; then
                                # make sure the old "lib" ABI location does not exist; we
                                # only symlinked the lib dir on systems where we moved it
                                # to "lib32" ...