FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

LinkBack Thread Tools
Old 07-10-2012, 03:18 PM
Michał Górny
Default RFC: virtual/libudev

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: $


DESCRIPTION="Virtual for libudev providers"

KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64
s390 sh sparc x86 ~x86-linux"
IUSE="gudev hwdb static-libs"

gudev? (
hwdb? (
|| ( >=sys-fs/udev-171[gudev,hwdb,static-libs(+)?]
>=sys-apps/systemd-185[gudev,static-libs(+)?] )
!hwdb? (
|| ( >=sys-fs/udev-171[gudev,static-libs(+)?]
>=sys-apps/systemd-185[gudev,static-libs(+)?] )
!gudev? (
hwdb? (
|| ( >=sys-fs/udev-171[hwdb,static-libs(+)?]
>=sys-apps/systemd-185[static-libs(+)?] )
!hwdb? (
|| ( sys-fs/udev[static-libs(+)?]
>=sys-apps/systemd-185[static-libs(+)?] )

Thread Tools

All times are GMT. The time now is 07:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org