From: Jonathan Callen <abcd@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: rfc: udev-rules.eclass
Date: Thu, 12 Jul 2012 17:39:48 -0400 [thread overview]
Message-ID: <4FFF4424.3070403@gentoo.org> (raw)
In-Reply-To: <4FFF3D08.9070400@gentoo.org>
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
next prev parent reply other threads:[~2012-07-12 21:40 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 19:11 [gentoo-dev] rfc: udev-rules.eclass William Hubbs
2012-07-11 19:57 ` W. Trevor King
2012-07-11 20:57 ` Diego Elio Pettenò
2012-07-11 23:42 ` William Hubbs
2012-07-11 23:43 ` Diego Elio Pettenò
2012-07-12 5:01 ` Ben de Groot
2012-07-12 5:26 ` Zac Medico
2012-07-12 7:17 ` Michał Górny
2012-07-12 7:33 ` Zac Medico
2012-07-13 6:29 ` [gentoo-dev] " Duncan
2012-07-12 13:47 ` [gentoo-dev] " Ian Stakenvicius
2012-07-12 14:19 ` Michał Górny
2012-07-12 14:34 ` Ian Stakenvicius
2012-07-12 14:37 ` Ciaran McCreesh
2012-07-12 13:43 ` Ian Stakenvicius
2012-07-12 14:20 ` Michał Górny
2012-07-12 14:34 ` Ian Stakenvicius
2012-07-12 15:02 ` Michał Górny
2012-07-11 20:57 ` William Hubbs
2012-07-11 20:59 ` Alexis Ballier
2012-07-11 23:48 ` William Hubbs
2012-07-12 2:25 ` Rick "Zero_Chaos" Farina
2012-07-12 2:50 ` Zac Medico
2012-07-12 3:03 ` Rick "Zero_Chaos" Farina
2012-07-12 16:42 ` Alexis Ballier
2012-07-12 3:41 ` Brian Dolbec
2012-07-12 16:30 ` Alexis Ballier
2012-07-13 5:44 ` Brian Dolbec
2012-07-12 16:24 ` Alexis Ballier
2012-07-11 21:51 ` Rick "Zero_Chaos" Farina
2012-07-12 14:22 ` Michał Górny
2012-07-12 14:35 ` William Hubbs
2012-07-12 19:58 ` Samuli Suominen
2012-07-12 20:31 ` Mike Gilbert
2012-07-12 21:04 ` Michał Górny
2012-07-12 21:01 ` Samuli Suominen
2012-07-12 21:09 ` Samuli Suominen
2012-07-12 21:39 ` Jonathan Callen [this message]
2012-07-13 18:12 ` William Hubbs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FFF4424.3070403@gentoo.org \
--to=abcd@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox