From owner-svn-ports-all@freebsd.org Tue Jan 19 04:50:38 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB490A87085; Tue, 19 Jan 2016 04:50:38 +0000 (UTC) (envelope-from dinoex@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F3A41AD1; Tue, 19 Jan 2016 04:50:38 +0000 (UTC) (envelope-from dinoex@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0J4obCU040572; Tue, 19 Jan 2016 04:50:37 GMT (envelope-from dinoex@FreeBSD.org) Received: (from dinoex@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0J4obko040570; Tue, 19 Jan 2016 04:50:37 GMT (envelope-from dinoex@FreeBSD.org) Message-Id: <201601190450.u0J4obko040570@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dinoex set sender to dinoex@FreeBSD.org using -f From: Dirk Meyer Date: Tue, 19 Jan 2016 04:50:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r406632 - in head/databases/rubygem-bdb1: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 04:50:38 -0000 Author: dinoex Date: Tue Jan 19 04:50:37 2016 New Revision: 406632 URL: https://svnweb.freebsd.org/changeset/ports/406632 Log: - fix build with ruby-2.1 Added: head/databases/rubygem-bdb1/files/ head/databases/rubygem-bdb1/files/patch-ext_bdb1_bdb1.c (contents, props changed) Modified: head/databases/rubygem-bdb1/Makefile Modified: head/databases/rubygem-bdb1/Makefile ============================================================================== --- head/databases/rubygem-bdb1/Makefile Tue Jan 19 03:10:32 2016 (r406631) +++ head/databases/rubygem-bdb1/Makefile Tue Jan 19 04:50:37 2016 (r406632) @@ -11,7 +11,6 @@ COMMENT= Ruby interface to Berkeley DB r LICENSE= BSD2CLAUSE RUBY LICENSE_COMB= dual -BROKEN_RUBY21= yes BROKEN_RUBY22= yes BROKEN_RUBY23= yes Added: head/databases/rubygem-bdb1/files/patch-ext_bdb1_bdb1.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/rubygem-bdb1/files/patch-ext_bdb1_bdb1.c Tue Jan 19 04:50:37 2016 (r406632) @@ -0,0 +1,21 @@ +--- ext/bdb1/bdb1.c.orig 2016-01-18 21:34:35 UTC ++++ ext/bdb1/bdb1.c +@@ -752,15 +752,15 @@ bdb1_s_alloc(VALUE obj) + dbst->options |= BDB1_NOT_OPEN; + cl = obj; + while (cl) { +- if (cl == bdb1_cBtree || RCLASS(cl)->m_tbl == RCLASS(bdb1_cBtree)->m_tbl) { ++ if (cl == bdb1_cBtree || rb_obj_classname(cl) == rb_class2name(bdb1_cBtree)) { + dbst->type = DB_BTREE; + break; + } +- else if (cl == bdb1_cHash || RCLASS(cl)->m_tbl == RCLASS(bdb1_cHash)->m_tbl) { ++ else if (cl == bdb1_cHash || rb_obj_classname(cl) == rb_class2name(bdb1_cHash)) { + dbst->type = DB_HASH; + break; + } +- else if (cl == bdb1_cRecnum || RCLASS(cl)->m_tbl == RCLASS(bdb1_cRecnum)->m_tbl) { ++ else if (cl == bdb1_cRecnum || rb_obj_classname(cl) == rb_class2name(bdb1_cRecnum)) { + dbst->type = DB_RECNO; + break; + }