summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-07-30 14:07:47 -0400
committerMike Gilbert <floppym@gentoo.org>2023-07-31 11:21:54 -0400
commit6404b064d63d182da4a8a193533a188cdf832d41 (patch)
treed5952006f4c4789b4831445213c4222516f027f0 /virtual
parentsys-apps/systemd: add wiki link to split-usr death message (diff)
downloadgentoo-6404b064d63d182da4a8a193533a188cdf832d41.tar.gz
gentoo-6404b064d63d182da4a8a193533a188cdf832d41.tar.bz2
gentoo-6404b064d63d182da4a8a193533a188cdf832d41.zip
virtual/libudev: add eudev and sticky-tags USE flags
eudev lacks API support for the new libudev functions that differentiate between sticky and current tags on device events. Add a USE flag so we can depend on the new API from libgudev. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'virtual')
-rw-r--r--virtual/libudev/libudev-251-r1.ebuild (renamed from virtual/libudev/libudev-251.ebuild)11
-rw-r--r--virtual/libudev/metadata.xml4
2 files changed, 13 insertions, 2 deletions
diff --git a/virtual/libudev/libudev-251.ebuild b/virtual/libudev/libudev-251-r1.ebuild
index c71810b3f0de..7dd9c8abb9b8 100644
--- a/virtual/libudev/libudev-251.ebuild
+++ b/virtual/libudev/libudev-251-r1.ebuild
@@ -9,11 +9,18 @@ DESCRIPTION="Virtual for libudev providers"
SLOT="0/1"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
-IUSE="systemd"
+IUSE="eudev +sticky-tags systemd"
+REQUIRED_USE="
+ ?? ( eudev systemd )
+ eudev? ( !sticky-tags )
+"
# eudev does not provide v251 APIs, see
# https://github.com/eudev-project/eudev/issues/249
RDEPEND="
- !systemd? ( >=sys-apps/systemd-utils-251[udev,${MULTILIB_USEDEP}] )
+ !systemd? (
+ eudev? ( sys-fs/eudev[${MULTILIB_USEDEP}] )
+ !eudev? ( >=sys-apps/systemd-utils-251[udev,${MULTILIB_USEDEP}] )
+ )
systemd? ( >=sys-apps/systemd-251:0/2[${MULTILIB_USEDEP}] )
"
diff --git a/virtual/libudev/metadata.xml b/virtual/libudev/metadata.xml
index d3d2736bbc51..a77c7ba23870 100644
--- a/virtual/libudev/metadata.xml
+++ b/virtual/libudev/metadata.xml
@@ -7,5 +7,9 @@
<maintainer type="project">
<email>systemd@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="eudev">Depend on <pkg>sys-fs/eudev</pkg></flag>
+ <flag name="sticky-tags">Enable API support for sticky tags</flag>
+ </use>
<stabilize-allarches/>
</pkgmetadata>