Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351227 - app-misc/cwiid-20110107 udev rules etc.
Summary: app-misc/cwiid-20110107 udev rules etc.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Fabio Erculiani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 334809
  Show dependency tree
 
Reported: 2011-01-09 17:32 UTC by Jouni Rinne
Modified: 2011-01-11 15:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
files/99-uinput.rules (99-uinput.rules,46 bytes, text/plain)
2011-01-09 19:03 UTC, Marco Clocchiatti
Details
cwiid-20110107.ebuild (cwiid-20110107.ebuild,1.60 KB, text/plain)
2011-01-09 19:04 UTC, Marco Clocchiatti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Rinne 2011-01-09 17:32:52 UTC
It's excellent that cwiid finally entered portage; however, a few notes about the ebuild:
1) cwiid needs a set of udev rules to be able to be used by normal user, otherwise you are stuck running it as root. So, please consider adding the following lines (or something similar) to the ebuild:

+cat <<- EOF > 99-uinput.rules
+KERNEL=="uinput", MODE="0660", GROUP="plugdev"
+EOF
+
+insinto /etc/udev/rules.d
+doins 99-uinput.rules

2) What's the point of 'bluetooth'-use-flag? Nintendo Wiimote is a bluetooth device, so you can't use without net-wireless/bluez anyway. I don't think cwiid ever compiles without bluez (didn't test; waste of time).

3) dodoc is missing.

Other than that, a long awaited package :)
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2011-01-09 17:49:04 UTC
Thanks, will be addressed as soon as possible
Comment 2 Marco Clocchiatti 2011-01-09 19:03:30 UTC
Created attachment 259405 [details]
files/99-uinput.rules
Comment 3 Marco Clocchiatti 2011-01-09 19:04:05 UTC
Created attachment 259407 [details]
cwiid-20110107.ebuild
Comment 4 Rafał Mużyło 2011-01-09 20:33:50 UTC
A minor note: udev 165 still ships with a Gentoo rule of:
KERNEL=="ts[0-9]*|uinput", NAME="input/%k"

File providing that rule is maintained by Gentoo.
By now, that rule is pointless and serves only to cause a warning.

OTOH, default udev rule is:
KERNEL=="ts[0-9]*|uinput", MODE="0640"
Comment 5 Marco Clocchiatti 2011-01-10 13:49:18 UTC
(In reply to comment #4)
> A minor note: udev 165 still ships with a Gentoo rule of:

sorry. please correct me if I'm wrong.
looking here: http://packages.gentoo.org/package/sys-fs/udev
no udev-165 version exist up today.

even here:
cloc3@s939 ~ $ grep -rH uinput /usr/portage/sys-fs/udev/
cloc3@s939 ~ $ 

I not find anything about uinput udev rules.

so, I guess the problem you pointing about is not for persent, but for future.

I agree that a gentoo global politic for uinput udev rules should be better then a local one in a single ebuild.

perhaps, may I stady a reversible way to add 99-uinput.rules file, depending from a logical condition about udev version.
Comment 6 Marco Clocchiatti 2011-01-10 13:55:15 UTC
(In reply to comment #5)
> even here:
> cloc3@s939 ~ $ grep -rH uinput /usr/portage/sys-fs/udev/
> cloc3@s939 ~ $ 
> 
> I not find anything about uinput udev rules.
> 
ops: now I've found:
cloc3@s939 ~ $ tar xjf /var/gentoo-var/distfiles/udev-164.tar.bz2 udev-164/rules/rules.d -O|grep uinput
KERNEL=="ts[0-9]*|uinput",	MODE="0640"


Comment 7 Fabio Erculiani (RETIRED) gentoo-dev 2011-01-11 07:17:52 UTC
+*cwiid-20110107-r1 (11 Jan 2011)
+
+  11 Jan 2011; Fabio Erculiani <lxnay@gentoo.org> +files/60-cwiid.rules,
+  -cwiid-20110107.ebuild, +cwiid-20110107-r1.ebuild:
+  add dodoc, implement udev rules, remove useless bluetooth use flag, close
+  bug #351227, thanks to Jouni Rinne
+

Thanks.
Comment 8 Rafał Mużyło 2011-01-11 14:44:47 UTC
As that rule file (as per the comment in it) is maintained by Gentoo,
perhaps Gentoo should simply ping udev upstream about it ?
Comment 9 Fabio Erculiani (RETIRED) gentoo-dev 2011-01-11 15:21:22 UTC
No, we have many custom udev rules in our ebuilds in tree. I don't think udev upstream would be interested.