From owner-freebsd-rc@FreeBSD.ORG Mon Dec 19 21:31:17 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 53E9216A41F for ; Mon, 19 Dec 2005 21:31:17 +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 D498843D70 for ; Mon, 19 Dec 2005 21:30:59 +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 D76D211A92; Mon, 19 Dec 2005 22:30:57 +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 15988-06; Mon, 19 Dec 2005 22:30:51 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id C5227115A6; Mon, 19 Dec 2005 22:30:50 +0100 (CET) From: Florent Thoumie To: Brooks Davis In-Reply-To: <20051219203322.GC1103@odin.ac.hmc.edu> References: <1134927080.744.14.camel@cream.xbsd.org> <20051219203322.GC1103@odin.ac.hmc.edu> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-A1CWHiAkZ/L/xtjLWx3o" Date: Mon, 19 Dec 2005 22:30:49 +0100 Message-Id: <1135027849.744.28.camel@cream.xbsd.org> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port 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: Mon, 19 Dec 2005 21:31:17 -0000 --=-A1CWHiAkZ/L/xtjLWx3o Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2005-12-19 at 12:33 -0800, Brooks Davis wrote: > On Sun, Dec 18, 2005 at 06:31:20PM +0100, Florent Thoumie wrote: > > Since we have some ports that want to ldconfig directories early > > in the boot process (actually, early in localpkg sequence), I=20 > > think it would be a good idee to support=20 > > ${PREFIX}/etc/ld.so.conf.d/ directories (or whatever the name). > >=20 > > Here's what I was thinking about (see attached patch). > >=20 > > This way, I can imagine a USE_LDCONFIG variable containing=20 > > directories and bsd.port.mk would just : > >=20 > > .if defined(USE_LDCONFIG) > > echo ${USE_LDCONFIG} > ${PREFIX}/etc/ld.so.conf.d/${UNIQUENAME} > > .endif > >=20 > > [...] instead of installing 000.${UNIQUENAME}.sh in=20 > > ${PREFIX}/etc/rc.d. > >=20 > > I guess it should be ok since /etc/rc.d/ldconfig is launched=20 > > after /etc/rc.d/mountcritremote. We can assume that local=20 > > directories will be available (by default local_ldconfig=3D""). >=20 > Sounds good to me. I'd been thinking we could use something like > this since all those scripts are ugly. This nice thing about this > is that we could use a compatibility port that just installs a > 000.ldconfig-compat.sh script to shim old versions to allow the hack > script to die in ports almost immediately. Yes, that's the idea. --=20 Florent Thoumie flz@FreeBSD.org FreeBSD committer --=-A1CWHiAkZ/L/xtjLWx3o Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDpyaJMxEkbVFH3PQRAswiAJ4sApTCZTh4cB68NXEH8WqCReLQLwCfd0zZ /f2OpuocCVzP5AqDfhhQfzw= =ua/+ -----END PGP SIGNATURE----- --=-A1CWHiAkZ/L/xtjLWx3o--