[packages/ruby-ffi-yajl] ffi_yajl/ext: use hardcoded libyajl.so name
glen
glen at pld-linux.org
Thu Jan 22 12:57:43 CET 2015
commit 18f8d1e212b102fc92ad5017e0912f49d0c154cf
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Jan 22 13:57:29 2015 +0200
ffi_yajl/ext: use hardcoded libyajl.so name
system-yajl.patch | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/system-yajl.patch b/system-yajl.patch
index 4669d03..1f441ed 100644
--- a/system-yajl.patch
+++ b/system-yajl.patch
@@ -25,6 +25,28 @@
class YajlCallbacks < ::FFI::Struct
layout :yajl_null, :pointer,
+--- ruby-ffi-yajl-1.3.1/lib/ffi_yajl/ext.rb 2015-01-22 13:55:11.513182150 +0200
++++ ruby-ffi-yajl-1.3.1/lib/ffi_yajl/ext.rb 2015-01-22 13:55:53.882526948 +0200
+@@ -3,18 +3,9 @@
+ require 'ffi_yajl/encoder'
+ require 'ffi_yajl/parser'
+ require 'ffi'
+-require 'libyajl2'
+
+ module FFI_Yajl
+- # FIXME: DRY with ffi_yajl/ffi.rb
+- # FIXME: extract map_library_name from FFI and stop requiring it at the top level
+- # so that the C-library can be installed without FFI
+- libname = ::FFI.map_library_name("yajl")
+- # awful windows patch, but there is an open issue to entirely replace FFI.map_library_name already
+- libname = "libyajl.so" if libname == "yajl.dll"
+- libpath = File.expand_path(File.join(Libyajl2.opt_path, libname))
+- libpath.gsub!(/dylib/, 'bundle')
+- libpath = ::FFI.map_library_name("yajl") unless File.exist?(libpath)
++ libpath = 'libyajl.so.2'
+
+ #
+ # FFS, what exactly was so wrong with DL.dlopen that ruby had to get rid of it???
--- ffi-yajl-1.2.0/ext/ffi_yajl/ext/encoder/extconf.rb~ 2014-11-12 23:19:03.000000000 +0200
+++ ffi-yajl-1.2.0/ext/ffi_yajl/ext/encoder/extconf.rb 2014-11-12 23:20:13.882893756 +0200
@@ -1,13 +1,8 @@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-ffi-yajl.git/commitdiff/18f8d1e212b102fc92ad5017e0912f49d0c154cf
More information about the pld-cvs-commit
mailing list