[DRE-commits] [ruby-dep-selector] 01/02: Patch: search for dep_gecode.so in vendorarchdir

Hleb Valoshka tsfgnu-guest at moszumanska.debian.org
Wed Jul 22 14:42:52 UTC 2015


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

tsfgnu-guest pushed a commit to branch master
in repository ruby-dep-selector.

commit 7e87536c99ac12614939efee731a7556b3208e1a
Author: Hleb Valoshka <375gnu at gmail.com>
Date:   Wed Jul 22 17:34:31 2015 +0300

    Patch: search for dep_gecode.so in vendorarchdir
---
 ...-Search-for-dep_gecode.so-in-vendorarchdir.patch | 21 +++++++++++++++++++++
 debian/patches/series                               |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/0006-Search-for-dep_gecode.so-in-vendorarchdir.patch b/debian/patches/0006-Search-for-dep_gecode.so-in-vendorarchdir.patch
new file mode 100644
index 0000000..b768f9a
--- /dev/null
+++ b/debian/patches/0006-Search-for-dep_gecode.so-in-vendorarchdir.patch
@@ -0,0 +1,21 @@
+From: Hleb Valoshka <375gnu at gmail.com>
+Date: Wed, 22 Jul 2015 17:25:40 +0300
+Subject: Search for dep_gecode.so in vendorarchdir
+
+---
+ lib/dep_selector/dep_gecode.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/dep_selector/dep_gecode.rb b/lib/dep_selector/dep_gecode.rb
+index af5566f..58dd8f9 100644
+--- a/lib/dep_selector/dep_gecode.rb
++++ b/lib/dep_selector/dep_gecode.rb
+@@ -22,7 +22,7 @@ module Dep_gecode
+ 
+   extend FFI::Library
+ 
+-  lib_dir = File.expand_path("../../", __FILE__)
++  lib_dir = RbConfig::CONFIG['vendorarchdir']
+   lib_dir_path = Dir["#{lib_dir}/dep_gecode.*"].first
+ 
+   ext_dir = File.expand_path("../../../ext/dep_gecode/", __FILE__)
diff --git a/debian/patches/series b/debian/patches/series
index 7f82ec2..30158b6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 0003-Do-not-set-rpath.patch
 0004-Make-it-solve-2.0-compatible.patch
 0005-Make-tests-rspec3-compatible.patch
+0006-Search-for-dep_gecode.so-in-vendorarchdir.patch

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



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