Project

General

Profile

Actions

Backport #3294

closed

[PATCH] Allow build of dbm extension with Berkeley DB 5.0 series

Added by Flameeyes (Diego Elio Pettenò) over 14 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
[ruby-core:30240]

Description

=begin
In the new version of BerkDB, to use the DBM functions you need to define the HAVE_DBM macro, otherwise the functions won't be defined (before, simply using DB_DBM_HSEARCH was enough). The attached patch enables that to make sure that it is possible to build the dbm extension properly.
=end


Files

ruby-1.8.7_p249_db-5.0.patch (430 Bytes) ruby-1.8.7_p249_db-5.0.patch Flameeyes (Diego Elio Pettenò), 05/14/2010 08:25 PM

Updated by akr (Akira Tanaka) about 13 years ago

  • ruby -v changed from ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] to -

2010/5/14 Diego E. Pettenò :

Bug #3294: [PATCH] Allow build of dbm extension with Berkeley DB 5.0 series
http://redmine.ruby-lang.org/issues/show/3294

Author: Diego E. Pettenò
Status: Open, Priority: Normal
ruby -v: ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]

In the new version of BerkDB, to use the DBM functions you need to define the HAVE_DBM macro, otherwise the functions won't be defined (before, simply using DB_DBM_HSEARCH was enough). The attached patch enables that to make sure that it is possible to build the dbm extension properly.

What's exact version of Bereley DB?

I tested ruby 2.0.0dev (2011-11-11 trunk 33710) with
Berkeley DB 5.1 (Ubuntu package libdb5.1 version 5.1.25-11).
It works fine without your patch.
(The version of ruby don't define HAVE_DBM.)

Tanaka Akira

Actions #2

Updated by jeremyevans0 (Jeremy Evans) over 5 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby 1.8 to Backport187
  • Description updated (diff)
  • Status changed from Open to Closed
  • ruby -v deleted (-)
Actions

Also available in: Atom PDF

Like0
Like0Like0