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 633208 - Use autoreconf instead gnome-autogen.sh
Use autoreconf instead gnome-autogen.sh
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2010-10-26 16:32 UTC by Javier Jardón (IRC: jjardon)
Modified: 2010-11-15 18:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use autoreconf instead gnome-autogen.sh (1.26 KB, patch)
2010-10-26 16:32 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Use autoreconf instead gnome-autogen.sh. Second aproach (1.55 KB, patch)
2010-10-27 14:43 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review
Use m4 to store .m4 files (1.31 KB, patch)
2010-11-04 22:04 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Fixup for the first commit. (344 bytes, patch)
2010-11-14 21:51 UTC, Sven Herzberg
none Details | Review

Description Javier Jardón (IRC: jjardon) 2010-10-26 16:32:30 UTC
Created attachment 173277 [details] [review]
Use autoreconf instead gnome-autogen.sh

We can drop gnome-autogen.sh completely and use the upstream tool (autoreconf) instead
Comment 1 Behdad Esfahbod 2010-10-26 17:56:01 UTC
I'd take if you add error handling for missing gtkdocize and missing autoreconf.
Comment 2 Javier Jardón (IRC: jjardon) 2010-10-27 14:43:31 UTC
Created attachment 173329 [details] [review]
Use autoreconf instead gnome-autogen.sh. Second aproach

Updated patch with error handling
Comment 3 Behdad Esfahbod 2010-11-01 20:24:55 UTC
Feel free to push.  I'd add double-quotes around $srcdir more generously.
Comment 4 Javier Jardón (IRC: jjardon) 2010-11-02 00:59:09 UTC
Comment on attachment 173329 [details] [review]
Use autoreconf instead gnome-autogen.sh. Second aproach

committed with your comments. commit c06264ae25218dd72a70bf5eb93d552f2763f9aa
Comment 5 Alejandro Piñeiro Iglesias (IRC: infapi00) 2010-11-04 17:45:41 UTC
After this change, compiling pango I got this error:

libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
acinclude.m4:68: the serial number must appear before any macro definition
configure.in:96: installing `./config.guess'
configure.in:96: installing `./config.sub'
configure.in:55: installing `./install-sh'
configure.in:55: installing `./missing'
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/Makefile.am:99:   `gtk-doc.make' included from here

The same that you can find on build.gnome.org:

http://build.gnome.org/builders/pango-bxlug-sid/builds/1122/steps/pango%20build/logs/stdio

It is required something extra in order to work?
Comment 6 Tor Lillqvist 2010-11-04 21:27:12 UTC
One problem with autoreconf is that it ignores $ACLOCAL_FLAGS. gnome-autogen.sh on the other hand uses $ACLOCAL_FLAGS. So to keep things working smoothly for people that have their m4 stuff in non-standard locations the new autogen.sh should export ACLOCAL="aclocal $ACLOCAL_FLAGS" when running autoreconf.

(Of course, once one understands what is happening, it is equally trivial for  people who come across that to do it themselves in their build environment... But it might take a while to understand what is happening.)
Comment 7 Javier Jardón (IRC: jjardon) 2010-11-04 22:04:16 UTC
Created attachment 173855 [details] [review]
Use m4 to store .m4 files

Hello Alejandro, could you try if this patch fixes the problem?
Comment 8 Behdad Esfahbod 2010-11-04 22:36:54 UTC
1. We don't use .gitignore.
2. The m4/ dir is not necessary, and the warning is red herring.  Everything works just fine without it.
Comment 9 Alejandro Piñeiro Iglesias (IRC: infapi00) 2010-11-05 10:23:49 UTC
(In reply to comment #8)

> 2. The m4/ dir is not necessary, and the warning is red herring.  Everything
> works just fine without it.

So you are saying that my compilation problem, and build.gnome.org compilation problem should be solved on my compilation environment and on build.gnome.org?

Sincerely, I really doubt that build.gnome.org is placing the m4 stuff in non-standard locations. And if this is the case with my environment, just to note that this is the only module that it is failing.
Comment 10 Sven Herzberg 2010-11-14 21:51:46 UTC
Created attachment 174460 [details] [review]
Fixup for the first commit.

Please take a look at committing this patch (or telling me that you reviewed it). After Tor's comment, this patch should have been committed already, I think.
Comment 11 Sven Herzberg 2010-11-15 18:14:26 UTC
Behdad reviewed my patch through IRC, I just committed it:
http://git.gnome.org/browse/pango/commit/?id=588847fe4b5ed905f3a035825567e08a3b4d516d