From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1SpR82-000374-SY for garchives@archives.gentoo.org; Thu, 12 Jul 2012 21:40:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E4E5E05FA; Thu, 12 Jul 2012 21:40:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 07C0FE00E9 for ; Thu, 12 Jul 2012 21:39:58 +0000 (UTC) Received: from [192.168.1.61] (pool-173-71-200-251.clppva.fios.verizon.net [173.71.200.251]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: abcd) by smtp.gentoo.org (Postfix) with ESMTPSA id 61768643ED for ; Thu, 12 Jul 2012 21:39:58 +0000 (UTC) Message-ID: <4FFF4424.3070403@gentoo.org> Date: Thu, 12 Jul 2012 17:39:48 -0400 From: Jonathan Callen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120613 Thunderbird/13.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Re: rfc: udev-rules.eclass References: <20120711191142.GA26844@linux1> <4FFF2C65.3080200@gentoo.org> <20120712230405.18386d47@pomiocik.lan> <4FFF3B2E.5010608@gentoo.org> <4FFF3D08.9070400@gentoo.org> In-Reply-To: <4FFF3D08.9070400@gentoo.org> X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 17665ce1-321c-4ca5-9ca4-5f4feff86ab9 X-Archives-Hash: df51bb00ebe7e76ba6621dce5468cb2b 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 ' - 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 ' + dir=/lib/udev/rules.d > + else > + dir=/usr/lib/udev/rules.d > + fi > fi > echo -n $dir > } -- Jonathan Callen