Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2007 12:46:09 +0900
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        Ion-Mihai Tetcu <itetcu@FreeBSD.org>
Cc:        cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, Akinori MUSHA <knu@FreeBSD.org>, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/databases/ruby-bdb Makefile distinfo pkg-plist
Message-ID:  <ygewsw0cd1a.wl%ume@mahoroba.org>
In-Reply-To: <20070811101241.39a411ce@it.buh.tecnik93.com>
References:  <200708101157.l7ABvfOX007851@repoman.freebsd.org> <20070811101241.39a411ce@it.buh.tecnik93.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Multipart_Mon_Aug_13_12:46:08_2007-1
Content-Type: text/plain; charset=US-ASCII

Hi,

>>>>> On Sat, 11 Aug 2007 10:12:41 +0300
>>>>> Ion-Mihai Tetcu <itetcu@FreeBSD.org> said:

itetcu> On Fri, 10 Aug 2007 11:57:41 +0000 (UTC)
itetcu> Akinori MUSHA <knu@FreeBSD.org> wrote:

> knu         2007-08-10 11:57:41 UTC
> 
>   FreeBSD ports repository
> 
>   Modified files:
>     databases/ruby-bdb   Makefile distinfo pkg-plist 
>   Log:
>   Update to version 0.6.1, which reportedly supports the DB 4.6
> series. 
>   Submitted by:   matusita

itetcu> On 6.2-STABLE #3: Wed Jun 20 09:52:32 EEST 2007 amd64 :


itetcu> ===>   ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
itetcu> ===>  Patching for ruby18-bdb-0.6.1
itetcu> ===>   ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
itetcu> ===>   ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
itetcu> ===>   ruby18-bdb-0.6.1 depends on shared library: db-4.3.0 - found
itetcu> ===>  Configuring for ruby18-bdb-0.6.1
itetcu> ===>  Running extconf.rb to configure
itetcu> extconf.rb: Entering directory `src'
itetcu> checking for db_version() in -ldb-4.3... yes
itetcu> checking for rb_frame_this_func()... no
itetcu> checking for rb_block_proc()... yes
itetcu> checking for rb_io_stdio_file()... no
itetcu> checking for rb_block_call()... no
itetcu> checking for Array#insert... yes
itetcu> checking for Array#values_at... yes
itetcu> creating Makefile
itetcu> extconf.rb: Leaving directory `src'
itetcu> ===>  Building for ruby18-bdb-0.6.1
itetcu> cc -I. -I. -I/usr/local/lib/ruby/1.8/amd64-freebsd6 -I. -DHAVE_RB_BLOCK_PROC -I/usr/local/include/db43 -I/usr/local/include -fPIC -O2 -pipe -march=athlon64   -fPIC -DHAVE_RB_ARY_INSERT -DHAVE_RB_ARY_VALUES_AT -c bdb.c
itetcu> bdb.c: In function `Init_bdb':
itetcu> bdb.c:515: error: `DB_REP_IGNORE' undeclared (first use in this function)
itetcu> bdb.c:515: error: (Each undeclared identifier is reported only once
itetcu> bdb.c:515: error: for each function it appears in.)
itetcu> bdb.c:516: error: `DB_REP_JOIN_FAILURE' undeclared (first use in this function)
itetcu> *** Error code 1

Though db43 has DB_REP_ISPERM, it doesn't have DB_REP_IGNORE nor
DB_REP_JOIN_FAILURE.  Please try the attached patch.

Sincerely,

--Multipart_Mon_Aug_13_12:46:08_2007-1
Content-Type: text/x-patch; charset=US-ASCII
Content-Disposition: attachment; filename="patch-src::bdb.c"
Content-Transfer-Encoding: 7bit

Index: src/bdb.c
diff -u -p src/bdb.c.orig src/bdb.c
--- src/bdb.c.orig	2007-07-29 23:33:18.000000000 +0900
+++ src/bdb.c	2007-08-13 12:34:18.000000000 +0900
@@ -512,7 +512,11 @@ Init_bdb()
 #ifdef DB_REP_ISPERM
     rb_define_const(bdb_mDb, "REP_ISPERM", INT2FIX(DB_REP_ISPERM));
     rb_define_const(bdb_mDb, "REP_NOTPERM", INT2FIX(DB_REP_NOTPERM));
+#endif
+#ifdef DB_REP_IGNORE
     rb_define_const(bdb_mDb, "REP_IGNORE", INT2FIX(DB_REP_IGNORE));
+#endif
+#ifdef DB_REP_JOIN_FAILURE
     rb_define_const(bdb_mDb, "REP_JOIN_FAILURE", INT2FIX(DB_REP_JOIN_FAILURE));
 #endif
     rb_define_const(bdb_mDb, "EID_BROADCAST", INT2FIX(DB_EID_BROADCAST));

--Multipart_Mon_Aug_13_12:46:08_2007-1
Content-Type: text/plain; charset=US-ASCII


--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

--Multipart_Mon_Aug_13_12:46:08_2007-1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygewsw0cd1a.wl%ume>