On 11/9/05, S. Anthony Sequeira <[EMAIL PROTECTED]> wrote:
> Hi, the news server is out of service, so I have to post this way.
>
> ---------------------------------------------------------------------------------------
> On Tue, Nov 08, 2005 at 06:05:17PM -0600, Randy McMurchy wrote:
> > Steffen R. Knollmann wrote these words on 11/08/05 17:57 CST:
> >
> > >   Actually, it's not subversion, it's APR. There might actually be a
> > > deeper meaning for that directory, but for sure not in /usr :-)
> >
> > Ah, yes. Please disregard my earlier post. It's Apache, not Neon
> > that needs to be installed to avoid that /usr/build dir.
>   In theory it should be sufficient to install APR itself

<snip>

> My choices are as I see it:
>
> Install apr or remove the build directory after the install?

First, I think it might not be a good idea to remove the directory
because, I think there are some hard-coded paths to it in subversion. 
This is speculation, and not backed up by testing.  Just from perusing
configure.

OK, so this was bugging me too.  In the apr that's packaged with
subversion, their configure takes some interesting steps that I don't
understand.  Instead of going the normal autoconf route, the
directories apr and apr-util contain a file called config.layout that
defines the directory structure.  If nothing is passed to configure,
it enables the first section (called apr).  This forces prefix to
/usr/local/apr and then defines datadir=${prefix}.  You can edit this
directly to get the structure you want.

You can pick your target layout with --enable-layout=xx .  The
top-level configure will pass this parameter to the subdirectories. 
Another target in config.layout that looks more promising is
--enable-layout=GNU which attempts to follow FHS.  The only problems
here are that includedir becomes include/apache2 and the datadir
becomes share/apache2.  This may bug you, but if you never intend to
install the rest of apache, it's probably not a big deal.  RedHat
option looks like it could work, too.

My workaround that is not set in stone is:
./configure --prefix=/usr --enable-layout=GNU

This gives you (from apr and apr-util):
/usr/bin/{apr,apu}-config
/usr/include/apache2/<bunch of header files>
/usr/lib/{apr*,libapr*}
/usr/lib/httpd/modules/*
/usr/share/apache2/build/*

Whether the layout structure needs more massaging is up to you, but I
wouldn't remove the apr stuff unless you want to be the guinea pig.

Randy, DJ, other devs: Would you look into this as a workaround for
those without apache installed?

--
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