rebuilding /usr/local

rebuilding /usr/local

Post by HenSiong Ta » Sat, 29 Mar 1997 04:00:00



[ crossed posted to comp.unix.solaris and comp.unix.admin ]

Here is the situation.  Our current /usr/local is mounted from the
server, and we like to "tidy up" the directory ... so that it will
become easy to maintain and upgrade installed packages in the
future.

My questions are:

   a.  On host A, we currently have SERVER:/usr/local
       mounted on A:/usr/local.  To avoid any sort of
       interruption to our users, we plan to upgrade the
       various installed packages in SERVER:/usr/local
       by rebuilding and installing them on (say)
       SERVER:/solaris_local, and then mount SERVER:/solaris_local
       on A:/usr/local when we are done with the upgrading.  
       Is this wise?

       For packages that use autoconfig, what should we
       set as $(exec_prefix)?

   b.  We want to have SERVER:/solaris_local to contain
       the subdirectories src and bin.  Within src, we
       will have further subdirectories named after the
       various packages we plan to install.  Within each
       of these sub-subdirectory, we'll have the source,
       compiled binaries and etc.  Would it be wise to
       then link the binaries within src/package onto
       SERVER:/solaris_local/bin/** ?

       For example, we have the GNU C compiler compiled
       in SERVER:/solaris_local/src/gcc-2.7.2.2 and
       within it, we'll have subdirectories bin, lib,
       man and the file gcc-2.7.2.2.tar.gz.  We then do

       ln -s gcc SERVER:/solaris_local/src/gcc-2.7.2.2/bin/gcc

       from within SERVER:/solaris_local/bin.  Would this
       scheme work?  Would the lib and headers be found
       by gcc when we run gcc "from" A:/usr/local/bin?

       Again, what should $(prefix) and $(exec_prefix)
       be set at when (say) gcc is compiled?

What the wise would say of the whole structure.  Can things be
improved ... along our plan?

Thank you!

HenSiong

 
 
 

1. rebuilding /usr/local

[ crossed posted to comp.unix.solaris and comp.unix.admin ]

Here is the situation.  Our current /usr/local is mounted from the
server, and we like to "tidy up" the directory ... so that it will
become easy to maintain and upgrade installed packages in the
future.

My questions are:

   a.  On host A, we currently have SERVER:/usr/local
       mounted on A:/usr/local.  To avoid any sort of
       interruption to our users, we plan to upgrade the
       various installed packages in SERVER:/usr/local
       by rebuilding and installing them on (say)
       SERVER:/solaris_local, and then mount SERVER:/solaris_local
       on A:/usr/local when we are done with the upgrading.  
       Is this wise?

       For packages that use autoconfig, what should we
       set as $(exec_prefix)?

   b.  We want to have SERVER:/solaris_local to contain
       the subdirectories src and bin.  Within src, we
       will have further subdirectories named after the
       various packages we plan to install.  Within each
       of these sub-subdirectory, we'll have the source,
       compiled binaries and etc.  Would it be wise to
       then link the binaries within src/package onto
       SERVER:/solaris_local/bin/** ?

       For example, we have the GNU C compiler compiled
       in SERVER:/solaris_local/src/gcc-2.7.2.2 and
       within it, we'll have subdirectories bin, lib,
       man and the file gcc-2.7.2.2.tar.gz.  We then do

       ln -s gcc SERVER:/solaris_local/src/gcc-2.7.2.2/bin/gcc

       from within SERVER:/solaris_local/bin.  Would this
       scheme work?  Would the lib and headers be found
       by gcc when we run gcc "from" A:/usr/local/bin?

       Again, what should $(prefix) and $(exec_prefix)
       be set at when (say) gcc is compiled?

What the wise would say of the whole structure.  Can things be
improved ... along our plan?

Thank you!

HenSiong

2. NCR53c7,8xx.c bug?

3. Tell "configure" to use /usr/local/lib/sparcv9/ instead of /usr/local/lib/

4. Skunk 5 tar archives

5. ln /usr/local /newDrive/usr/local ?

6. Solaris 7 ppp posible?

7. /usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

8. Mail Servers

9. /usr/local/bin/perl ->/usr/bin/perl

10. Do you use /usr/contrib, or only /usr/local?

11. "/usr" versus "/usr/local"

12. /usr/local/bin vs. /usr/bin

13. usr/local usr/share, what goes where?