sys-apps/baselayout: sync live ebuild
authorWilliam Hubbs <williamh@gentoo.org>
Thu, 24 May 2018 17:11:35 +0000 (12:11 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Thu, 24 May 2018 17:13:44 +0000 (12:13 -0500)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

sys-apps/baselayout/baselayout-9999.ebuild

index 2d016a01e5b394ec414c3614f7272873c929015d..866701708dc6a2b805728fddd6c2e51cd41def32 100644 (file)
@@ -63,11 +63,11 @@ multilib_layout() {
        # data ... just fall over in that case.
        local prefix prefix_lst
        if use split-usr ; then
-               prefix_lst="${EROOT}"{,usr/,usr/local/}
+               prefix_lst=( "${EROOT}"{,usr/,usr/local/} )
        else
-               prefix_lst="${EROOT}"{usr/,usr/local/}
+               prefix_lst=( "${EROOT}"{usr/,usr/local/} )
        fi
-       for prefix in "${prefix_lst}"; do
+       for prefix in "${prefix_lst[@]}"; do
                if [ "${SYMLINK_LIB}" = yes ] ; then
                        # we need to make sure "lib" points to the native libdir
                        if [ -h "${prefix}lib" ] ; then
@@ -258,6 +258,11 @@ pkg_postinst() {
                        ewarn "Please run env-update then log out and back in to"
                        ewarn "update your path."
                fi
+               # clean up after 2.5 typos
+               # https://bugs.gentoo.org/show_bug.cgi?id=656380
+               if [[ ${x} == 2.5 ]]; then
+                       rm -fr "${EROOT}{,usr"
+               fi
        done
 
        if [[ -e "${EROOT}"etc/env.d/00basic ]]; then