ports/156505: [PATCH] graphics/ruby-imlib2 (patch to enable compiling with RUBY_VER 1.9)

Eric Freeman freebsdports at chillibear.com
Tue Apr 19 21:40:09 UTC 2011


>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 at 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:



More information about the freebsd-ports-bugs mailing list