Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Cc: Mike Gilbert <floppym@g.o>
Subject: [gentoo-dev] [PATCH 2/2] systemd.eclass: deprecate tmpfiles functions
Date: Sun, 06 Sep 2020 14:02:02
Message-Id: 20200906140130.22519-2-floppym@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/2] systemd.eclass: fix systemd_tmpfiles_create under EAPI 7 by Mike Gilbert
1 Bug: https://bugs.gentoo.org/740638
2 Signed-off-by: Mike Gilbert <floppym@g.o>
3 ---
4 eclass/systemd.eclass | 6 ++++++
5 1 file changed, 6 insertions(+)
6
7 diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
8 index 97ecf0786aef..09ea71bbfdc5 100644
9 --- a/eclass/systemd.eclass
10 +++ b/eclass/systemd.eclass
11 @@ -240,6 +240,8 @@ systemd_install_serviced() {
12 # @FUNCTION: systemd_dotmpfilesd
13 # @USAGE: <tmpfilesd>...
14 # @DESCRIPTION:
15 +# Deprecated in favor of tmpfiles.eclass.
16 +#
17 # Install systemd tmpfiles.d files. Uses doins, thus it is fatal
18 # in EAPI 4 and non-fatal in earlier EAPIs.
19 systemd_dotmpfilesd() {
20 @@ -260,6 +262,8 @@ systemd_dotmpfilesd() {
21 # @FUNCTION: systemd_newtmpfilesd
22 # @USAGE: <old-name> <new-name>.conf
23 # @DESCRIPTION:
24 +# Deprecated in favor of tmpfiles.eclass.
25 +#
26 # Install systemd tmpfiles.d file under a new name. Uses newins, thus it
27 # is fatal in EAPI 4 and non-fatal in earlier EAPIs.
28 systemd_newtmpfilesd() {
29 @@ -435,6 +439,8 @@ systemd_is_booted() {
30 # @FUNCTION: systemd_tmpfiles_create
31 # @USAGE: <tmpfilesd> ...
32 # @DESCRIPTION:
33 +# Deprecated in favor of tmpfiles.eclass.
34 +#
35 # Invokes systemd-tmpfiles --create with given arguments.
36 # Does nothing if ROOT != / or systemd-tmpfiles is not in PATH.
37 # This function should be called from pkg_postinst.
38 --
39 2.28.0