From owner-freebsd-rc@FreeBSD.ORG Thu Dec 29 01:22:35 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0638E16A41F; Thu, 29 Dec 2005 01:22:35 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57D5A43D5E; Thu, 29 Dec 2005 01:22:34 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 6A6A811783; Thu, 29 Dec 2005 02:22:32 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 52005-07; Thu, 29 Dec 2005 02:22:25 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id 17F54115A6; Thu, 29 Dec 2005 02:22:24 +0100 (CET) From: Florent Thoumie To: Doug Barton Date: Thu, 29 Dec 2005 02:22:10 +0100 User-Agent: KMail/1.8.2 References: <1134927080.744.14.camel@cream.xbsd.org> <200512280310.25988.flz@xbsd.org> <43B32F9C.9080809@FreeBSD.org> In-Reply-To: <43B32F9C.9080809@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1367964.xMXv7SaWjU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512290222.16584.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 01:22:35 -0000 --nextPart1367964.xMXv7SaWjU Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 29 December 2005 01:36, Doug Barton wrote: > Florent Thoumie wrote: > > I don't much care about where it's stored, I figured out that etc/ was a > > good candidate because /etc/ had already ld.so.conf but libdata is fine > > with me. > > Ok, let's go with that unless someone else has a better idea. > > > Note that I modified BSD.local.dist in latest version of the patch. > > I did after I finished reading the thread. :) Good catch. > > >>> Here's what I was thinking about (see attached patch). > >>> > >>> This way, I can imagine a USE_LDCONFIG variable containing > >>> directories and bsd.port.mk would just : > >>> > >>> .if defined(USE_LDCONFIG) echo ${USE_LDCONFIG} > > >>> ${PREFIX}/etc/ld.so.conf.d/${UNIQUENAME} .endif > >> > >> I would use touch here, but I won't quibble. > > > > Not sure how you could do the same thing with only touch. > > Ok, I think I'm confused about one part of the patch or another then. It > seems from your rc.d/ldconfig patch that all you are looking at are the > names of the files in the ldconfig_local_d directories, but it occurs to = me > now that just the names won't really help, you actually need to store the > paths to feed to ldconfig somewhere, which I presume is what you were goi= ng > to include in the USE_LDCONFIG variable. Am I right so far? If so, then I > don't understand how your patch to rc.d/ldconfig is going to work, but I > may be missing something. :) Hum, I'm actually using paths stored in files located in ld.so.conf.d/=20 directories. For example, you could have : # cat /usr/local/libdata/ld.so.conf.d/compat4x /usr/local/lib/compat # =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --nextPart1367964.xMXv7SaWjU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDszpIMxEkbVFH3PQRAjbTAJ9qGhpEYhlJZLGQhFoHou/cVQk3EACfS4Ja 5UPkm7md5q2cwvgvqYkJs2M= =BDtg -----END PGP SIGNATURE----- --nextPart1367964.xMXv7SaWjU--