commit:     b6803d6d2c323f3133445ab886dce168429f39d2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 17:42:42 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 17:43:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6803d6d

net-dns/openresolv: fix ROOT check in pkg_postinst

With EAPI 7+, ROOT and others will be blank (not /).

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{openresolv-3.12.0.ebuild => openresolv-3.12.0-r1.ebuild}         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-dns/openresolv/openresolv-3.12.0.ebuild 
b/net-dns/openresolv/openresolv-3.12.0-r1.ebuild
similarity index 93%
rename from net-dns/openresolv/openresolv-3.12.0.ebuild
rename to net-dns/openresolv/openresolv-3.12.0-r1.ebuild
index 02760645cc01..69e175c0d2ab 100644
--- a/net-dns/openresolv/openresolv-3.12.0.ebuild
+++ b/net-dns/openresolv/openresolv-3.12.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -25,7 +25,7 @@ src_configure() {
 }
 
 pkg_config() {
-       if [[ ${ROOT} != / ]]; then
+       if [[ -z ${ROOT} ]]; then
                eerror "We cannot configure unless \$ROOT=/"
                return 1
        fi

Reply via email to