Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 09 Sep 2020 14:46:01
Message-Id: 1599662678.4ca6f4764d3c2d826a52152a71a7dcdf66d120df.floppym@gentoo
1 commit: 4ca6f4764d3c2d826a52152a71a7dcdf66d120df
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 6 13:55:18 2020 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 9 14:44:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ca6f476
7
8 systemd.eclass: fix systemd_tmpfiles_create under EAPI 7
9
10 Closes: https://bugs.gentoo.org/740586
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 eclass/systemd.eclass | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
17 index 04f277e94d6..97ecf0786ae 100644
18 --- a/eclass/systemd.eclass
19 +++ b/eclass/systemd.eclass
20 @@ -448,7 +448,7 @@ systemd_tmpfiles_create() {
21
22 [[ ${EBUILD_PHASE} == postinst ]] || die "${FUNCNAME}: Only valid in pkg_postinst"
23 [[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename"
24 - [[ ${ROOT} == / ]] || return 0
25 + [[ ${ROOT:-/} == / ]] || return 0
26 type systemd-tmpfiles &> /dev/null || return 0
27 systemd-tmpfiles --create "${@}"
28 }