From owner-freebsd-current Sun Jul 13 07:55:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA21583 for current-outgoing; Sun, 13 Jul 1997 07:55:10 -0700 (PDT) Received: from kitsune.swcp.com (swcp.com [198.59.115.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA21578 for ; Sun, 13 Jul 1997 07:55:06 -0700 (PDT) Received: from lundin.abq.nm.us. (lundin.abq.nm.us [198.59.115.228]) by kitsune.swcp.com (8.8.5/1.2.3) with ESMTP id IAA27106; Sun, 13 Jul 1997 08:55:03 -0600 (MDT) Received: (from aflundi@localhost) by lundin.abq.nm.us. (8.8.5/8.8.5) id IAA05902; Sun, 13 Jul 1997 08:54:19 -0600 (MDT) Date: Sun, 13 Jul 1997 08:54:19 -0600 (MDT) From: Alan Lundin Message-Id: <199707131454.IAA05902@lundin.abq.nm.us.> In-Reply-To: Richard Wackerbarth "Re: Heads up and and a call for a show of hands." (Jul 13, 4:45am) X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: Richard Wackerbarth Subject: Re: Heads up and and a call for a show of hands. Cc: current@FreeBSD.ORG Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Jul 13, 4:45am, Richard Wackerbarth wrote: > Subject: Re: Heads up and and a call for a show of hands. > > Alan Lundin replied: > >On Jul 11, 11:43am, "Richard Wackerbarth" wrote: > [...] > >> Why not get both effects. Have two config files, for example, > >> /etc/ld.so.conf and /usr/local/etc/ld.so.conf. > [...] > >Why not just source ld.so.conf if it exists then you > >can have either behavior depending on what is in ld.so.conf: > [...] > >and ld.so.conf can contain something like > > > > ${_LDC}="${_LDC} /my/new/lib/dir" > > > >for append behavior or > > > > ${_LDC}="/usr/X11R6/lib /my/new/lib/dir /usr/local/lib" > > > >for override behavior. > > I don't think that your format gives them the flexability > that they wished to make it easy to have things automatically > install and deinstall. For the "manually edited" situation, > I would agree that it is a bit cleaner. However, it was by > inpression that they wanted to make it easy to automate > changes when packages come and go. Perhaps not, but I don't see why not. If you want to add a new library, your install script does echo '${_LDC}="${_LDC} /my/new/lib/dir"' >> /usr/local/etc/ld.so.conf or some variation. If every addition had the form of one of the above lines, you could quite easily parse out the parts. On the other hand, I'm by no means going to champion this idea, since I think using /usr/local/etc/rc.d/*.sh and ldconfig -m is just as good (and much better in many ways), and we already have that. --alan