Summary: | sys-fs/mdadm-3.2.3-r1 - set udev rule install path using pkg-config | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nikolay S. Rybaloff <dairinin> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Get rules path from pkgconfig
use udevlibdir for udev rule use udevdir from pkgconfig for rules.d path |
Description
Nikolay S. Rybaloff
2012-08-11 09:32:58 UTC
Created attachment 320984 [details, diff]
Get rules path from pkgconfig
I've applied a bit modified patch to Portage and then cross-compile in the ebuild by tc-getPKG_CONFIG, like this: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/files/mdadm-3.2.x-udevdir.patch?rev=1.1&content-type=text/plain http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/mdadm-3.2.3-r2.ebuild?rev=1.1&content-type=text/plain http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/mdadm-3.2.5-r1.ebuild?rev=1.1&content-type=text/plain Does anyone know where mdadm bugs/patches should be sent? The upstream site only has links to webgit and that's pretty much it I believe, linux-raid at vger.kernel.org is the right place I've reverted the patch because the ifndef logic doesn't work. Move 'udev.pc' away and files end up in root filesystem /rules.d/ Fixed by sed in ebuild now Comment on attachment 320984 [details, diff]
Get rules path from pkgconfig
If udev.pc is not available or is missing udevdir= the UDEVDIR gets set to empty value and files end up in /rules.d/ instead of /lib/udev/rules.d/ or /usr/lib/udev/rules.d/
My bad. Need to use simple expansion... Created attachment 321134 [details]
use udevlibdir for udev rule
Created attachment 321136 [details, diff]
use udevdir from pkgconfig for rules.d path
(In reply to comment #9) > Created attachment 321136 [details, diff] [details, diff] > use udevdir from pkgconfig for rules.d path This works. I've imported it with a minor change to let PKG_CONFIG settable too. Only to 3.2.5-r1. |