After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 640883 - configure should honor aclocal flags ACLOCAL_FLAGS
configure should honor aclocal flags ACLOCAL_FLAGS
Status: RESOLVED FIXED
Product: totem-pl-parser
Classification: Core
Component: General
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: totem-pl-parser-maint
totem-pl-parser-maint
Depends on:
Blocks: 641445
 
 
Reported: 2011-01-29 06:51 UTC by Craig Keogh
Modified: 2011-02-04 07:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Honor aclocal flags (651 bytes, patch)
2011-01-29 06:53 UTC, Craig Keogh
needs-work Details | Review
Honor aclocal flags (659 bytes, patch)
2011-02-02 11:16 UTC, Craig Keogh
committed Details | Review

Description Craig Keogh 2011-01-29 06:51:14 UTC
I'm building totem-pl-parser via JHBuild. totem-pl-parser builds
successfully. If upstream then updates configure.ac, the build fails:

make  V=1
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/Oxyde/gnome/totem-pl-parser/missing --run aclocal-1.11 -I m4
 cd . && /bin/sh /home/Oxyde/gnome/totem-pl-parser/missing --run automake-1.11 --gnu
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/reference/Makefile.am:96:   `gtk-doc.make' included from here
gtk-doc.make:51: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/Makefile.am:96:   `gtk-doc.make' included from here
gtk-doc.make:52: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/reference/Makefile.am:96:   `gtk-doc.make' included from here
gtk-doc.make:57: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/reference/Makefile.am:96:   `gtk-doc.make' included from here
gtk-doc.make:226: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/Makefile.am:96:   `gtk-doc.make' included from here
docs/reference/Makefile.am:102: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
plparse/Makefile.am:183: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
make: *** [Makefile.in] Error 1

This is because JHBuild sets ACLOCAL_FLAGS to include the sandbox (e.g. -I
/opt/gnome/share/aclocal). One may argue it is silly for JHBuild to require
every module to support ACLOCAL_FLAGS, but there isn't a way around it until
automake-1.12 is out - which includes support for ACLOCAL_PATH. Further details
in the JHBuild bug 634617.
Comment 1 Craig Keogh 2011-01-29 06:53:07 UTC
Created attachment 179576 [details] [review]
Honor aclocal flags
Comment 2 Philip Withnall 2011-01-29 11:35:43 UTC
I thought gnome-autogen.sh did this for us? Where else is aclocal called from within the build system which would circumvent what gnome-autogen.sh does?
Comment 3 Craig Keogh 2011-01-30 07:14:51 UTC
gnome-autogen.sh is not called in this circumstance. totem-pl-parser was 'configure'd successfully earlier. This circumstance only 'make' was called, which determined a reconfigure was necessary (due to changed configure.ac). It's this reconfigure that breaks.
Comment 4 Christian Persch 2011-01-30 12:07:06 UTC
This should NOT be added to configure; instead put

ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}

into the toplevel Makefile.am.
Comment 5 Philip Withnall 2011-01-30 14:09:54 UTC
Review of attachment 179576 [details] [review]:

Could you change your patch as per Christian's comment #4, and add a comment in the makefile pointing to this bug report please? Thanks.
Comment 6 Craig Keogh 2011-02-02 11:16:12 UTC
Created attachment 179866 [details] [review]
Honor aclocal flags


Sorry for my incorrect first patch, I don't know autotools very well, and I just copied what other modules did.

Christian,

What problems does configure.ac ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" cause? Should I look at fixing the 24 GNOME modules that do this?
Comment 7 Bastien Nocera 2011-02-02 11:34:58 UTC
Comment on attachment 179866 [details] [review]
Honor aclocal flags

Would be great if the patch actually applied in the future.
Comment 8 Bastien Nocera 2011-02-02 11:35:11 UTC
commit 6b3f4f5f88f850578065251762cd7258f837c2b1
Author: Craig Keogh <cskeogh@adam.com.au>
Date:   Wed Feb 2 21:38:42 2011 +1030

    Honor aclocal flags
    
    https://bugzilla.gnome.org/show_bug.cgi?id=640883
Comment 9 Craig Keogh 2011-02-02 11:44:09 UTC
> Would be great if the patch actually applied in the future.

It does apply correctly. This bug is against totem-pl-parser, but you've applied it to totem:
http://git.gnome.org/browse/totem/commit/?id=6b3f4f5f88f850578065251762cd7258f837c2b1
Comment 10 Bastien Nocera 2011-02-02 11:46:59 UTC
Comment on attachment 179866 [details] [review]
Honor aclocal flags

And applied to the correct module now...

Attachment 179866 [details] pushed as e5efbb8 - Honor aclocal flags