Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2003 01:49:14 +0200
From:      Thomas Moestl <t.moestl@tu-bs.de>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        freebsd-sparc64@freebsd.org
Subject:   Re: portversion/portupgrade
Message-ID:  <20030528234914.GA1987@crow.dom2ip.de>
In-Reply-To: <20030528222244.GA94418@rot13.obsecurity.org>
References:  <F455E4114C4AD211BCDF00805F31BCF312B27EE3@USSAM203> <20030528214711.GA94049@rot13.obsecurity.org> <p05210608bafae02394b7@[128.113.24.47]> <20030528220215.GA94270@rot13.obsecurity.org> <20030528222144.GA667@crow.dom2ip.de> <20030528222244.GA94418@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, 2003/05/28 at 15:22:44 -0700, Kris Kennaway wrote:
> On Thu, May 29, 2003 at 12:21:44AM +0200, Thomas Moestl wrote:
> > On Wed, 2003/05/28 at 15:02:15 -0700, Kris Kennaway wrote:
> > > On Wed, May 28, 2003 at 05:55:09PM -0400, Garance A Drosihn wrote:
> > > > Do you know if this a bug in ruby itself, or is it only in
> > > > portversion && portupgrade?  Is it only happening on sparc64?
> > > 
> > > It's apparently a bug in ruby on sparc64.  I don't think the bug
> > > exists on other 64-bit platforms, so it might be an endianness bug.
> > 
> > I believe that this is fixed in ruby-devel.
> 
> Hmm, I thought knu made a change to bsd.ruby.mk some time ago that
> switched sparc64 over to using ruby-devel, but the problem persists
> with freshly-built ports.

Hmmm, yes, I must have misremebered that.
The bug really seems to be in ruby-bdb1, which is also marked
NOT_FOR_ARCHS=sparc64.

I just got portupgrade to work on my boxhowever by changing the
dependency in the Makefile from ruby-bdb1 to ruby-bdb (as already
hinted in a comment) and dropping the attached patch into files/ to
make it use ruby-bdb instead of ruby-bdb1 by default.

	- Thomas

-- 
Thomas Moestl <t.moestl@tu-bs.de>	http://www.tu-bs.de/~y0015675/
              <tmm@FreeBSD.org>		http://people.FreeBSD.org/~tmm/
PGP fingerprint: 1C97 A604 2BD0 E492 51D0  9C0F 1FE6 4F1D 419C 776C

--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-use-bdb

--- lib/pkgdb.rb~	Tue Apr 22 07:35:20 2003
+++ lib/pkgdb.rb	Thu May 29 01:06:53 2003
@@ -120,7 +120,7 @@
 
   def db_driver=(new_db_driver)
     begin
-      case new_db_driver || ENV['PKG_DBDRIVER'] || 'bdb1_btree'
+      case new_db_driver || ENV['PKG_DBDRIVER'] || 'bdb_btree'
       when 'bdb_btree'
 	@db_driver = :bdb_btree
       when 'bdb_hash', 'bdb'

--VS++wcV0S1rZb1Fb--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030528234914.GA1987>