From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 08 Jan 2009 22:54:19 +0000 Subject: Re: Add rulesdir to libudev.pc Message-Id: List-Id: References: <1231444183.5298.24.camel@californication> In-Reply-To: <1231444183.5298.24.camel@californication> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Jan 8, 2009 at 23:47, Marcel Holtmann wrote: >> > I think we should add a rulesdir entry like for example PolicKit does >> > for its policy files. Attached patch does this. Please check if this >> > makes sense to you. >> >> I don't mind, but the rules directory is only interesting for the >> daemon, not the library, you can even specify the location in the udev >> config file, or at daemon startup. > > I know, but that is a total different story. For external applications > we need to know at least the default udev rules.d location. If then this > gets overwritten by a command line option, you can't do much about it > anyway. > >> The problem is that we can not use prefix, which is /usr. If we use >> udev_prefix, which would be the right value, we get the non-expanded >> value in the pkgconfig file, but because we fake exec_prefix here, we >> are back to the inconsistency Inaky mentioned yesterday. :) >> >> Maybe we should drop that exec_prefix use und invent --slibdir (s like >> in --(s)bindir), which other projects think about to introduce, and we >> would require: --prefix, --libdir=, --slibdir=, --sbindir>> --sysconf-dir to be specified at configure time? Maybe that's easier >> to handle, I was just waiting what the glib guys plan to use, because >> they have similar problems with configure specifying the rootfs as >> install location. > > What about libexecdir since configure has already support for it. Just > base everything of on that one. libexecdir could specify /lib/udev/, but not /lib{,64}/. That does not sound right, and I don't think it is covered by configure, when you need to install stuff into the rootfs. Kay