From owner-freebsd-rc@FreeBSD.ORG Mon Dec 19 20:33:24 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 2A1F916A43D for ; Mon, 19 Dec 2005 20:33:24 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A91243D5A for ; Mon, 19 Dec 2005 20:33:23 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jBJKXMZv011776; Mon, 19 Dec 2005 12:33:22 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jBJKXMec011775; Mon, 19 Dec 2005 12:33:22 -0800 Date: Mon, 19 Dec 2005 12:33:22 -0800 From: Brooks Davis To: Florent Thoumie Message-ID: <20051219203322.GC1103@odin.ac.hmc.edu> References: <1134927080.744.14.camel@cream.xbsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+nBD6E3TurpgldQp" Content-Disposition: inline In-Reply-To: <1134927080.744.14.camel@cream.xbsd.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu 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 20:33:24 -0000 --+nBD6E3TurpgldQp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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""). 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. -- Brooks --+nBD6E3TurpgldQp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDpxkEXY6L6fI4GtQRArlbAKCF8GVBNJAu8/WkdlMakFa3U7nFDQCgu1sX /LvV7qlXZg93kNWaYTkih4I= =zVNV -----END PGP SIGNATURE----- --+nBD6E3TurpgldQp--