Date: Mon, 19 Dec 2005 22:30:49 +0100 From: Florent Thoumie <flz@xbsd.org> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change Message-ID: <1135027849.744.28.camel@cream.xbsd.org> In-Reply-To: <20051219203322.GC1103@odin.ac.hmc.edu> References: <1134927080.744.14.camel@cream.xbsd.org> <20051219203322.GC1103@odin.ac.hmc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
> > think it would be a good idee to support
> > ${PREFIX}/etc/ld.so.conf.d/ directories (or whatever the name).
> >
> > 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
> >
> > [...] instead of installing 000.${UNIQUENAME}.sh in
> > ${PREFIX}/etc/rc.d.
> >
> > I guess it should be ok since /etc/rc.d/ldconfig is launched
> > after /etc/rc.d/mountcritremote. We can assume that local
> > directories will be available (by default local_ldconfig="").
>
> 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.
--
Florent Thoumie
flz@FreeBSD.org
FreeBSD committer
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
iD8DBQBDpyaJMxEkbVFH3PQRAswiAJ4sApTCZTh4cB68NXEH8WqCReLQLwCfd0zZ
/f2OpuocCVzP5AqDfhhQfzw=
=ua/+
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1135027849.744.28.camel>
