commit:     c2f0770f1e07112022c3efab29bde481ff0f2597
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 23 02:05:56 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 23 02:05:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2f0770f

dev-db/myodbc: 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>

 dev-db/myodbc/{myodbc-8.0.27.ebuild => myodbc-8.0.27-r1.ebuild} | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dev-db/myodbc/myodbc-8.0.27.ebuild 
b/dev-db/myodbc/myodbc-8.0.27-r1.ebuild
similarity index 99%
rename from dev-db/myodbc/myodbc-8.0.27.ebuild
rename to dev-db/myodbc/myodbc-8.0.27-r1.ebuild
index 21745e0ba5ee..7689549feac7 100644
--- a/dev-db/myodbc/myodbc-8.0.27.ebuild
+++ b/dev-db/myodbc/myodbc-8.0.27-r1.ebuild
@@ -92,8 +92,7 @@ multilib_src_install_all() {
 }
 
 pkg_config() {
-
-       [ "${ROOT}" != "/" ] && \
+       [ -n "${ROOT}" ] && \
                die 'Sorry, non-standard ROOT setting is not supported :-('
 
        local msg='MySQL ODBC driver'

Reply via email to