From: František Dvořák Date: Wed, 11 Jun 2014 15:47:59 +0000 (+0200) Subject: Revert "Patch to fix loading native extension". Native library may need to be compile... X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3a683a7caca4364ff44c104a6672053e7d277b8c;p=rubygem-passenger-packaging.git Revert "Patch to fix loading native extension". Native library may need to be compiled on som cases (applications with different ruby...). --- diff --git a/native_dir.patch b/native_dir.patch deleted file mode 100644 index 61aa6d6..0000000 --- a/native_dir.patch +++ /dev/null @@ -1,19 +0,0 @@ -commit 205809c540c1648f1d92c821a53cdbc01d3c8fbc -Author: FrantiÅ¡ek Dvořák -Date: Wed Jun 11 14:05:11 2014 +0200 - - Native library location. - -diff --git a/lib/phusion_passenger/native_support.rb b/lib/phusion_passenger/native_support.rb -index 8f048bf..4083f91 100644 ---- a/lib/phusion_passenger/native_support.rb -+++ b/lib/phusion_passenger/native_support.rb -@@ -386,7 +386,7 @@ private - # to force it to be loaded. - $LOADED_FEATURES.reject! { |fn| File.basename(fn) == library_name } - begin -- require(name_or_filename) -+ require "%%NATIVE_SUPPORT_DIR%%/native/#{name_or_filename}" - return defined?(PhusionPassenger::NativeSupport) - rescue LoadError => e - if e.to_s =~ /dlopen/ diff --git a/rubygem-passenger.spec b/rubygem-passenger.spec index 72ae748..5f540ff 100644 --- a/rubygem-passenger.spec +++ b/rubygem-passenger.spec @@ -61,10 +61,6 @@ Patch107: rubygem-passenger-4.0.18-GLIBC_HAVE_LONG_LONG.patch # Until rubygem-bluecloth is in Fedora, don't use it Patch201: rubygem-passenger-4.0.18-correct_docs.patch -# Load native library from proper directory -Patch202: native_dir.patch - - Requires: rubygems # XXX: Needed to run passenger standalone Requires: rubygem(daemon_controller) >= 1.0.0 @@ -198,8 +194,6 @@ rebuilding this package. # Until bluecloth is in Fedora, don't use it %patch201 -p1 -b .docs -%patch202 -p1 -b .native - # Don't use bundled libev %{__rm} -rf ext/libev