Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Mobile and Embedded (http://www.linux-archive.org/ubuntu-mobile-embedded/)
-   -   claws-email fails when running intltool-update -p (http://www.linux-archive.org/ubuntu-mobile-embedded/54516-claws-email-fails-when-running-intltool-update-p.html)

Kyle Nitzsche 02-13-2008 01:37 PM

claws-email fails when running intltool-update -p
 
Howdy,*When I run intltool-update -p in claws-email's op/ directory to build a po template file, intlltool-update quits with an error.*I think it is because intltool-update is inserting a string (--msgid-bugs-address="paul@claws-)*into the xgettext part of the process that xgettext interprets as an input file to scan for marked strings, but since this is not a file that should be scanned for marked strings, the fatal error occurs.None of the other applications I've tried intltool-update -p on insert such a string into xgettext, and I don't think it should be here. When I grep for the string, the closest I find is in po/Makefile.in.in, which contains:**--msgid-bugs-address="$$msgid_bugs_address"Below find the verbose intltool-update -p -x output.*xgettext: warning: file `./../src/quote_fmt_parse.y' extension `y' is unknown; will try Cxgettext: warning: file ` --msgid-bugs-address=paul@claws-mail.org' extension `org' is unknown; will try Cxgettext: error while opening " --msgid-bugs-address=paul@claws-mail.org" for reading: No such file or directoryERROR: xgettext failed to generate PO template file. Please consult** * * error message above if there is any.(P: compal-stable-20080206.mic.2)root@kyle-gutsydesktop:~/src/claws-mail/claws-mail-3.2.0/po# intltool-update -p -xBuilding claws-mail.pot...Running xgettext --add-comments --directory=. --default-domain=claws-mail --flag=g_strdup_printf:1:c-format --flag=g_string_printf:2:c-format --flag=g_string_append_printf:2:c-format --flag=g_error_new:3:c-format --flag=g_set_error:4:c-format --flag=g_markup_printf_escaped:1:c-format --flag=g_log:3:c-format --flag=g_print:1:c-format --flag=g_printerr:1:c-format --flag=g_printf:1:c-format --flag=g_fprintf:2:c-format --flag=g_sprintf:2:c-format --flag=g_snprintf:3:c-format --flag=g_scanner_error:2:c-format --flag=g_scanner_warn:2:c-format --output=claws-mail.pot --files-from=./POTFILES.in.temp * --msgid-bugs-address="paul@claws-mail.org" --from-code=ASCIIRemoving generated header (.h) files...done.xgettext: warning: file `./../src/quote_fmt_parse.y' extension `y' is unknown; will try Cxgettext: warning: file ` --msgid-bugs-address=paul@claws-mail.org' extension `org' is unknown; will try Cxgettext: error while opening " --msgid-bugs-address=paul@claws-mail.org" for reading: No such file or directoryERROR: xgettext failed to generate PO template file. Please consult** * * error message above if there is any.Anyone have any suggestions?Kyle--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Matt Zimmerman 02-13-2008 02:02 PM

claws-email fails when running intltool-update -p
 
On Wed, Feb 13, 2008 at 09:37:57AM -0500, Kyle Nitzsche wrote:
> mail/claws-mail-3.2.0/po# intltool-update -p -x
> Building claws-mail.pot...
> Running xgettext --add-comments --directory=. --default-domain=claws-
> mail --flag=g_strdup_printf:1:c-format --flag=g_string_printf:2:c-format
> --flag=g_string_append_printf:2:c-format --flag=g_error_new:3:c-format
> --flag=g_set_error:4:c-format --flag=g_markup_printf_escaped:1:c-format
> --flag=g_log:3:c-format --flag=g_print:1:c-format --
> flag=g_printerr:1:c-format --flag=g_printf:1:c-format --flag=g_fprintf:
> 2:c-format --flag=g_sprintf:2:c-format --flag=g_snprintf:3:c-format --
> flag=g_scanner_error:2:c-format --flag=g_scanner_warn:2:c-format --
> output=claws-mail.pot --files-from=./POTFILES.in.temp --msgid-bugs-

Quick fix: edit po/Makevars and change the XGETTEXT_OPTIONS variable
assignment to be all on one line, removing all of the backslashes. Patch
attached.

Long answer: intltool-update tries to parse this file to extract the right
parameters with which to run xgettext, but it does a bad job of it, which
results in that stray backslash you see before --msgid-bugs-address.

--
- mdz
--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


All times are GMT. The time now is 05:11 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.