From nobody@FreeBSD.org  Mon Apr 18 10:37:05 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A270C1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 18 Apr 2011 10:37:05 +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 910408FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 18 Apr 2011 10:37:05 +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 p3IAb5fT096210
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 18 Apr 2011 10:37:05 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p3IAb534096209;
	Mon, 18 Apr 2011 10:37:05 GMT
	(envelope-from nobody)
Message-Id: <201104181037.p3IAb534096209@red.freebsd.org>
Date: Mon, 18 Apr 2011 10:37:05 GMT
From: Eric Freeman <freebsdports@chillibear.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] audio/ruby-musicbrainz (patch to enable compiling with RUBY_VER 1.9)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156470
>Category:       ports
>Synopsis:       [PATCH] audio/ruby-musicbrainz (patch to enable compiling with RUBY_VER 1.9)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    swills
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 18 10:40:06 UTC 2011
>Closed-Date:    Tue May 03 01:26:24 UTC 2011
>Last-Modified:  Tue May  3 01:30:19 UTC 2011
>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:
Patch to enable audio/ruby-musicbrainz to be compiled when RUBY_VER is 1.9
>How-To-Repeat:
Install Ruby 1.9 and

cd /usr/ports/audio/ruby-musicbrainz && make build RUBY_VER=1.9

fails
>Fix:
diff -ru ruby-musicbrainz.orig/Makefile ruby-musicbrainz/Makefile
--- ruby-musicbrainz.orig/Makefile	2011-04-18 07:09:03.000000000 +0100
+++ ruby-musicbrainz/Makefile	2011-04-18 07:46:43.000000000 +0100
@@ -27,6 +27,12 @@
 
 DOCS=		README TODO doc
 
+post-patch:
+	${REINPLACE_CMD} -E \
+		-e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' \
+		-e 's|RSTRING\(([^)]+)\)->ptr|RSTRING_PTR(\1)|g' \
+		${WRKSRC}/musicbrainz.c
+
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${RUBY_MODEXAMPLESDIR}
Only in ruby-musicbrainz: work

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->stas 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Apr 18 10:40:27 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156470 
Responsible-Changed-From-To: stas->swills 
Responsible-Changed-By: swills 
Responsible-Changed-When: Tue May 3 01:25:33 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156470 
State-Changed-From-To: open->closed 
State-Changed-By: swills 
State-Changed-When: Tue May 3 01:26:23 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156470 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156470: commit references a PR
Date: Tue,  3 May 2011 01:26:24 +0000 (UTC)

 swills      2011-05-03 01:26:15 UTC
 
   FreeBSD ports repository
 
   Modified files:
     audio/ruby-musicbrainz Makefile 
   Log:
   - Fix build with Ruby 1.9
   
   PR:             ports/156470
   Submitted by:   Eric Freeman <freebsdports@chillibear.com>
   Approved by:    maintainer (timeout)
   
   Revision  Changes    Path
   1.12      +6 -0      ports/audio/ruby-musicbrainz/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
