Bump ruby-pg version to 0.10.0, add patch so that it continues to

work on rubinius.
This commit is contained in:
jeremy 2010-12-20 17:31:08 +00:00
parent 3c204b76fd
commit 127980ac4e
4 changed files with 25 additions and 10 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.9 2010/11/24 21:35:13 jeremy Exp $
# $OpenBSD: Makefile,v 1.10 2010/12/20 17:31:08 jeremy Exp $
COMMENT = PostgreSQL database interface for ruby
DISTNAME = pg-0.9.0
REVISION = 1
DISTNAME = pg-0.10.0
CATEGORIES = databases
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>

View File

@ -1,5 +1,5 @@
MD5 (pg-0.9.0.gem) = +hKattAJzzJQLP2ivxYUtQ==
RMD160 (pg-0.9.0.gem) = 4duBQEk82hQcSVaaKiCfB/deMRM=
SHA1 (pg-0.9.0.gem) = QKyhtpxbiKidBVmPbwYvM8tgm0s=
SHA256 (pg-0.9.0.gem) = zSd3lpgpVrrD8h8BuA+Qdf6GknmeDcxusgkFUGojVMY=
SIZE (pg-0.9.0.gem) = 100352
MD5 (pg-0.10.0.gem) = QECW72/dic1MFpqSp8qCaw==
RMD160 (pg-0.10.0.gem) = J1uzoXOpUvbZ2BEhYl2ZWUClPpk=
SHA1 (pg-0.10.0.gem) = C5AxGHr0KyzoQWgApVPGAuFadcE=
SHA256 (pg-0.10.0.gem) = jokeqmJ2m249UlRbh8wn8KdjV+zI3XhFmb4pf+caoxk=
SIZE (pg-0.10.0.gem) = 113152

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-ext_pg_c,v 1.1 2010/12/20 17:31:08 jeremy Exp $
rb_yield_splat is not yet supported by rubinius, this is functionally
equivalent. Upstream fixed the issue in 9e11be78bfe4.
--- ext/pg.c.orig Thu Dec 2 09:10:21 2010
+++ ext/pg.c Thu Dec 2 09:12:32 2010
@@ -2172,7 +2172,7 @@ pgconn_wait_for_notify(int argc, VALUE *argv, VALUE se
PQfreemem( notification );
if ( rb_block_given_p() )
- rb_yield_splat( rb_ary_new3(2, relname, be_pid) );
+ rb_yield_values(2, relname, be_pid);
return relname;
}

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.4 2010/11/08 23:24:39 jeremy Exp $
@comment $OpenBSD: PLIST,v 1.5 2010/12/20 17:31:08 jeremy Exp $
${GEM_LIB}/cache/${DISTNAME}.gem
${GEM_LIB}/gems/${DISTNAME}/
${GEM_LIB}/gems/${DISTNAME}/.require_paths
@ -31,12 +31,12 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/pg_ext.so
${GEM_LIB}/gems/${DISTNAME}/rake/
${GEM_LIB}/gems/${DISTNAME}/rake/191_compat.rb
${GEM_LIB}/gems/${DISTNAME}/rake/dependencies.rb
${GEM_LIB}/gems/${DISTNAME}/rake/documentation.rb
${GEM_LIB}/gems/${DISTNAME}/rake/helpers.rb
${GEM_LIB}/gems/${DISTNAME}/rake/hg.rb
${GEM_LIB}/gems/${DISTNAME}/rake/manual.rb
${GEM_LIB}/gems/${DISTNAME}/rake/packaging.rb
${GEM_LIB}/gems/${DISTNAME}/rake/publishing.rb
${GEM_LIB}/gems/${DISTNAME}/rake/rdoc.rb
${GEM_LIB}/gems/${DISTNAME}/rake/style.rb
${GEM_LIB}/gems/${DISTNAME}/rake/svn.rb
${GEM_LIB}/gems/${DISTNAME}/rake/testing.rb