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 705365 - aclocal runs before intltool macros are copied
aclocal runs before intltool macros are copied
Status: RESOLVED FIXED
Product: gnome-common
Classification: Core
Component: general
git master
Other Linux
: Normal major
: ---
Assigned To: Gnome Common Maintainer(s)
Gnome Common Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-08-02 16:55 UTC by Seán de Búrca
Modified: 2013-08-27 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to intltoolize before aclocal is run (858 bytes, patch)
2013-08-02 16:55 UTC, Seán de Búrca
committed Details | Review

Description Seán de Búrca 2013-08-02 16:55:52 UTC
Created attachment 250727 [details] [review]
Patch to intltoolize before aclocal is run

When running gnome-autogen.sh from master, aclocal is run by autoreconf before intltool.m4 is copied into the macro dir. This causes configure files which use IT_PROG_INTLTOOL to fail, as the macro is not included in aclocal.m4. Reordering intltoolize and autoreconf solves this problem without introducing any other apparent issues. A patch is attached, and I can commit it if it is approved.
Comment 1 Seán de Búrca 2013-08-02 19:46:21 UTC
It appears this does cause a problem: if autopoint is run (by autoreconf) after intltoolize, it replaces po/Makefile.in.in and configure complains that said file isn't created by intltoolize. This creates a conflict, though. Either we need to run autoreconf, intltoolize, then aclocal, or intltoolize, autoreconf, intltoolize.
Comment 2 David King 2013-08-03 15:57:03 UTC
Review of attachment 250727 [details] [review]:

I think that the best way to solve this is to set AUTOPOINT to "intltoolize…" if the intltool M4 macro is found in configure.ac. The bug was triggered (I guess) by a configure.ac which uses AM_GNU_GETTEXT and IT_PROG_INTLTOOL, which is unsupported by intltool: https://bugs.launchpad.net/intltool/+bug/654918
Comment 3 Javier Jardón (IRC: jjardon) 2013-08-04 16:49:27 UTC
Hello Seán de Búrca,

I tried the modules you seems to have problems with (gnome-bluethoot and gnome-online-accounts) and seems to build fine here (also the IT_PROG_INTLTOOL macro is included in aclocal.m4)

Could you be a little more specific about how to reproduce the bug? Thanks!
Comment 4 Javier Jardón (IRC: jjardon) 2013-08-04 16:50:22 UTC
Comment on attachment 250727 [details] [review]
Patch to intltoolize before aclocal is run

Rejected as this makes inttltool to complain about po/Makefile.in.in
Comment 5 Seán de Búrca 2013-08-04 18:29:49 UTC
I encountered this bug while running a clean jhbuild build on Fedora 19. In each case, a clean tree from git would cause aclocal to be run before intltoolize, meaning there was no intltool.m4 in the macro dir when aclocal was run and causing configure to fail due to missing IT_PROG_INTLTOOL. Rerunning autogen.sh after configure failed the first time would then include the contents of intltool.m4 in aclocal.m4, since the macro file was present when aclocal was run. This happened consistently across packages using gnome-autogen.sh in the jhbuild tree until patched.
Comment 6 Seán de Búrca 2013-08-05 17:52:00 UTC
I tried changing AUTOPOINT, but this results in config.rpath and ABOUT-NLS not being copied, which will cause automake to fail. Either we can file bugs against packages with both IT_PROG_INTLTOOL and AM_GNU_GETTEXT, whose consequences I'm not certain of, or we could set AUTOPOINT to not --force, meaning it won't replace po/Makefile.in.in.
Comment 7 David King 2013-08-06 08:19:01 UTC
Using both IT_PROG_INTLTOOL and AM_GNU_GETTEXT is a bug, so please file bugs against packages which do that. The intltool documentation now says that only IT_PROG_INTLTOOL should be used: https://code.launchpad.net/~robert-ancell/intltool/remove-am-gnu-gettext/+merge/114274
Comment 8 Seán de Búrca 2013-08-06 13:52:27 UTC
In that case, the behavior of the initial patch should be correct. I'll start filing bugs against packages where applicable.
Comment 9 Seán de Búrca 2013-08-26 23:18:12 UTC
Review of attachment 250727 [details] [review]:

I was able to reproduce the bug with a clean jhbuild install and build tree. gnome-online-accounts was the first package affected. Applying the patch corrected the issue. As per David King's comments, I have filed bugs against all packages in the gnome-core moduleset in jhbuild which use both IT_PROG_INTLTOOL and AM_GNU_GETTEXT and will be filing bugs against any in gnome-apps-3.10 that have the same problem. After patching the affected packages, I experienced no build failures and the packages in question appear to be correctly localized. The patch as currently attached should now be correct.
Comment 10 David King 2013-08-27 07:41:44 UTC
Review of attachment 250727 [details] [review]:

Tested and seems fine. When you commit, please make sure to add a link to this bug. Thanks!