On 10/11/07, Randy McMurchy <[EMAIL PROTECTED]> wrote:
> Alan Lord wrote these words on 10/11/07 09:36 CST:
>
> [cc'd to BLFS-Support]
>
> > But I'm really interested in how you (the BLFS contributors) go about
> > working out how and where everything goes? Do you set the --prefix
> > switch to somewhere like /test/asterisk_build and then look to see what
> > went where?
>
> Yes.
>
> > What about the /etc type files which do not seem to be
> > affected by the --prefix switch? How do you prevent them from
> > contaminating your system when you are just investigating?
>
> Use --sysconfdir=/whatever.
>
> Bottom line is don't build/install the package as the root user
> until you're ready for a production installation. That way it is
> *impossible* for your system to become contaminated.
>
> Use DESTDIR, or simply use --prefix=/whatever as an unprivileged
> user. Most packages do respect --prefix in all instances, including
> using /prefix/etc. Most don't (though some do) hard code /etc
> into the installation. However, if it does, simply use --sysconfdir.

Spot on. Unprivileged + DESTDIR means you can play around to your
heart's desire. Sometimes you have to grep around or hack things a bit
to support a DESTDIR style install. Since the vast majority of
packages are autotooled, though, my basic procedure is this:

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
make DESTDIR=`pwd`/dest install
tree dest

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to