[DRE-commits] [ruby-nmatrix] 02/02: link against lapack and lapack_atlas

Cédric Boutillier boutil at alioth.debian.org
Mon Sep 23 12:24:14 UTC 2013


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-nmatrix.

commit 6e060a36cce6f908df8a3b55cd8f992bfe606616
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Sep 23 14:08:18 2013 +0200

    link against lapack and lapack_atlas
---
 debian/patches/link_lapack_atlas.patch |   33 ++++++++++++++++++++++++++++++++
 debian/patches/series                  |    1 +
 2 files changed, 34 insertions(+)

diff --git a/debian/patches/link_lapack_atlas.patch b/debian/patches/link_lapack_atlas.patch
new file mode 100644
index 0000000..8ee2809
--- /dev/null
+++ b/debian/patches/link_lapack_atlas.patch
@@ -0,0 +1,33 @@
+Description: link against lapack and lapack_atlas
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: no
+Last-Modified: 2013-09-23
+
+--- a/ext/nmatrix/extconf.rb
++++ b/ext/nmatrix/extconf.rb
+@@ -142,9 +142,13 @@
+              cblas: ["/usr/local/lib", "/usr/local/atlas/lib"],
+              atlas: ["/usr/local/atlas/lib", "/usr/local/lib", "/usr/lib"]}
+ 
+-unless have_library("lapack")
+-  dir_config("lapack", idefaults[:lapack], ldefaults[:lapack])
+-end
++#unless have_library("lapack")
++#  dir_config("lapack", idefaults[:lapack], ldefaults[:lapack])
++#end
++#
++
++have_library("lapack")
++have_library("lapack_atlas")
+ 
+ unless have_library("cblas")
+   dir_config("cblas", idefaults[:cblas], ldefaults[:cblas])
+@@ -180,7 +184,7 @@
+ #find_library("atlas", "ATL_dgemmNN")
+ 
+ # Order matters here: ATLAS has to go after LAPACK: http://mail.scipy.org/pipermail/scipy-user/2007-January/010717.html
+-$libs += " -llapack -lcblas -latlas "
++#$libs += " -llapack -lcblas -latlas "
+ 
+ $objs = %w{nmatrix ruby_constants data/data util/io math util/sl_list storage/common storage/storage storage/dense storage/yale/yale storage/list}.map { |i| i + ".o" }
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..530ae62
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+link_lapack_atlas.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-nmatrix.git



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