[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: subversion-1.9.0-rc2 autogen.sh script breaks "/usr/share/aclocal" discovery on Fedora 21 and otherws

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sun, 12 Jul 2015 07:09:30 +0000

Nico Kadel-Garcia wrote on Sun, Jul 12, 2015 at 01:24:56 -0400:
> Building subversion-1.9.0-rc2 with 'autogen.sh' encounters some issues
> with recent versions of Fedora.

Why are you running autogen.sh? It's required when building from
a checkout, it's not required when building from a tarball.

> 3) Subversion 1.9's autogen.sh tries to determine the location of
> /usr/share/local by finding the "aclocal" binary, which now is found
> in "/bin/aclocal" instead of "/usr/bin/aclocal". It then looks in
> "/bin/../share/aclocal" for the libtool.m4., Hilarity ensues.
>
> It's not a hard patch, and I've included it below.
>
> --- subversion-1.9.0-rc2/autogen.sh.libtool 2015-02-13
> 15:36:06.000000000 -0500
> +++ subversion-1.9.0-rc2/autogen.sh 2015-07-04 01:35:24.683176737 -0400
> @@ -76,7 +76,10 @@
> $libtoolize --copy --automake --force
>
> ltpath="`dirname $libtoolize`"
> -
> +if [ -L "$ltpath" -a "$ltpath" = "/bin" ]; then
> + # Avoid "/bin" symlink to "/usr/bin" confusion
> + ltpath=/usr/bin
> +fi

We can't presume that /usr/bin is the target of /bin when the latter is
a symlink. That's not necessarily true everywhere.

I see there's a "aclocal --print-ac-dir" flag which seems to just print
the path we need. Does that help? Can we eg first look for aclocal in
PATH and then run that command to find the share/aclocal dir?

Daniel

> if [ "x$LIBTOOL_M4" = "x" ]; then
> ltm4_error='(try setting the LIBTOOL_M4 environment variable)'
> if [ -d "$ltpath/../share/aclocal/." ]; then
Received on 2015-07-12 09:09:55 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.