Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 1998 04:29:44 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, dillon@backplane.com
Cc:        committers@FreeBSD.ORG
Subject:   Re: /usr/lib/compat/aout not being scanned?
Message-ID:  <199809171829.EAA25979@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>:You have to put the aout subdirectories in $ldconfig_paths if
>:you want them.  Similarly for $LD_LIBRARY_PATH, the default path
>:STANDARD_SEARCH_DIRS = "/usr/lib" built into ld and ld.so, and paths
>
>    It's not a question of what I have to do, it's a question of what thousands
>    of FreeBSD users are going to have to do to upgrade to the new release.

The "plural" "you" has to do it.

>    The way I see it, we have two choices:  Either the upgrade script handles
>    the 'aout' case by adjusting /etc/rc, rc.conf, and/or rc.conf.local, or 
>    we hack ldconfig to handle it automatically (by generating both elf and
>    a.out hints files and checking for $dir/aout for each directory).  If 
>    we force every user to manually update his rc.conf[.local] *AND* their 
>    /etc/rc, there are going to be a large number of unhappy users.

The upgrade script should at least be consistent with the default
/etc/rc.conf which still has /usr/lib/compat, /usr/X11R6/lib and
/usr/local/lib.  It's not clear that we will ever need a elf libraries
in /usr/lib/compat.

>    So, the real question is:  What is the ugprade script going to do?  If it
>    replaces /etc/rc then checking for aout/ subdirs there solves the problem.
>    If it doesn't, it must either edit rc.conf[.local] (which I think is 
>    problematic), or ldconfig must be hacked to handle aout/ subdirs so the
>    old /etc/rc and rc.conf[.local] files work without modification.

Not just rc.conf.  If ld.so and ld aren't both hacked, then all -Lfoo's
in makefiles would need to be changed to -Lfoo/aout for the aout case but
left alone for the elf case.  All $LIBRARY_PATH's and $LD_LIBRARY_PATH's
in files and environments would need to be changed similary.  We don't
even get this right for the paths in /usr/src/Makefile.inc1 (the paths
there work for the wrong reasons).  This shows that aout subdirectories
should never have been used.  Elf libraries should have been put in
subdirectories.  It would be relatively easy to move them to the right
place later if this is planned for.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809171829.EAA25979>