[MacPorts] #43346: glib2 @2.40.0 issues a "Got weird mach timebase info" error when running Inkscape 0.48.4 r9939
MacPorts
noreply at macports.org
Thu Apr 17 20:22:43 PDT 2014
#43346: glib2 @2.40.0 issues a "Got weird mach timebase info" error when running
Inkscape 0.48.4 r9939
-------------------------+--------------------------
Reporter: braumann@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: | Keywords: leopard ppc
Port: glib2 |
-------------------------+--------------------------
Comment (by ccorn@…):
The cause is in {{{glib/gmain.c}}} in function
{{{g_get_monotonic_time()}}}. When called for the first time, the function
sets {{{timebase_info}}} which is a fraction giving the mach tick period
in nanoseconds. That value is divided by 1000 to give microseconds. The
current code requires the resulting fraction to be representable as
1/denominator because the author did not feel the need for risking integer
overflows when multiplying. However, on PPC a representation as
1/denominator would not be exact, and the code errs out. I have replaced
the code with a {{{long double}}} computation that should be accurate
enough. I do not mind whether that's faster or slower than the previous
64-bit integer division. Feel free to try it for the time being until a
proper fix is provided upstream.
--
Ticket URL: <https://trac.macports.org/ticket/43346#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list