summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-03-08 14:35:45 -0500
committerMike Gilbert <floppym@gentoo.org>2021-03-08 17:29:42 -0500
commit6e4f0c0765f07696ed3b10be96a54a4a6810ac46 (patch)
tree6fbc844baf179df9f3643f0d110d4cb0f16e8a2e /eclass/tmpfiles.eclass
parentmedia-libs/waffle: Version bump to 1.7.0 (diff)
downloadgentoo-6e4f0c0765f07696ed3b10be96a54a4a6810ac46.tar.gz
gentoo-6e4f0c0765f07696ed3b10be96a54a4a6810ac46.tar.bz2
gentoo-6e4f0c0765f07696ed3b10be96a54a4a6810ac46.zip
tmpfiles.eclass: introduce TMPFILES_OPTIONAL variable
This allows the automatic dependency on virtual/tmpfiles to be disabled. Bug: https://bugs.gentoo.org/774855 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Acked-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/tmpfiles.eclass')
-rw-r--r--eclass/tmpfiles.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass
index 360c5e3b816f..632343821648 100644
--- a/eclass/tmpfiles.eclass
+++ b/eclass/tmpfiles.eclass
@@ -60,7 +60,15 @@ case "${EAPI}" in
*) die "API is undefined for EAPI ${EAPI}" ;;
esac
-RDEPEND="virtual/tmpfiles"
+# @ECLASS-VARIABLE: TMPFILES_OPTIONAL
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# When not empty, disables the dependency on virtual/tmpfiles.
+# Ebuilds that call tmpfiles_process conditionally should declare a
+# conditional dependency themselves.
+if [[ -z ${TMPFILES_OPTIONAL} ]]; then
+ RDEPEND="virtual/tmpfiles"
+fi
# @FUNCTION: dotmpfiles
# @USAGE: <tmpfiles.d_file> ...