svn commit: r407969 - in head/databases/rubygem-bdb1: . files

Steve Wills swills at FreeBSD.org
Wed Feb 3 19:07:20 UTC 2016


Author: swills
Date: Wed Feb  3 19:07:19 2016
New Revision: 407969
URL: https://svnweb.freebsd.org/changeset/ports/407969

Log:
  databases/rubygem-bdb1: fix build with Ruby 2.2 and 2.3

Added:
  head/databases/rubygem-bdb1/files/extra-patch-ext_bdb1_recnum.c   (contents, props changed)
Modified:
  head/databases/rubygem-bdb1/Makefile

Modified: head/databases/rubygem-bdb1/Makefile
==============================================================================
--- head/databases/rubygem-bdb1/Makefile	Wed Feb  3 18:36:06 2016	(r407968)
+++ head/databases/rubygem-bdb1/Makefile	Wed Feb  3 19:07:19 2016	(r407969)
@@ -11,12 +11,15 @@ COMMENT=	Ruby interface to Berkeley DB r
 LICENSE=	BSD2CLAUSE RUBY
 LICENSE_COMB=	dual
 
-BROKEN_RUBY22=	yes
-BROKEN_RUBY23=	yes
-
 USES=		execinfo
 USE_RUBY=	yes
 USE_RUBYGEMS=	yes
 RUBYGEM_AUTOPLIST=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} >= 2.2
+EXTRA_PATCHES+=		${FILESDIR}/extra-patch-ext_bdb1_recnum.c
+.endif
+
+.include <bsd.port.post.mk>

Added: head/databases/rubygem-bdb1/files/extra-patch-ext_bdb1_recnum.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/rubygem-bdb1/files/extra-patch-ext_bdb1_recnum.c	Wed Feb  3 19:07:19 2016	(r407969)
@@ -0,0 +1,11 @@
+--- ext/bdb1/recnum.c.orig
++++ ext/bdb1/recnum.c
+@@ -17,7 +17,7 @@
+ 	argc++;
+     }
+     rb_hash_aset(argv[argc - 1], array, INT2FIX(0));
+-    if (rb_hash_aref(argv[argc - 1], sarray) != RHASH(argv[argc - 1])->ifnone) {
++    if (rb_hash_aref(argv[argc - 1], sarray) != rb_hash_ifnone(argv[argc - 1])) {
+ 	rb_hash_aset(argv[argc - 1], sarray, INT2FIX(0));
+     }
+     rb_hash_aset(argv[argc - 1], rb_str_new2("set_flags"), INT2FIX(DB_RENUMBER));


More information about the svn-ports-all mailing list