On 5/27/07, Dan Nicholson <[EMAIL PROTECTED]> wrote:
> On 4/12/07, Fix <[EMAIL PROTECTED]> wrote:
> > On 4/12/07, Dan Nicholson <[EMAIL PROTECTED]> wrote:
> >
> > > for dir in /opt{,/*}/lib/pkgconfig; do
> > > [ -d "$dir" ] || continue
> > > pathappend $dir PKG_CONFIG_PATH
> > > done
> > >
> > > for dir in /opt{,/*}/bin; do
> > > [ -d "$dir" ] || continue
> > > pathappend $dir
> > > done
> > >
> > > Does the above work for you?
> >
> > If it does work in the bash 3.x, it works for me. As far as I can see, it
> > does.
>
> Committed after 2.5 months!
Actually, this doesn't work for me. I have several versions of kde
and qt in /opt. I don't want all copies to be listed in either PATH
or PKG_CONFIG_PATH. I use sym links to choose which one I want. Even
with a single copy, this puts, for example, both /opt/qt-3.3.8/bin and
/opt/qt/bin in the path. They point to the same place. This is not
optimal.
The reason for using symlinks in /opt is to be able to check things
out and revert easily. Using the above in this case could quite
possibly have users accessing the wrong version of multiple version of
packages in /opt.
I know that I can/do fix things so they work for me, but a mention in
the book would be appropriate. I'd even comment out the above and
place a comment with a warning that users could add the ablove only if
they don't need to exclude any subdirectories of opt.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page