commit: 0caef46a8ee3707d570adce97614ffffadb1dbdc
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 15 02:01:29 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 15 02:03:38 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0caef46a
virtual/udev: add USE=systemd to help dependency resolution
Portage sometimes struggles when moving between OpenRC <-> systemd and ends up
wasting cycles trying to make e.g. eudev work instead of the only feasible
option on say, systemd.
Give it a hint like we do in virtual/libudev.
Signed-off-by: Sam James <sam <AT> gentoo.org>
virtual/udev/udev-217-r6.ebuild | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/virtual/udev/udev-217-r6.ebuild b/virtual/udev/udev-217-r6.ebuild
index 191d650ca8fc..72c317f8976f 100644
--- a/virtual/udev/udev-217-r6.ebuild
+++ b/virtual/udev/udev-217-r6.ebuild
@@ -1,16 +1,19 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
DESCRIPTION="Virtual to select between different udev daemon providers"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64
~riscv ~s390 sparc x86"
+IUSE="systemd"
RDEPEND="
- || (
- sys-apps/systemd-utils[udev]
- >=sys-fs/eudev-2.1.1
- >=sys-apps/systemd-217
+ systemd? ( >=sys-apps/systemd-217 )
+ !systemd? (
+ || (
+ sys-apps/systemd-utils[udev]
+ >=sys-fs/eudev-2.1.1
+ )
)
"