Hi,

> Now, however, using what is in unstable, ie 
> 
> Get:33 http://ftp.us.debian.org unstable/main libruby1.8 1.8.7.173-1 [1679kB]
> Get:34 http://ftp.us.debian.org unstable/main ruby1.8 1.8.7.173-1 [290kB]
> Get:35 http://ftp.us.debian.org unstable/main ruby 4.2 [20.6kB]
> Get:36 http://ftp.us.debian.org unstable/main ruby1.8-dev 1.8.7.173-1 [835kB]
> 
> I end up with
> 
> 
> (cd Ruby && ruby setup.rb test                        )
> creating Makefile
> make[1]: Entering directory `/tmp/buildd/quantlib-swig-0.9.7/Ruby'
> make[1]: *** No rule to make target `Makefile', needed by `QuantLibc.so'.  
> Stop.
> make[1]: Leaving directory `/tmp/buildd/quantlib-swig-0.9.7/Ruby'
> /tmp/buildd/quantlib-swig-0.9.7/Ruby/QuantLib.rb:18:in `require': no such 
> file to load -- QuantLibc (LoadError)
>       from /tmp/buildd/quantlib-swig-0.9.7/Ruby/QuantLib.rb:18
>       from ./dates.rb:18:in `require'
>       from ./dates.rb:18
>       from ./QuantLibTestSuite.rb:23:in `require'
>       from ./QuantLibTestSuite.rb:23
>       from setup.rb:134:in `load'
>       from setup.rb:134
>       from setup.rb:70:in `call'
>       from setup.rb:70:in `execute'
>       from setup.rb:173
> Testing QuantLib-Ruby 0.9.7...
> make: *** [test-stamp] Error 1
> 
> Same for the install target.
> 
> Or is this something that requires upstream changes in setup.rb ?
"ruby setup.rb build" executes the following process:

 1. test -f Makefile && mv Makefile Makefile.old
 2. create Makefile for QuantLibc.so
    (It is similar to "ruby -rmkmf -e 'create_makefile("QuantLibc")".)
 3. mv Makefile extension.mak
 4. test -f Makefile.old && mv Makefile.old Makefile

The "setup.rb" assumed that
the "Makefile" in step1 is generated by the configure script.

The "extension.mak" depends on the "Makefile", but
debian/rules doesn't execute the configure script.
It is the problem, I think.

BTW, I try to build QuantLibc.so as the following step
(with ruby1.8_1.8.7.174-1):

 1. apt-get source quantlib-swig
 2. cd quantlib-swig-0.9.7/Ruby
 3. touch Makefile
 4. ruby setup.rb build
 5. ruby setup.rb test

In step4, I got the QuantLibc.so.
In step5, I got the following output:

$ ruby setup.rb test
creating Makefile
make: Nothing to be done for `all'.
Testing QuantLib-Ruby 0.9.7...
Loaded suite QuantLib test suite
Started
Testing date ranges: .
Testing observability of stocks: .
Testing observability of market elements: .
Testing observability of market element handles: .
Testing segment integral: .
Testing 1-D solvers: .
Testing observability of forward-spreaded term structure: .
Testing observability of implied term structure: .
Testing observability of zero-spreaded term structure: .

Finished in 0.672149 seconds.

9 tests, 0 assertions, 0 failures, 0 errors

-- 
ay



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to