[issue1489] solaris build fails because of 'msgfmt -c'
John Coomes
mercurial-bugs at selenic.com
Wed Jan 28 02:02:17 CST 2009
New submission from John Coomes <john.coomes at sun.com>:
The solaris msgfmt command does not recognize the -c option, so building the
crew repo fails:
$ gmake install-bin PREFIX=/tmp/crew INSTALL='/usr/ucb/install -c'
python setup.py build
running build
running build_py
copying mercurial/__version__.py -> build/lib.solaris-2.10-sun4u-2.5/mercurial
running build_ext
running build_scripts
running build_mo
generating locale/da/LC_MESSAGES/hg.mo from i18n/da.po
msgfmt -v -c -o locale/da/LC_MESSAGES/hg.mo i18n/da.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
[-g] [-o outfile | --output-file=outfile]
[-s] [--strict] [-v] [--verbose] files ...
error: command 'msgfmt' failed with exit status 2
gmake: *** [build] Error 1
The -c option to msgfmt was added in 9f9bbd33f71e (i18n: check format strings
when building xx.mo files) which so far is only in crew.
The following allows the build to succeed (haven't run any tests on the result):
diff -r 5d25b2f59ade setup.py
--- a/setup.py Tue Jan 27 18:17:59 2009 +0100
+++ b/setup.py Tue Jan 27 23:53:45 2009 -0800
@@ -141,7 +141,7 @@
mofile = join(modir, 'hg.mo')
self.mkpath(modir)
self.make_file([pofile], mofile, spawn,
- (['msgfmt', '-v', '-c', '-o', mofile, pofile],))
+ (['msgfmt', '-v', '-o', mofile, pofile],))
self.distribution.data_files.append((join('mercurial', modir),
[mofile]))
----------
messages: 8518
nosy: jcoomes
priority: bug
status: unread
title: solaris build fails because of 'msgfmt -c'
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1489>
____________________________________________________
More information about the Mercurial-devel
mailing list