You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Craig Rodrigues <ro...@attbi.com> on 2003/01/19 09:26:16 UTC

Attempt to unbreak apr-util build

Hi,

Here is my attempt to unbreak the apr-util build, so that
apr 0.9.2 can be released.

If you don't like what I've done to buildconf,
then the other solution is to copy
apr_common.m4, find_apr.m4, install.sh, config.guess, and config.sub 
from the apr repository to the apr-util repository and
keep patch2.diff.

Comments?
-- 
Craig Rodrigues        
http://home.attbi.com/~rodrigc
rodrigc@attbi.com

Re: Attempt to unbreak apr-util build

Posted by Justin Erenkrantz <je...@apache.org>.
--On Sunday, January 19, 2003 4:22 AM -0500 Craig Rodrigues 
<ro...@attbi.com> wrote:

> Anyways, I've incorporated your suggestions.

Committed.  Thanks!  -- justin

RE: Attempt to unbreak apr-util build

Posted by Sander Striker <st...@apache.org>.
> From: Craig Rodrigues [mailto:rodrigc@attbi.com]
> Sent: Sunday, January 19, 2003 10:23 AM

> On Sun, Jan 19, 2003 at 12:33:10AM -0800, Justin Erenkrantz wrote:
> > These shouldn't be directories, so -r shouldn't be needed.
> 
> Then why does this line exist?
> 
> rm -rf aclocal.m4 autom4te*.cache
                    ^^^^^^^^^^^^^^^

is a directory.

Sander


Re: Attempt to unbreak apr-util build

Posted by Craig Rodrigues <ro...@attbi.com>.
On Sun, Jan 19, 2003 at 12:33:10AM -0800, Justin Erenkrantz wrote:
> These shouldn't be directories, so -r shouldn't be needed.

Then why does this line exist?

rm -rf aclocal.m4 autom4te*.cache


Anyways, I've incorporated your suggestions.

-- 
Craig Rodrigues        
http://home.attbi.com/~rodrigc
rodrigc@attbi.com

Re: Attempt to unbreak apr-util build

Posted by Justin Erenkrantz <je...@apache.org>.
--On Sunday, January 19, 2003 3:26 AM -0500 Craig Rodrigues 
<ro...@attbi.com> wrote:

> Index: buildconf
> ===================================================================
> RCS file: /home/cvspublic/apr-util/buildconf,v
> retrieving revision 1.6
> diff -u -r1.6 buildconf
> --- buildconf	15 May 2002 16:51:52 -0000	1.6
> +++ buildconf	19 Jan 2003 08:24:35 -0000
> @@ -1,5 +1,35 @@
>  #!/bin/sh
>
> +#
> +# Check command-line arguments for: --with-apr=[directory]
> +# which specifies the root directory of apr source code.
> +#
> +while test $# -ne 0
> +do
> +   apr_src_dir=`expr "x$1" : 'x\-\-with-apr=\(.*\)'`
> +   shift
> +done

I would take a look at how apu-config does its argument parsing 
(namely use case statements with pattern matching).  That approach is 
much cleaner.

> +if test -z "$apr_src_dir"
> +then
> +   echo ""
> +   echo "   --with-apr=[directory] not specified for apr source"
> +   echo ""
> +   exit 1
> +else
> +   echo ""
> +   echo "Looking for apr source in $apr_src_dir"
> +fi

My preference here would be to default to ../apr if --with-apr isn't 
specified.  If --with-apr isn't specified and ../apr isn't present, 
then error out.  But, it'd be nice to be able to work seamlessly with 
any new system.

> +# Remove some files copied from apr source tree
> +rm -rf build/apr_common.m4 build/find_apr.m4 build/install.sh
> +rm -rf build/config.guess build/config.sub

These shouldn't be directories, so -r shouldn't be needed.

> +cp $apr_src_dir/build/apr_common.m4 build
> +cp $apr_src_dir/build/find_apr.m4 build
> +cp $apr_src_dir/build/install.sh build
> +cp $apr_src_dir/build/config.guess build
> +cp $apr_src_dir/build/config.sub build

Much the same as you used multiple args to rm, I think you could do 
the same here - i.e. only do one cp command.

> @@ -8,6 +38,7 @@
>  #
>  echo "Creating include/private/apu_config.h ..."
>  ${AUTOHEADER:-autoheader}
> +
>
>  echo "Creating configure ..."
>  ### do some work to toss config.cache?

That change is just gratutious.

On the right track though.  =)  Woo-hoo!  -- justin