Bug 178671 - net-wireless/bluez-utils-3.10-r1 installs redundant udev rules to a wrong place
Bug#: 178671 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: betelgeuse@gentoo.org Reported By: jakub@gentoo.org
Component: Ebuilds
URL: 
Summary: net-wireless/bluez-utils-3.10-r1 installs redundant udev rules to a wrong place
Keywords:  
Status Whiteboard: 
Opened: 2007-05-15 18:48 0000
Description:   Opened: 2007-05-15 18:48 0000
$ equery f bluez-utils | grep /etc/udev
/etc/udev
/etc/udev/bluetooth.rules <-- not needed, nor useful there
/etc/udev/rules.d
/etc/udev/rules.d/70-bluetooth.rules

Looks like this comes from --enable-pcmciarules in configure.

------- Comment #1 From Dick Marinus 2007-05-15 19:23:56 0000 -------
yeah, I suppose we should drop pcmcia rules:

# cat scripts/Makefile.am 

if PCMCIARULES
rulesdir = $(sysconfdir)/udev

rules_DATA = bluetooth.rules

udevdir = $(libexecdir)/udev

udev_SCRIPTS = bluetooth_serial
endif

====

Index: bluez-utils-3.10-r1.ebuild
===================================================================
--- bluez-utils-3.10-r1.ebuild  (revision 3641)
+++ bluez-utils-3.10-r1.ebuild  (working copy)
@@ -48,7 +48,7 @@
                --enable-hidd \
                --enable-configfiles \
                --disable-initscripts \
-               --enable-pcmciarules \
+               --disable-pcmciarules \
                --enable-bccmd \
                --enable-avctrl \
                --enable-hid2hci \

------- Comment #2 From Petteri Räty 2007-05-15 19:51:31 0000 -------
(In reply to comment #1)
> yeah, I suppose we should drop pcmcia rules:
> 

Did you check that our rules file is up2date?

------- Comment #3 From Jakub Moc (RETIRED) 2007-05-15 21:44:25 0000 -------
Created an attachment (id=119401) [details]
bluetooth.rules.diff

(In reply to comment #2)
> Did you check that our rules file is up2date?

Well, we don't install any, see the diff :) Might be worth merging them.

------- Comment #4 From Jakub Moc (RETIRED) 2007-05-15 21:46:57 0000 -------
Created an attachment (id=119402) [details]
bluetooth.rules.diff

Bleh; I need coffee...

------- Comment #5 From Petteri Räty 2007-05-15 21:57:05 0000 -------
(In reply to comment #3)
>
> Well, we don't install any, see the diff :) Might be worth merging them.
> 

Probably. I guess I should change the install location of the helper too:

betelgeuse@pena ~ $ qlist bluez | grep serial
/usr/libexec/udev/bluetooth_serial

udev people: Should be /lib/udev or?

------- Comment #6 From Matthias Schwarzott 2007-05-15 22:43:55 0000 -------
(In reply to comment #5)
> (In reply to comment #3)
> >
> > Well, we don't install any, see the diff :) Might be worth merging them.
> > 
> 
> Probably. I guess I should change the install location of the helper too:
> 
> betelgeuse@pena ~ $ qlist bluez | grep serial
> /usr/libexec/udev/bluetooth_serial
> 
> udev people: Should be /lib/udev or?
> 

If this is to be called from an udev rule, then yes.
Or to be multilib compatible you can use /lib/$(get_libdir) - but that has not
been checked to be used everywhere.

------- Comment #7 From Matthias Schwarzott 2007-05-16 09:09:18 0000 -------
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #3)
> > >
> > > Well, we don't install any, see the diff :) Might be worth merging them.
> > > 
> > 
> > Probably. I guess I should change the install location of the helper too:
> > 
> > betelgeuse@pena ~ $ qlist bluez | grep serial
> > /usr/libexec/udev/bluetooth_serial
> > 
> > udev people: Should be /lib/udev or?
> > 
> 
> If this is to be called from an udev rule, then yes.
> Or to be multilib compatible you can use /lib/$(get_libdir) - but that has not
> been checked to be used everywhere.
> 
Had a look at the files:
Just move the rules-file to /etc/udev/rules.d/.
And the other file to /lib/$(get_libdir)
Then you can remove the path to it in the rules, as udev auto-searches
/lib/udev.

------- Comment #8 From Petteri Räty 2007-05-16 09:52:30 0000 -------
+*bluez-utils-3.10-r2 (16 May 2007)
+
+  16 May 2007; Petteri Räty <betelgeuse@gentoo.org>
+  +bluez-utils-3.10-r2.ebuild:
+  Install pcmcia udev rules and the helper to right directories. Fixes bug
+  #178671.
+