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 672347 - Error regenerating POT file
Error regenerating POT file
Status: RESOLVED FIXED
Product: balsa
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Balsa Maintainers
Balsa Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-18 17:29 UTC by TLE
Modified: 2012-03-21 16:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description TLE 2012-03-18 17:29:28 UTC
Error while running check with "intltool-update -m".
Comment 1 TLE 2012-03-18 17:30:06 UTC
It is on the gtk3 branch
Comment 2 Peter Bloomfield 2012-03-18 19:25:54 UTC
Thanks for the report!

I get:

$ intltool-update -m
Unmatched ( in regex; marked by <-- HERE in m/^balsa-m4_esyscmd_s( <-- HERE test-d.git&&gitdescribe--tags||echo2.4.90/.*$/ at /usr/bin/intltool-update line 312, <FILE> line 97.

I don't know how to find the offending regex string; a quick look didn't show one that differs from the one in master.  Is there a log file somewhere with more details?
Comment 3 André Klapper 2012-03-19 08:09:50 UTC
On Fedora 16 with intltool-0.41.1-2.fc15.noarch I get a different line number:

Unmatched ( in regex; marked by <-- HERE in m/^balsa-m4_esyscmd_s( <-- HERE test-d.git&&gitdescribe--tags||echo2.4.90/.*$/ at /usr/bin/intltool-update line 312, <FILE> line 51.
Comment 4 Peter Bloomfield 2012-03-19 12:09:21 UTC
Hi André!

Yes, that's odd--I have the same version of intltool.

I don't see anything regex-related at either line of any file that uses regex.  However, lines 11-14 of configure.in use this code to set the version:

# if autoconf is used not in a git source tree, use version=2.4.90
AC_INIT([balsa],
        m4_esyscmd_s([test -d .git && git describe --tags || echo 2.4.90]),
        [])

which looks sorta like the text in the error.  It builds fine, but possibly confuses intltool-update.  Deleting those lines allows intltool-update -m to run, with many warnings like:

Use of uninitialized value in regexp compilation at /usr/bin/intltool-update line 312, <FILE> line 2.

and finally a constructive message:

The following files contain translations and are currently not in use. Please
consider adding these to the POTFILES.in file, located in the po/ directory.

balsa-mailto-handler.desktop.in

I'm not sure what to do about those lines in configure.in.
Comment 5 Peter Bloomfield 2012-03-19 12:31:21 UTC
Seems that intltool-update doesn't know about m4_esyscmd_s.  If I replace it with m4_esyscmd, everything's fine--except configure fails because the version string has a trailing newline.  I can get rid of that by using 'echo -n' instead of 'echo', but it's not portable.

Any thoughts?
Comment 6 Peter Bloomfield 2012-03-21 02:15:26 UTC
I've replaced m4_esyscmd_s with m4_esyscmd and used echo -n to trim the trailing newline.  Please verify that it fixes the bug.

Thanks!
Comment 7 TLE 2012-03-21 08:42:38 UTC
From what I can see on the damned lies page[1] this fixes the original problem. The pot-fil can however still not be built, because the file balsa-mailto-handler.desktop.in is mentioned in POTFILES.in or POTFILES.skip and it doesn't exist. You can see a more thorough error description on that same page.

Regards Kenneth

[1] http://l10n.gnome.org/module/balsa/#gtk3
Comment 8 Peter Bloomfield 2012-03-21 12:50:45 UTC
Sorry about that!  I've moved balsa-mailto-handler.desktop.in and balsa-.desktop.in to POTFILES.skip.  They're generated files, and were present in my tree, so I didn't see the issue.

I ran "intltool-update -p" with those files removed, and saw no error.  It appears that a non-existent file in POTFILES.skip is not an error--is that correct?  I'm very unfamiliar with the pot files.

Thanks for your input!

Peter
Comment 9 TLE 2012-03-21 15:05:35 UTC
The damned lies page is no longer showing any errors.

Thanks for fixing it.

I have no idea about your POTFILES.skip question.

Regards Kenneth
Comment 10 Peter Bloomfield 2012-03-21 16:46:22 UTC
Thanks for checking!

Resolving as FIXED...