Hello, all. Since nowadays udev is bundled within systemd, we start having two libudev providers: >=sys-apps/systemd-185 and sys-fs/udev. Making the long story short, I would like to introduce a virtual for libudev which would pull in either of those two.
There are three USE flags used in conditionals when depending on udev: - gudev - for glib wrapper on udev, - hwdb - to pull in hwids, - static-libs. The former two were previously provided by 'extras' USE flag, and the third was unconditional. I'm attaching an example virtual/libudev which does the job. Sadly, because of the 'extras' compatibility it's a big ugly conditional. An alternative would be to provide separate virtual/libudev and virtual/libgudev; and maybe changing ebuilds not to depend on [hwids] but rather pull in sys-apps/hwids directly (since that's what the flag does). What are you thoughts? -- Best regards, Michał Górny
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
DESCRIPTION="Virtual for libudev providers"
HOMEPAGE=""
SRC_URI=""
LICENSE=""
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64
s390 sh sparc x86 ~x86-linux"
IUSE="gudev hwdb static-libs"
RDEPEND="
gudev? (
hwdb? (
|| ( >=sys-fs/udev-171[gudev,hwdb,static-libs(+)?]
<sys-fs/udev-171[extras]
>=sys-apps/systemd-185[gudev,static-libs(+)?] )
)
!hwdb? (
|| ( >=sys-fs/udev-171[gudev,static-libs(+)?]
<sys-fs/udev-171[extras]
>=sys-apps/systemd-185[gudev,static-libs(+)?] )
)
)
!gudev? (
hwdb? (
|| ( >=sys-fs/udev-171[hwdb,static-libs(+)?]
<sys-fs/udev-171[extras]
>=sys-apps/systemd-185[static-libs(+)?] )
)
!hwdb? (
|| ( sys-fs/udev[static-libs(+)?]
>=sys-apps/systemd-185[static-libs(+)?] )
)
)"
signature.asc
Description: PGP signature
