Date: Mon, 19 Dec 2005 12:33:22 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: Florent Thoumie <flz@xbsd.org> Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change Message-ID: <20051219203322.GC1103@odin.ac.hmc.edu> In-Reply-To: <1134927080.744.14.camel@cream.xbsd.org> References: <1134927080.744.14.camel@cream.xbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--+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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051219203322.GC1103>