commit: 4ca6f4764d3c2d826a52152a71a7dcdf66d120df Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Sun Sep 6 13:55:18 2020 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Wed Sep 9 14:44:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ca6f476
systemd.eclass: fix systemd_tmpfiles_create under EAPI 7 Closes: https://bugs.gentoo.org/740586 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> eclass/systemd.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index 04f277e94d6..97ecf0786ae 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -448,7 +448,7 @@ systemd_tmpfiles_create() { [[ ${EBUILD_PHASE} == postinst ]] || die "${FUNCNAME}: Only valid in pkg_postinst" [[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename" - [[ ${ROOT} == / ]] || return 0 + [[ ${ROOT:-/} == / ]] || return 0 type systemd-tmpfiles &> /dev/null || return 0 systemd-tmpfiles --create "${@}" }