Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7
Date: Thu, 25 Apr 2019 21:58:03
Message-Id: CAJ0EP41jM4TEQ9wttwVrYbbsj=JanShThz8nESuVG97yrVui3A@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7 by James Le Cuirot
1 On Thu, Apr 25, 2019 at 5:50 PM James Le Cuirot <chewi@g.o> wrote:
2 >
3 > On Thu, 25 Apr 2019 17:46:50 -0400
4 > Mike Gilbert <floppym@g.o> wrote:
5 >
6 > > Signed-off-by: Mike Gilbert <floppym@g.o>
7 > > ---
8 > > eclass/tmpfiles.eclass | 2 +-
9 > > 1 file changed, 1 insertion(+), 1 deletion(-)
10 > >
11 > > diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass
12 > > index a8bb9061ec8c..f23c7c77ab07 100644
13 > > --- a/eclass/tmpfiles.eclass
14 > > +++ b/eclass/tmpfiles.eclass
15 > > @@ -113,7 +113,7 @@ tmpfiles_process() {
16 > > [[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename"
17 > >
18 > > # Only process tmpfiles for the currently running system
19 > > - if [[ ${ROOT} != / ]]; then
20 > > + if [[ ${ROOT:-/} != / ]]; then
21 > > ewarn "Warning: tmpfiles.d not processed on ROOT != /. If you do not use"
22 > > ewarn "a service manager supporting tmpfiles.d, you need to run"
23 > > ewarn "the following command after booting (or chroot-ing with all"
24 >
25 > Ack.
26
27 Pushed, along with an updated copyright notice.