Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442742 - app-emulation/virtualbox-4.2.4 udev rules do not match location of VBoxCreateUSBNode.sh
Summary: app-emulation/virtualbox-4.2.4 udev rules do not match location of VBoxCreate...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-11 15:36 UTC by Cesar Garcia
Modified: 2012-12-13 18:48 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cesar Garcia 2012-11-11 15:36:12 UTC
The bug is simple: VBoxCreateUSBNode.sh gets installed into /usr/lib/udev/ but 10-virtualbox.rules uses /lib/udev/VBoxCreateUSBNode.sh instead, so /dev/vboxusb doesn't get created. I made a workaround by changing all the paths in 10-virtualbox.rules to /usr/lib/udev/VBoxCreateUSBNode.sh.

Note that the virtualbox ebuild installs VBoxCreateUSBNode.sh into ${udevdir} but virtualbox-bin installs into "${D}"/lib/udev. So Whats the correct one?

For the record i am using sys-fs/udev-195.

Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-11-12 18:23:45 UTC
+*virtualbox-4.2.4-r1 (12 Nov 2012)
+*virtualbox-4.2.2-r1 (12 Nov 2012)
+
+  12 Nov 2012; Lars Wendler <polynomial-c@gentoo.org>
+  files/10-virtualbox.rules, -virtualbox-4.2.2.ebuild,
+  +virtualbox-4.2.2-r1.ebuild, -virtualbox-4.2.4.ebuild,
+  +virtualbox-4.2.4-r1.ebuild:
+  Fixed udevdir in rules file. Thanks to Cesar Garcia who reported this in bug
+  #442742.
+

(In reply to comment #0)
> Note that the virtualbox ebuild installs VBoxCreateUSBNode.sh into
> ${udevdir} but virtualbox-bin installs into "${D}"/lib/udev. So Whats the
> correct one?

The file from virtualbox ebuild is installed dynamically depending on the udev version being in use. So virtualbox-bin needs a fix for this (see bug #430424).
Comment 2 BT 2012-12-13 10:03:30 UTC
With this change I now get the following error messages during boot with stable virtualbox-4.1.22 and udev-171-r9.

udevd[1396]: failed to execute '/lib/udev/%UDEVDIR%/VBoxCreateUSBNode.sh' '%UDEVDIR%/VBoxCreateUSBNode.sh 189 130 00': No such file or directory
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-12-13 18:48:15 UTC
+*virtualbox-4.1.22-r1 (13 Dec 2012)
+
+  13 Dec 2012; Lars Wendler <polynomial-c@gentoo.org>
+  -virtualbox-4.1.22.ebuild, +virtualbox-4.1.22-r1.ebuild:
+  Revbump so stable users don't get a broken udev rules file (bug #447112).
+
Sorry for that mess.