Revert "Patch to fix loading native extension". Native library may need to be compile...
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Wed, 11 Jun 2014 15:47:59 +0000 (17:47 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Wed, 11 Jun 2014 15:47:59 +0000 (17:47 +0200)
native_dir.patch [deleted file]
rubygem-passenger.spec

diff --git a/native_dir.patch b/native_dir.patch
deleted file mode 100644 (file)
index 61aa6d6..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-commit 205809c540c1648f1d92c821a53cdbc01d3c8fbc
-Author: František Dvořák <valtri@civ.zcu.cz>
-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/
index 72ae748..5f540ff 100644 (file)
@@ -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