[MacPorts] #58750: gnumeric @1.12.45_0+python27 build failure running itstool
MacPorts
noreply at macports.org
Wed Nov 20 05:15:57 UTC 2019
#58750: gnumeric @1.12.45_0+python27 build failure running itstool
-----------------------+----------------------
Reporter: hellyj | Owner: dbevans
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: gnumeric |
-----------------------+----------------------
Comment (by bzbarsky):
It looks like the basic problem is that the relevant localization files
have non-breaking spaces, and when something in the XML processing itstool
does fails it tries to report that as a warning like so:
{{{
#!python
sys.stderr.write('Warning: Could not merge %stranslation
for msgid:\\
n%s\n' % (
(lang + ' ') if lang is not None else '',
msgstr.encode('utf-8')))
}}}
where `msgstr` is the thing containing the non-breaking space. And
somewhere under the hood that tries to treat the return value of `encode`
as ASCII, which of course it's not, and things blow up. So the attempt to
report a warning completely breaks the compile.
I managed to install gnumeric by just editing `/opt/local/bin/itstool`
(with sudo) to comment out those three lines. I don't know whether
`itstool` should be doing a `try` around that statement or something else
to avoid the exception there.
--
Ticket URL: <https://trac.macports.org/ticket/58750#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list