Package: ruby2.1
Version: 2.1.2-4
Followup-For: Bug #761405

This has been fixed upstream and is already committed to subversion.

https://bugs.ruby-lang.org/issues/9499

The fix will likely be included in ruby-2.1.3, whenever that comes out.

For the moment, here is the patch (equivalent to but different from my patch
that I provided in a previous message) that will apply the exact, same fix as
was applied upstream:

--- /usr/lib/ruby/2.1.0/matrix.rb       2014-05-08 09:46:50.000000000 -0600
+++ ruby/lib/matrix.rb  2014-09-13 14:30:31.321171645 -0600
@@ -1764,9 +1811,9 @@
   #
   def cross_product(v)
     Vector.Raise ErrDimensionMismatch unless size == v.size && v.size == 3
-    Vector[ v[1]*@elements[2] - v[2]*@elements[1],
-            v[2]*@elements[0] - v[0]*@elements[2],
-            v[0]*@elements[1] - v[1]*@elements[0] ]
+    Vector[ v[2]*@elements[1] - v[1]*@elements[2],
+            v[0]*@elements[2] - v[2]*@elements[0],
+            v[1]*@elements[0] - v[0]*@elements[1] ]
   end
 
   #

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ruby2.1 depends on:
ii  libc6                 2.19-11
ii  libgmp10              2:6.0.0+dfsg-6
ii  libruby2.1            2.1.2-4
ii  rubygems-integration  1.8

Versions of packages ruby2.1 recommends:
ii  libjs-jquery  1.7.2+dfsg-3.2

ruby2.1 suggests no packages.

-- no debconf information


-- 
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