[DRE-maint] Bug#656809: help with ruby-ffi on armhf - several failing tests (#656809)

Antonio Terceiro terceiro at debian.org
Sat Jan 21 23:03:24 UTC 2012


Dear armhf porters,

I need some help from you to solve a ruby-ffi FTBFS on armhf. The source
builds, but several unit tests fail, and they are all related to float
pointing numbers.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656809

I am attaching a simple test script that reveals the problem without having to
run the full test suite. To run it:

  * get the ruby-ffi source and install build dependencies
  * run the test script from the root of the sources with something like:
    $ ruby /path/to/ruby-ffi-test-armhf.rb

A second run will produce a cleaner output, since it doesn't need to
build the C code anymore.

It doesn't matter whether you use ruby 1.8 or 1.9, the same tests fail
on both.

On amd64, the test script gives me:

Expected 100, got 100
Expected 1.5, got 1.5
Expected 2.7, got 2.7

On the sid chroot in harris.debian.org, I get:

Expected 100, got 100
Expected 1.5, got 2.90211670708434e-102
Expected 2.7, got 2.90085606709136e-102

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruby-ffi-test-armhf.rb
Type: application/x-ruby
Size: 1192 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20120121/4ac3db6d/attachment.rb>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20120121/4ac3db6d/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list