commit:     7e86f888dbe3f8bdbd1bba35051214a0cdf22bf8
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 18 20:02:57 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Dec 18 20:03:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e86f888

dev-libs/libxml2: fix ROOT reference for EAPI 7

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 dev-libs/libxml2/libxml2-2.9.10-r4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libxml2/libxml2-2.9.10-r4.ebuild 
b/dev-libs/libxml2/libxml2-2.9.10-r4.ebuild
index a6678320ffe..65f752d81b4 100644
--- a/dev-libs/libxml2/libxml2-2.9.10-r4.ebuild
+++ b/dev-libs/libxml2/libxml2-2.9.10-r4.ebuild
@@ -205,7 +205,7 @@ multilib_src_install_all() {
 pkg_postinst() {
        # We don't want to do the xmlcatalog during stage1, as xmlcatalog will 
not
        # be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug 
#208887.
-       if [[ "${ROOT}" != "/" ]]; then
+       if [[ -n ${ROOT} ]]; then
                elog "Skipping XML catalog creation for stage building (bug 
#208887)."
        else
                # need an XML catalog, so no-one writes to a non-existent one

Reply via email to