Gentoo Archives: gentoo-dev

From: Joshua Kinard <kumba@g.o>
To: Gentoo-dev <gentoo-dev@l.g.o>
Subject: [gentoo-dev] Make udev optional in net-wireless/bluez?
Date: Sun, 09 Mar 2014 02:23:31
Message-Id: 531BD08F.1000003@gentoo.org
1 So I want to try and play around with a particular network domination tool
2 on my home network, Omphalos. However, its current configure script has a
3 hard dependency on bluetooth.h, part of the net-wireless/bluez package.
4
5 Currently, net-wireless/bluez has a harddep on virtual/udev, which works
6 great if you use either udev or eudev. I'm using busybox's mdev instead, so
7 the logic of the bluez ebuild needs some changes:
8
9 --- bluez-5.15.ebuild 2014-03-08 21:13:24.049329018 -0500
10 +++ bluez-5.15-r1.ebuild 2014-03-08 21:17:28.029686862 -0500
11 @@ -16,3 +16,3 @@ SLOT="0/3"
12 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
13 -IUSE="cups debug +obex readline selinux systemd test"
14 +IUSE="cups debug +obex readline selinux systemd test udev"
15 REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )"
16 @@ -23,3 +23,4 @@ RDEPEND="
17 >=sys-apps/hwids-20121202.2
18 - >=virtual/udev-171
19 + udev? ( >=virtual/udev-171 )
20 + !udev? ( virtual/dev-manager )
21 cups? ( net-print/cups:= )
22 @@ -94,3 +95,3 @@ src_configure() {
23 --enable-monitor \
24 - --enable-udev \
25 + $(use_enable udev) \
26 $(use_enable cups) \
27 @@ -136,3 +137,5 @@ pkg_postinst() {
28
29 - udev_reload
30 + if use udev ; then
31 + udev_reload
32 + fi
33
34 Thoughts on this?
35
36 The other option is to split the libbluetooth bits out from bluez and put
37 them into their own package. This would be equivalent to Debian's
38 libbluetooth-dev it looks. Anyone know of any other use cases where a
39 separate libbluetooth package would be useful?
40
41 Omphalos:
42 http://nick-black.com/dankwiki/index.php/Omphalos
43
44 --
45 Joshua Kinard
46 Gentoo/MIPS
47 kumba@g.o
48 4096R/D25D95E3 2011-03-28
49
50 "The past tempts us, the present confuses us, the future frightens us. And
51 our lives slip away, moment by moment, lost in that vast, terrible in-between."
52
53 --Emperor Turhan, Centauri Republic

Replies

Subject Author
Re: [gentoo-dev] Make udev optional in net-wireless/bluez? Alexandre Rostovtsev <tetromino@g.o>