On 07/12/2012 05:09 PM, Samuli Suominen wrote: > @@ -33,10 +35,14 @@ > # Get unprefixed udev rules directory. > _udev_get_rulesdir() { > local dir > - if has_version '<sys-fs/udev-186-r1'; then > - dir=/lib/udev/rules.d > + if "$($(tc-getPKG_CONFIG) --exists udev)"; then
This should probably be: if $(tc-getPKG_CONFIG) --exists udev 2>/dev/null; then > + dir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)/rules.d" > else > - dir=/usr/lib/udev/rules.d > + if has_version '<sys-fs/udev-186-r1'; then > + dir=/lib/udev/rules.d > + else > + dir=/usr/lib/udev/rules.d > + fi > fi > echo -n $dir > } -- Jonathan Callen