1 |
This allows the automatic dependency on virtual/tmpfiles to be disabled. |
2 |
|
3 |
Bug: https://bugs.gentoo.org/774855 |
4 |
Signed-off-by: Mike Gilbert <floppym@g.o> |
5 |
--- |
6 |
eclass/tmpfiles.eclass | 10 +++++++++- |
7 |
1 file changed, 9 insertions(+), 1 deletion(-) |
8 |
|
9 |
diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass |
10 |
index 360c5e3b816f..632343821648 100644 |
11 |
--- a/eclass/tmpfiles.eclass |
12 |
+++ b/eclass/tmpfiles.eclass |
13 |
@@ -60,7 +60,15 @@ case "${EAPI}" in |
14 |
*) die "API is undefined for EAPI ${EAPI}" ;; |
15 |
esac |
16 |
|
17 |
-RDEPEND="virtual/tmpfiles" |
18 |
+# @ECLASS-VARIABLE: TMPFILES_OPTIONAL |
19 |
+# @DEFAULT_UNSET |
20 |
+# @DESCRIPTION: |
21 |
+# When not empty, disables the dependency on virtual/tmpfiles. |
22 |
+# Ebuilds that call tmpfiles_process conditionally should declare a |
23 |
+# conditional dependency themselves. |
24 |
+if [[ -z ${TMPFILES_OPTIONAL} ]]; then |
25 |
+ RDEPEND="virtual/tmpfiles" |
26 |
+fi |
27 |
|
28 |
# @FUNCTION: dotmpfiles |
29 |
# @USAGE: <tmpfiles.d_file> ... |
30 |
-- |
31 |
2.31.0.rc1 |