File pr-6.patch of Package rubygem-archive
From 2f1e5c76413780aee66485772ffc2bdb7fcbd0f4 Mon Sep 17 00:00:00 2001
From: Thomas Boerger <tboerger@suse.de>
Date: Fri, 13 Nov 2015 08:46:21 +0100
Subject: [PATCH] Propoer ffi_lib include
As documented on
https://github.com/ffi/ffi/wiki/Loading-Libraries#linux-packages we
should use a proper ffi_lib parameter because the *.so files are not
part of the regular packages on many distributions. With that patch we
are able to just install libarchive13 instead of libarchive-devel as a
runtime dependency on openSUSE/SLES.
---
lib/archive/libarchive.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/archive/libarchive.rb b/lib/archive/libarchive.rb
index bf0cd73..9f7dca0 100644
--- a/lib/archive/libarchive.rb
+++ b/lib/archive/libarchive.rb
@@ -130,7 +130,7 @@ module Archive # :nodoc:
elsif ::FFI::Platform.mac? and File.exist?('/opt/local/lib/libarchive.dylib')
self.linked_archive_library = '/opt/local/lib/libarchive.dylib'
else
- self.linked_archive_library = 'archive'
+ self.linked_archive_library = ['archive', 'libarchive.so.13']
end
ffi_lib self.linked_archive_library
--
2.5.1