From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 23 10:50:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2E14106568D for ; Fri, 23 Oct 2009 10:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A52248FC1B for ; Fri, 23 Oct 2009 10:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9NAo0DF059199 for ; Fri, 23 Oct 2009 10:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9NAo0ME059198; Fri, 23 Oct 2009 10:50:00 GMT (envelope-from gnats) Resent-Date: Fri, 23 Oct 2009 10:50:00 GMT Resent-Message-Id: <200910231050.n9NAo0ME059198@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ari Maniatis Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 694281065694 for ; Fri, 23 Oct 2009 10:40:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 57D238FC18 for ; Fri, 23 Oct 2009 10:40:11 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9NAeA5P068947 for ; Fri, 23 Oct 2009 10:40:10 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n9NAeAnJ068934; Fri, 23 Oct 2009 10:40:10 GMT (envelope-from nobody) Message-Id: <200910231040.n9NAeAnJ068934@www.freebsd.org> Date: Fri, 23 Oct 2009 10:40:10 GMT From: Ari Maniatis To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/139862: ruby19-p243 contains a bug in a library which causes widespread issues X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2009 10:50:02 -0000 >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: