summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-22 18:42:42 +0100
committerSam James <sam@gentoo.org>2022-04-22 18:43:09 +0100
commitb6803d6d2c323f3133445ab886dce168429f39d2 (patch)
treeaecf2e19639cef891467a45f08dcb52422c96bbd /net-dns/openresolv
parentmedia-libs/fontconfig: cleanup ROOT test (diff)
downloadgentoo-b6803d6d2c323f3133445ab886dce168429f39d2.tar.gz
gentoo-b6803d6d2c323f3133445ab886dce168429f39d2.tar.bz2
gentoo-b6803d6d2c323f3133445ab886dce168429f39d2.zip
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@gentoo.org>
Diffstat (limited to 'net-dns/openresolv')
-rw-r--r--net-dns/openresolv/openresolv-3.12.0-r1.ebuild (renamed from net-dns/openresolv/openresolv-3.12.0.ebuild)4
1 files 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
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