[Xapian-tickets] [Xapian] #593: Lua binding: rebuild with swig-option -nomoduleglobal
Xapian
nobody at xapian.org
Thu Mar 29 21:31:30 BST 2012
#593: Lua binding: rebuild with swig-option -nomoduleglobal
-----------------------------------+----------------------------------------
Reporter: istr | Owner: sabrina
Type: enhancement | Status: new
Priority: normal | Milestone: 1.2.10
Component: Xapian-bindings (Lua) | Version: 1.2.9
Severity: normal | Keywords:
Blockedby: | Platform: All
Blocking: |
-----------------------------------+----------------------------------------
As of swig 2.0.5 (current svn) that was used to build the lua binding
lua/xapian_wrap.cc anyway, the option -nomoduleglobal is supported.
It provides a way of creating modules that are compatible with the way lua
5.1 includes modules using require. With lua 5.1 being stable
for over 6 years and 5.2 being the last stable version there is not much
point for 5.0 backwards compatibility.
See swig tracker item 3394339
(http://sourceforge.net/tracker/?func=detail&aid=3394339&group_id=1645&atid=301645)
for the swig patch. Using this patch improves xapian lua binding
compatibility for many current distributions (at least debian, ubuntu).
Please find attached a patch against xapian-bindings-1.2.9 to apply the
flag (patches Makefile.in for maintainer mode and xapian_wrap.cc for out
of the box compilation).
--
Ticket URL: <http://trac.xapian.org/ticket/593>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list