Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2006 06:29:58 +1100 (EST)
From:      Alastair Rankine <arsptr@optusnet.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92511: [patch] www/instiki port broken with ruby 1.8.3
Message-ID:  <20060129192958.DAC6B2E046@claude.girtby.info>
Resent-Message-ID: <200601291940.k0TJe3CZ034181@freefall.freebsd.org>

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

>Number:         92511
>Category:       ports
>Synopsis:       [patch] www/instiki port broken with ruby 1.8.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 29 19:40:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alastair Rankine
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD claude.girtby.info 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 10 12:29:55 EST 2005 alastair@claude.girtby.info:/usr/obj/usr/src/sys/CLAUDE i386


>Description:

After upgrading to ruby 1.8.3, Instiki will no longer start up. This is due to changes in the ruby Logger interface, as used by the supplied active_support module.

Official patch is here: http://dev.rubyonrails.org/attachment/ticket/2245/as_clean_logger_rb-fixed.patch

Port maintainer kelley@insidesystems.net not responsive

>How-To-Repeat:

/usr/local/instiki/instiki

>Fix:

Official patch doesn't apply cleanly. The enclosed patch is functionally identical, suitable for including in the port. A bump in PORTREVISION is probably needed too.

--- patch-as_clean_logger_rb begins here ---
--- vendor/rails/activesupport/lib/active_support/clean_logger.rb.orig	2005-09-21 00:31:08.000000000 -0700
+++ vendor/rails/activesupport/lib/active_support/clean_logger.rb	2005-09-21 00:45:36.000000000 -0700
@@ -10,7 +10,9 @@
   end
 
   private
-    remove_const "Format"
+    if const_defined?(:Format) # Not defined in Ruby 1.8.3
+      remove_const "Format"
+    end
     Format = "%s\n"
     def format_message(severity, timestamp, msg, progname)
       Format % [msg]
--- patch-as_clean_logger_rb ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
 



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