Package: ruby-dep-selector / 1.0.3-2

0006-Search-for-dep_gecode.so-in-vendorarchdir.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Hleb Valoshka <375gnu@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__)