ports/184921: databases/ruby-bdb: breaks on patchlevel upgrades of Berkeley DB

Matthias Andree mandree at FreeBSD.org
Tue Dec 17 09:20:00 UTC 2013


>Number:         184921
>Category:       ports
>Synopsis:       databases/ruby-bdb: breaks on patchlevel upgrades of Berkeley DB
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 17 09:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD apollo.emma.line.org 9.2-RELEASE FreeBSD 9.2-RELEASE #4: Thu Oct 17 06:54:18 CEST 2013 root at apollo.emma.line.org:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
I have just had ruby-bdb bomb out on me.

1. I used to have db5 installed, which was at 5.3.21.

2. I then upgraded db5 to 5.3.28 with portupgrade.

3. During that upgrade already, portupgrade started failing with the errors
   given below.

4. The fix is to have the ruby-bdb port only compare the db.h MAJOR and MINOR
   versions BUT NOT the patchlevel.  Utterly unable to write Ruby code,
   I cannot help with that.


===>  Cleaning for db5-5.3.28
** Updating origin in pkg for databases/db42 to databases/db5
--->  Cleaning out obsolete shared libraries
/usr/local/lib/ruby/1.9/rubygems/custom_require.rb:36:in `require':  (NotImplementedError)
BDB needs compatible versions of libdb & db.h
	you have db.h version 5.3.21 and libdb version 5.3.28
	from /usr/local/lib/ruby/1.9/rubygems/custom_require.rb:36:in `require'
	from /usr/local/lib/ruby/site_ruby/1.9/pkgtools/pkgdbtools.rb:84:in `db_driver='
	from /usr/local/lib/ruby/site_ruby/1.9/pkgtools/portsdb.rb:168:in `setup'
	from /usr/local/lib/ruby/site_ruby/1.9/pkgtools/pkgtools.rb:242:in `init_pkgtools_global'
	from /usr/local/sbin/portsclean:134:in `block in main'
	from /usr/local/lib/ruby/1.9/optparse.rb:882:in `initialize'
	from /usr/local/sbin/portsclean:70:in `new'
	from /usr/local/sbin/portsclean:70:in `main'
	from /usr/local/sbin/portsclean:727:in `<main>'

	
>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list