classification
Title: Berkeley DB versions 4.4-4.9 are not discovered by setup.py
Type: compile error Stage:
Components: Build Versions: Python 2.7
process
Status: open Resolution:
Dependencies: 17477 Superseder:
Assigned To: Nosy List: Arfrever, Eddie.Stanley, benjamin.peterson, doko, jcea, python-dev
Priority: normal Keywords:

Created on 2013-08-14 03:15 by Eddie.Stanley, last changed 2013-10-26 17:59 by benjamin.peterson.

Messages (4)
msg195120 - (view) Author: Eddie Stanley (Eddie.Stanley) Date: 2013-08-14 03:15
Support for Berkeley DB up to 5.3 was introduced in Python 2.7.4 (see issue #17477) however I'm having problems with the detection code in setup.py.

I'm working on RHEL4, I've got Berkeley DB 4.7.25 installed in /opt/db-4.7.25

When I try and "make" Python, it can't build _bsddb because no suitable version of db.h was found. 

The function gen_db_minor_ver_nums(major) looks as though it's supposed to spit out all the minor versions for a given major, however it doesn't appear to work properly for 4.x - surely 4.3, 4.4, 4.5 ... all the way to 4.9 (or whatever) should be generated. 

It only generates minor version "3" though. The end result is that 4.3 is the only working version in the 4.x series.
msg195335 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2013-08-16 14:53
I confirm this. The patch for 5.3 support created a regression. And, in fact, it is not working at all (it missed the 5.x libraries anyway).

Reopening the old bug.

In the meantime, please check http://www.jcea.es/programacion/pybsddb.htm
msg201382 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-26 17:55
New changeset fae0a09f0f60 by Benjamin Peterson in branch '2.7':
check for berkelydb versions besides 4.3 (#18734)
http://hg.python.org/cpython/rev/fae0a09f0f60
msg201384 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2013-10-26 17:59
Okay. I made the check less dumb. Maybe it works...
History
Date User Action Args
2013-10-26 17:59:07benjamin.petersonsetpriority: release blocker -> normal

messages: + msg201384
2013-10-26 17:55:32python-devsetnosy: + python-dev
messages: + msg201382
2013-09-10 21:15:05Arfreversetnosy: + Arfrever
2013-09-10 03:00:21jceasetpriority: normal -> release blocker
nosy: + benjamin.peterson
2013-08-16 14:53:46jceasetnosy: + doko
2013-08-16 14:53:22jceasetnosy: + jcea
dependencies: + update the bsddb module do build with db 5.x versions
messages: + msg195335
2013-08-14 03:15:23Eddie.Stanleycreate