ports/156469: [PATCH] audio/ruby-freedb (patch to enable compiling with RUBY_VER 1.9)

Eric Freeman freebsdports at chillibear.com
Mon Apr 18 10:40:06 UTC 2011


>Number:         156469
>Category:       ports
>Synopsis:       [PATCH] audio/ruby-freedb (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:   Mon Apr 18 10:40:05 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 at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Patch to enable audio/ruby-freedb to compile when RUBY_VER is 1.9
>How-To-Repeat:
Install Ruby 1.9 and

cd /usr/ports/audio/ruby-freedb && make build RUBY_VER=1.9
>Fix:
diff -ru ruby-freedb.orig/Makefile ruby-freedb/Makefile
--- ruby-freedb.orig/Makefile	2011-04-18 07:03:06.000000000 +0100
+++ ruby-freedb/Makefile	2011-04-18 07:07:12.000000000 +0100
@@ -25,6 +25,9 @@
 DOCS=		CHANGELOG	README	doc
 EXAMPLES=	examples/*.rb
 
+post-patch:
+	${REINPLACE_CMD} -E -e "s,RSTRING\(([^)]+)\)->ptr,RSTRING_PTR(\1),g" ${WRKSRC}/freedb_cdrom.c
+
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${RUBY_MODDOCDIR}

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list