[GRASS-dev] [GRASS GIS] #424: AC_CONFIG_AUX_DIR added in configure.in of 6.4.x causes rpmbuild failure

#424: AC_CONFIG_AUX_DIR added in configure.in of 6.4.x causes rpmbuild failure
---------------------+------------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Keywords: | Platform: Linux
      Cpu: All |
---------------------+------------------------------------------------------
The following addition to configure.in of 6.4.x:
{{{
diff -u ~/grass63_release/configure.in configure.in
--- /home/neteler/grass63_release/configure.in 2008-03-26
16:04:27.000000000 +0100
+++ configure.in 2008-09-12 23:02:45.000000000 +0200
@@ -99,6 +99,10 @@

  AC_SUBST(ARCH)

+# Use absolute path for aux directory so that install-sh works
+
+AC_CONFIG_AUX_DIR($SRCDIR)
+
  # Set GISBASE and GRASS_BIN

  GISBASE=${WINDSTDIR}/dist.${ARCH}
}}}

leads to this error when creating a (Mandriva) RPM from 6.4.0RC1:

{{{
rpmbuild -ba grass640RC1.specExecuting(%prep): /bin/sh -e /var/tmp/rpm-
tmp.40668
+ umask 022
+ cd /usr/src/rpm/BUILD
...
+ LDFLAGS='-L/usr/X11R6/lib64 -Wl,--as-needed -Wl,--no-undefined'
+ export LDFLAGS
+ CONFIGURE_TOP=.
+ /usr/lib/rpm/manbo/force-as-needed-for-shared-lib-in-libtool
Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf
http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html)
+ /usr/lib/rpm/manbo/drop-ld-no-undefined-for-shared-lib-modules-in-
libtool
+ cputoolize -c .
libtoolize: cannot handle variables in AC_CONFIG_AUX_DIR
error: Bad exit status from /var/tmp/rpm-tmp.16786 (%build)

RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.16786 (%build)
}}}

Do we really need AC_CONFIG_AUX_DIR (e.g., in GRASS 6.3 it wasn't needed)
or can it be conditionalized?

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/424&gt;
GRASS GIS <http://grass.osgeo.org>

#424: AC_CONFIG_AUX_DIR added in configure.in of 6.4.x causes rpmbuild failure
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Resolution: | Keywords:
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Comment (by neteler):

It was added in r32168

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/424#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#424: AC_CONFIG_AUX_DIR added in configure.in of 6.4.x causes rpmbuild failure
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Resolution: | Keywords:
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Comment (by glynn):

Replying to [ticket:424 neteler]:
> The following addition to configure.in of 6.4.x:

> +AC_CONFIG_AUX_DIR($SRCDIR)

> leads to this error when creating a (Mandriva) RPM from 6.4.0RC1:

> + cputoolize -c .

> libtoolize: cannot handle variables in AC_CONFIG_AUX_DIR

This looks like a problem with the RPM spec file. GRASS doesn't use
libtool. The build process shouldn't be concerning itself with the
contents of those scripts, just running configure.

> Do we really need AC_CONFIG_AUX_DIR (e.g., in GRASS 6.3 it wasn't
needed) or can it be conditionalized?

It's needed, and I don't think that it can be conditionalised.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/424#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#424: AC_CONFIG_AUX_DIR added in configure.in of 6.4.x causes rpmbuild failure
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Resolution: wontfix | Keywords:
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => wontfix

Comment:

Replying to [comment:2 glynn]:
> Replying to [ticket:424 neteler]:
> > libtoolize: cannot handle variables in AC_CONFIG_AUX_DIR
...
> It's needed, and I don't think that it can be conditionalised.

OK, changing in the SPEC file

%configure

to

./configure

works around the problem since libtool(ize) is then not used.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/424#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>