Summary: | app-emulation/virtualbox-bin should use pkg-config to determine the udev dirrectory to install rules or/and executables | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Egor Y. Egorov <egorov_egor> |
Component: | Current packages | Assignee: | Patrick Lauer <patrick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arne.flagge, polynomial-c |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 433916 |
Description
Egor Y. Egorov
2012-08-08 09:15:30 UTC
sys-fs/udev-187-r2 and sys-fs/udev-init-scripts-15 reverted this /usr/lib/udev move and install rules into /lib/udev again. No need to do anything here... Yes udev read rules from /lib/udev, but executables must installed into /usr/lib/udev # pkg-config --variable=udevdir udev /lib/udev # qlist -CIve udev{,-init-scripts} sys-fs/udev-187-r2 sys-fs/udev-init-scripts-15 Again no need to fix anything here. udev-187-r2 has fixed udevlibexecdir and thus all should be sane. However, if the migration will still be (and, as I understand it, sooner or later it will be done), this problem pops up again. Please, you will make it. Is that so hard? egorov-ey ~ # pkg-config --variable=udevdir udev /usr/lib/udev egorov-ey ~ # qfile -veC /usr/share/pkgconfig/udev.pc sys-apps/systemd-187 (/usr/share/pkgconfig/udev.pc) # diff -u virtualbox-bin-4.1.18.ebuild_orig virtualbox-bin-4.1.18.ebuild --- virtualbox-bin-4.1.18.ebuild_orig 2012-08-08 16:55:24.561360589 +0700 +++ virtualbox-bin-4.1.18.ebuild 2012-08-08 16:55:05.967387181 +0700 @@ -305,11 +305,12 @@ echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox" doenvd "${T}/90virtualbox" - insinto /lib/udev/rules.d + local udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" + insinto "${udevdir}/rules.d" doins "${FILESDIR}"/10-virtualbox.rules # move udev scripts into /lib/udev (bug #372491) - mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"/lib/udev - fperms 0750 /lib/udev/VBoxCreateUSBNode.sh + mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}${udevdir}" + fperms 0750 "${udevdir}/VBoxCreateUSBNode.sh" } pkg_postinst() { udev-187-r3.ebuild again install binaries into /usr/lib/udev Please fix this bug. + 04 Dec 2012; Lars Wendler <polynomial-c@gentoo.org> + files/10-virtualbox.rules, virtualbox-bin-4.2.2.ebuild, + virtualbox-bin-4.2.4.ebuild: + Fixed installation of udev files (bug #430424). + |