Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 2009 10:40:10 GMT
From:      Ari Maniatis <ari@ish.com.au>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/139862: ruby19-p243 contains a bug in a library which causes widespread issues
Message-ID:  <200910231040.n9NAeAnJ068934@www.freebsd.org>
Resent-Message-ID: <200910231050.n9NAo0ME059198@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         139862
>Category:       ports
>Synopsis:       ruby19-p243 contains a bug in a library which causes widespread issues
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 23 10:50:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ari Maniatis
>Release:        8.0-RC1
>Organization:
ish
>Environment:
>Description:
This problem: http://groups.google.com/group/rack-devel/browse_thread/thread/a2aab3a4720f34c4 causes grief for most people using passenger with the ruby 1.9 version which was just pushed out to the FreeBSD ports.

See also: http://code.google.com/p/phusion-passenger/issues/detail?id=340

The underlying problem is here: http://redmine.ruby-lang.org/issues/show/1494#note-10

The solution as applied in that thread to the Ruby svn is here: http://redmine.ruby-lang.org/repositories/diff/ruby-19?rev=24662

All I've done is wrap that change up in a patch for the FreeBSD port. It should be removed when we get the next official Ruby update but until then this will probably help a lot of people.
>How-To-Repeat:

>Fix:
Add the following patch file to the lang/ruby19 port.


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	files/patch-tempfile.rb
#
echo x - files/patch-tempfile.rb
sed 's/^X//' >files/patch-tempfile.rb << 'acd0f6ec54da8c0a2144dbd8c53e1726'
X--- lib/tempfile.rb.orig	2009-07-15 21:57:41.000000000 +1000
X+++ lib/tempfile.rb	2009-10-23 21:31:49.159715744 +1100
X@@ -137,7 +137,6 @@
X     # keep this order for thread safeness
X     begin
X       if File.exist?(@tmpname)
X-        closed? or close
X         File.unlink(@tmpname)
X       end
X       @@cleanlist.delete(@tmpname)
acd0f6ec54da8c0a2144dbd8c53e1726
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910231040.n9NAeAnJ068934>