From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 19 21:40:09 2011 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 9F44D1065673 for ; Tue, 19 Apr 2011 21:40:09 +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 616278FC15 for ; Tue, 19 Apr 2011 21:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3JLe97I010479 for ; Tue, 19 Apr 2011 21:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3JLe9dZ010478; Tue, 19 Apr 2011 21:40:09 GMT (envelope-from gnats) Resent-Date: Tue, 19 Apr 2011 21:40:09 GMT Resent-Message-Id: <201104192140.p3JLe9dZ010478@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, Eric Freeman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17FC1106566C for ; Tue, 19 Apr 2011 21:33:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 079958FC16 for ; Tue, 19 Apr 2011 21:33:08 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p3JLX7WG018003 for ; Tue, 19 Apr 2011 21:33:07 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p3JLX78i017995; Tue, 19 Apr 2011 21:33:07 GMT (envelope-from nobody) Message-Id: <201104192133.p3JLX78i017995@red.freebsd.org> Date: Tue, 19 Apr 2011 21:33:07 GMT From: Eric Freeman To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/156505: [PATCH] graphics/ruby-imlib2 (patch to enable compiling with RUBY_VER 1.9) 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: Tue, 19 Apr 2011 21:40:09 -0000 >Number: 156505 >Category: ports >Synopsis: [PATCH] graphics/ruby-imlib2 (patch to enable compiling with RUBY_VER 1.9) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Apr 19 21:40:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eric Freeman >Release: 8.2 >Organization: >Environment: FreeBSD BSD8R.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: graphics/ruby-imlib2 does not currently compile with Ruby 1.9+ This is a simple patch to enable it work under Ruby 1.9+ >How-To-Repeat: install ruby 1.9 cd /usr/ports/graphics/ruby-imlib2 && make build RUBY_VER=1.9 fails >Fix: diff -ru ruby-imlib2.orig/Makefile ruby-imlib2/Makefile --- ruby-imlib2.orig/Makefile 2011-04-18 12:13:16.000000000 +0100 +++ ruby-imlib2/Makefile 2011-04-18 12:29:36.000000000 +0100 @@ -30,6 +30,9 @@ PORTDOCS= * .endif +post-patch: + ${REINPLACE_CMD} -E -e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' ${WRKSRC}/imlib2.c + post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODDOCDIR} >Release-Note: >Audit-Trail: >Unformatted: