Opened 15 years ago

Closed 13 years ago

#22060 closed defect (fixed)

Sphinx: Russian morphology on PowerPC

Reported by: serg.minaev@… Owned by: brett@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: powerpc Cc: jmroot (Joshua Root)
Port: sphinx

Description

Russian morphology (stem_ru) in Sphinx 0.9.8.1 can't work on PowerPC mac because of big-endian byte order.

File src/sphinxstemru.cpp contains a table of russian letters in little-endian byte order. It works only on x86 computer.

To fix it apply attached patch when building on PowerPC computer.

Attachments (1)

sphinx-0.9.8.1-big-endian.patch (1.3 KB) - added by serg.minaev@… 15 years ago.
patch for building on PowerPC

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by serg.minaev@…

patch for building on PowerPC

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to brett@…

comment:2 Changed 15 years ago by jmroot (Joshua Root)

If you do it right and choose between the two definitions with #ifdef __BIG_ENDIAN__ you could even send the patch upstream.

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Is this still a problem with 0.9.9? If so, has it been reported upstream?

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Cc: jmr@… added

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: powerpc added
Summary: Sphinx: russain morphology on PowerPCSphinx: Russian morphology on PowerPC

serg, could you answer the question asked above (in the ticket)?

comment:6 Changed 13 years ago by serg.minaev@…

It seems to be a problem in 0.9.9 and even in 2.0.2beta. I have not reported it upstream.

comment:7 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Patch added in r87626. Upstream bug report created: http://sphinxsearch.com/bugs/view.php?id=1007

Note: See TracTickets for help on using tickets.