Christian, Luigi, Wow, you're still up. I usually fade near 10pm Chicago time :-/
On 31 December 2013 at 02:37, Christian Hofstaedtler wrote: | Dirk, Luigi, | | * Dirk Eddelbuettel <e...@debian.org> [131231 02:30]: | > On 30 December 2013 at 19:33, Christian Hofstaedtler wrote: | > | Dirk, | > | | > | * Dirk Eddelbuettel <e...@debian.org> [131226 02:09]: | > | > Could you possibly help with some Ruby assistance? | > | | > | I'm attaching a patch which makes 'make' in quantlib-swig-1.3/Ruby | > | run to completion. I have not tested if the built code works. | > | > The patch applied cleanly, but the build still fails for me (as a regular | > Debian build) as we do not regenerate Ruby/quantlib_wrap.cpp (which comes | > from the upstream tarball). | | quantlib_wrap.cpp is marked as BUILT_SOURCES in Ruby/Makefile.am. It | is my understanding that you really need to rebuild such files | during a Debian build. Noted, but politely disagreed. We've been at this for twelve years (!!) and Luigi's releases (built on Debian and now Ubuntu) just work. That said, I found my marbles and the swig setup invocation, and did swig -ruby -c++ -I../SWIG -o quantlib_wrap.cpp quantlib.i to create a new one. Now I can built it. Yay. Tests blow up: (cd Ruby && ruby setup.rb test ) creating Makefile make[1]: Entering directory `/tmp/buildd/quantlib-swig-1.3/Ruby' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/buildd/quantlib-swig-1.3/Ruby' /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- test/unit/testsuite (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from QuantLibTestSuite.rb:20:in `<top (required)>' from setup.rb:133:in `load' from setup.rb:133:in `block in <main>' from setup.rb:69:in `call' from setup.rb:69:in `execute' from setup.rb:172:in `<main>' Testing QuantLib-Ruby 1.3... but I will (for now) just comment the test suite call out. | > Luigi: You are somewhat connected to Swig. Did something change recently? I | > get heaps of | > | > quantlib_wrap.cpp: In function 'VALUE _wrap_MultipleIncrementalStatistics_add__SWIG_2(int, VALUE*, VALUE)': | > quantlib_wrap.cpp:245118:36: error: 'struct RArray' has no member named 'len' | > Size size = RARRAY(argv[0])->len; | > | > and Christian's patch rightly did a lot of (at the level of one .i file) | > | > | - Size size = RARRAY($input)->len; | > | + Size size = RARRAY_LEN($input); | | Well, RARRAY(blah)->len changing to RARRAY_LEN is a change | introduced in Ruby 1.9. Ack. | > I guess we need this for all files, | | (Only linearalgebra.i uses the RARRAY macro.) Ack, thanks. Thanks again! Dirk | > and then regenerate the cpp file for Ruby? | | I forgot that I deleted quantlib_wrap.cpp before running make; this | certainly helps with the build. | | > Thanks, Dirk | | Cheers, | Christian | -- | ,''`. Christian Hofstaedtler <z...@debian.org> | : :' : Debian Developer | `. `' 7D1A CFFA D9E0 806C 9C4C D392 5C13 D6DB 9305 2E03 | `- | | xapplication/pgp-signature [Click mouse-2 to save to a file] -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org