From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 6 17:20:02 2008 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 A85DE1065671 for ; Sun, 6 Apr 2008 17:20:02 +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 7BE8E8FC19 for ; Sun, 6 Apr 2008 17:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m36HK2d2042249 for ; Sun, 6 Apr 2008 17:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m36HK2LC042248; Sun, 6 Apr 2008 17:20:02 GMT (envelope-from gnats) Resent-Date: Sun, 6 Apr 2008 17:20:02 GMT Resent-Message-Id: <200804061720.m36HK2LC042248@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, bf Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C48911065675 for ; Sun, 6 Apr 2008 17:17:51 +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 AA1E88FC0A for ; Sun, 6 Apr 2008 17:17:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m36HHdBL064061 for ; Sun, 6 Apr 2008 17:17:39 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m36HHdNs064060; Sun, 6 Apr 2008 17:17:39 GMT (envelope-from nobody) Message-Id: <200804061717.m36HHdNs064060@www.freebsd.org> Date: Sun, 6 Apr 2008 17:17:39 GMT From: bf To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/122507: [PATCH]sysutils/ck4up: interim fix for new ruby world order 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: Sun, 06 Apr 2008 17:20:02 -0000 >Number: 122507 >Category: ports >Synopsis: [PATCH]sysutils/ck4up: interim fix for new ruby world order >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 06 17:20:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: bf >Release: 7-STABLE i386 >Organization: - >Environment: >Description: ck4up needs to be patched to use ruby 1.9. In the meantime, require ruby 1.8 in the port Makefile and use RUBY_SHEBANG_FILES in lieu of patch-ck4up.rb. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -druN ck4up.orig/Makefile ck4up/Makefile --- ck4up.orig/Makefile 2007-10-23 19:07:25.000000000 -0400 +++ ck4up/Makefile 2008-04-06 13:01:22.332743781 -0400 @@ -17,6 +17,9 @@ NO_BUILD= yes USE_RUBY= yes +RUBY_VER= 1.8 +RUBY_NO_BUILD_DEPENDS= yes +RUBY_SHEBANG_FILES= ck4up.rb MAN1= ck4up.1 @@ -24,7 +27,7 @@ PLIST_FILES= bin/ck4up %%EXAMPLESDIR%%/ck4up.conf post-patch: - ${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/* + @${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/* post-install: .if !defined(NOPORTDOCS) diff -druN ck4up.orig/files/patch-ck4up.rb ck4up/files/patch-ck4up.rb --- ck4up.orig/files/patch-ck4up.rb 2006-11-20 14:05:47.000000000 -0500 +++ ck4up/files/patch-ck4up.rb 1969-12-31 19:00:00.000000000 -0500 @@ -1,8 +0,0 @@ ---- ck4up.rb.orig Sun Nov 19 21:39:42 2006 -+++ ck4up.rb Sun Nov 19 21:40:03 2006 -@@ -1,4 +1,4 @@ --#! /usr/bin/ruby -+#! %%PREFIX%%/bin/ruby - # - # ck4up - # >Release-Note: >Audit-Trail: >Unformatted: