Bug#571977: pivy coin_wrap.cpp too large

Paul Garlick it at tourbillion-technology.com
Wed Jul 23 14:53:48 UTC 2014


Package: pivy
Version: 0.5.0~v609hg-3
Tags: patch

Dear Maintainer,

Please consider including the attached patch for powerpc, which allows 
the package to build successfully from the source.  As identified in the 
original report the problem is the size of the wrapper code that is 
generated by SWIG.  The limitation is imposed by the powerpc 
architechture (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41644 
and https://bugzilla.redhat.com/show_bug.cgi?id=427700 for some 
background).

The problem is solved by splitting the interface file into four parts 
(coin[0-3].i) and re-assembling the resulting modules in coin.py.  The 
setup.py file is changed in order to compile each part individually.  
The header files are divided between the four interface files in order 
to keep the size of the individual wrapper files below 10Mb.

After building and installing the package the unit tests run 
successfully:

$ cd tests
$ python coin_tests.py
...........................................................................................
----------------------------------------------------------------------
Ran 91 tests in 0.548s

OK

Best regards,

Paul.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: SWIG_split.diff
Type: text/x-diff
Size: 112060 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20140723/aeafaaba/attachment-0001.diff>


More information about the debian-science-maintainers mailing list