ports/156507: [PATCH] databases/ruby-cdb (patch to enable compiling with RUBY_VER 1.9)

Eric Freeman freebsdports at chillibear.com
Tue Apr 19 21:50:08 UTC 2011


>Number:         156507
>Category:       ports
>Synopsis:       [PATCH] databases/ruby-cdb (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:50:07 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:
Currently databases/ruby-cdb does not compile when using Ruby 1.9

This patch allows it to work when RUBY_VER is 1.9
>How-To-Repeat:
install ruby 1.9

cd /usr/ports/databases/ruby-cdb && make build RUBY_VER=1.9

fails
>Fix:
diff -ru ruby-cdb.orig/Makefile ruby-cdb/Makefile
--- ruby-cdb.orig/Makefile	2011-04-18 19:50:24.000000000 +0100
+++ ruby-cdb/Makefile	2011-04-18 19:51:18.000000000 +0100
@@ -28,6 +28,12 @@
 
 .include <bsd.port.pre.mk>
 
+post-patch:
+	${REINPLACE_CMD} -E \
+		-e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' \
+		-e 's|RSTRING\(([^)]+)\)->ptr|RSTRING_PTR(\1)|g' \
+		${WRKSRC}/cdb.c
+
 post-extract:
 	${RM} -f ${WRKSRC}/cdb
 	${LN} -s `cd ${CDB_PORTDIR}; ${MAKE} -V WRKSRC` ${WRKSRC}/cdb

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



More information about the freebsd-ports-bugs mailing list