public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] RFC: virtual/libudev
@ 2012-07-10 15:18 Michał Górny
  2012-07-10 16:54 ` Alexis Ballier
                   ` (4 more replies)
  0 siblings, 5 replies; 92+ messages in thread
From: Michał Górny @ 2012-07-10 15:18 UTC (permalink / raw
  To: Gentoo Developer Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 938 bytes --]

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

[-- Attachment #1.2: libudev-0.ebuild --]
[-- Type: text/plain, Size: 943 bytes --]

# 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(+)?] )
		)
	)"

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 92+ messages in thread

end of thread, other threads:[~2012-08-11 18:40 UTC | newest]

Thread overview: 92+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-10 15:18 [gentoo-dev] RFC: virtual/libudev Michał Górny
2012-07-10 16:54 ` Alexis Ballier
2012-07-10 17:57   ` Michał Górny
2012-07-10 18:15     ` William Hubbs
2012-07-10 19:23 ` Thomas Sachau
2012-07-11  4:51   ` Ben de Groot
2012-07-11  6:34     ` [gentoo-dev] " Duncan
2012-07-11  7:15     ` [gentoo-dev] " Michał Górny
2012-07-11  8:27       ` [gentoo-dev] " Duncan
2012-07-11  8:33         ` Michał Górny
2012-07-11 10:40         ` Rich Freeman
2012-07-11 13:02           ` Ian Stakenvicius
2012-07-11 13:49             ` Michael Mol
2012-07-11 14:06               ` Rich Freeman
2012-07-11 14:26                 ` Michael Mol
2012-07-12  3:40               ` Walter Dnes
2012-07-12 13:37                 ` [gentoo-dev] udev <-> mdev Ian Stakenvicius
2012-07-12 20:07                   ` Walter Dnes
2012-07-12 22:29                     ` William Hubbs
2012-07-13  5:58                       ` [gentoo-dev] " Duncan
2012-07-13 20:04                         ` Walter Dnes
2012-07-13 20:12                           ` Richard Yao
2012-07-13 22:49                             ` Maxim Kammerer
2012-07-14  0:13                               ` Walter Dnes
2012-07-14  0:36                                 ` Canek Peláez Valdés
2012-07-14  0:40                                 ` Michael Mol
2012-07-14  1:10                                   ` Walter Dnes
2012-07-14  1:15                                     ` Michael Mol
2012-07-14  1:21                                     ` Olivier Crête
2012-07-14  1:29                                       ` Rich Freeman
2012-07-29 11:31                                       ` Luca Barbato
2012-07-14  0:41                                 ` Maxim Kammerer
2012-07-14  1:22                                   ` Walter Dnes
2012-07-14  1:28                                     ` Michael Mol
2012-07-14  2:32                                       ` Canek Peláez Valdés
2012-07-14  2:34                                         ` Canek Peláez Valdés
2012-07-29 11:38                                           ` Luca Barbato
2012-07-30 16:44                                             ` Walter Dnes
2012-07-14  3:13                                 ` William Hubbs
2012-07-14  5:35                                   ` Sylvain Alain
2012-07-14  6:30                                     ` Canek Peláez Valdés
2012-07-14 21:02                                       ` Peter Stuge
2012-07-14 21:29                                         ` Canek Peláez Valdés
2012-07-14 21:52                                           ` Peter Stuge
2012-07-14 23:38                                           ` Duncan
2012-07-14 23:57                                             ` Rich Freeman
2012-07-15  1:02                                               ` Duncan
2012-07-15 12:30                                                 ` Rich Freeman
2012-07-15 18:25                                                   ` Duncan
2012-07-15 18:48                                                     ` Rich Freeman
2012-07-16  0:30                                                       ` Duncan
2012-07-16  0:57                                                         ` Michael Mol
2012-07-16  8:40                                                           ` Duncan
2012-07-16  9:22                                                             ` Peter Stuge
2012-07-16  1:00                                                         ` Maxim Kammerer
2012-07-16 13:53                                                           ` Ian Stakenvicius
2012-07-16 17:52                                                             ` Duncan
2012-07-16  7:30                                   ` Nicolas Sebrecht
2012-07-14  6:13                                 ` Graham Murray
2012-07-14 11:33                                   ` Duncan
2012-07-15 22:34                         ` Walter Dnes
2012-07-11 14:09   ` [gentoo-dev] RFC: virtual/libudev Michał Górny
2012-07-11 14:35     ` Rich Freeman
2012-07-11 14:52       ` Michał Górny
2012-07-11 15:05         ` Rich Freeman
2012-07-11 18:26     ` Thomas Sachau
2012-07-11 19:27       ` Mike Gilbert
2012-07-11 19:54         ` William Hubbs
2012-07-11 20:33           ` Mike Gilbert
2012-07-11 20:54             ` William Hubbs
2012-07-12 17:16             ` vivo75
2012-07-11 21:04         ` Michał Górny
2012-07-26 21:44           ` Peter Alfredsen
2012-07-26 22:08             ` Canek Peláez Valdés
2012-07-27  2:37               ` [gentoo-dev] " Duncan
2012-07-27  2:49                 ` Canek Peláez Valdés
2012-07-27 15:50                   ` William Hubbs
2012-07-28 16:51                 ` Roy Bamford
2012-07-29  0:14                   ` Duncan
2012-07-29  1:01                     ` Peter Stuge
2012-07-10 19:24 ` [gentoo-dev] " William Hubbs
2012-08-10  7:59   ` Michał Górny
2012-08-10 17:33     ` Thomas Sachau
2012-08-10 18:13       ` Michał Górny
2012-08-10 20:23         ` Thomas Sachau
2012-08-11 18:11           ` Peter Alfredsen
2012-08-11 18:29             ` Michał Górny
2012-08-11 18:39               ` Peter Alfredsen
2012-07-11  8:03 ` Samuli Suominen
2012-07-11  8:56   ` Diego Elio Pettenò
2012-07-11  8:31 ` Samuli Suominen
2012-07-11 14:04   ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox