tmpfiles.eclass: fix ROOT check for EAPI 7
authorMike Gilbert <floppym@gentoo.org>
Thu, 25 Apr 2019 21:44:59 +0000 (17:44 -0400)
committerMike Gilbert <floppym@gentoo.org>
Thu, 25 Apr 2019 21:57:02 +0000 (17:57 -0400)
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/tmpfiles.eclass

index a8bb9061ec8cc618cb1b2f60ff158dfc427cce46..68478ffbcd69f75bcef731ed1dc40c4132858279 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 2016-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: tmpfiles.eclass
@@ -113,7 +113,7 @@ tmpfiles_process() {
        [[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename"
 
        # Only process tmpfiles for the currently running system
-       if [[ ${ROOT} != / ]]; then
+       if [[ ${ROOT:-/} != / ]]; then
                ewarn "Warning: tmpfiles.d not processed on ROOT != /. If you do not use"
                ewarn "a service manager supporting tmpfiles.d, you need to run"
                ewarn "the following command after booting (or chroot-ing with all"