Browse files

Patch REE install with better net/http lib.

  • Loading branch information...
1 parent ae3b529 commit 7c9ef21757f874818360ca63e5afbcd6c5ca2c23 @h3h h3h committed May 6, 2010
Showing with 18 additions and 0 deletions.
  1. +1 −0 README.markdown
  2. +13 −0 patches/net_http_socket_close.patch
  3. +4 −0 spec/ruby-enterprise.spec
View
1 README.markdown
@@ -20,6 +20,7 @@ Perform the following on a build box as root.
## Get Necessary System-specific Configs
git clone git://github.com/causes/ree-centos.git
+ cp ree-centos/patches/* ~/rpmbuild/SOURCES/
cp ree-centos/spec/ruby-enterprise.spec ~/rpmbuild/SPECS/
## Build the RPM
View
13 patches/net_http_socket_close.patch
@@ -0,0 +1,13 @@
+Index: lib/net/http.rb
+===================================================================
+--- lib/net/http.rb (revision 26550)
++++ lib/net/http.rb (working copy)
+@@ -1057,7 +1057,7 @@
+ res
+ rescue => exception
+ D "Conn close because of error #{exception}"
+- @socket.close unless @socket.closed?
++ @socket.close if @socket and not @socket.closed?
+ raise exception
+ end
+
View
4 spec/ruby-enterprise.spec
@@ -8,13 +8,17 @@ Source: ruby-enterprise-%{version}-%{release}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
+Patch0: net_http_socket_close.patch
+
%description
Ruby Enterprise Edition is a copy-on-right friendly version of ruby that also
includes several performance patches.
%prep
%setup -q -n ruby-enterprise-%{version}-%{release}/source
+%patch0 -p0
+
%build
./configure --prefix=/opt/ruby

0 comments on commit 7c9ef21

Please sign in to comment.