Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179377 - dev-lang/python-2.4.4-r4 and USE="berkdb" fails to build bsddb module
Summary: dev-lang/python-2.4.4-r4 and USE="berkdb" fails to build bsddb module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major with 1 vote (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 204146 (view as bug list)
Depends on: 204213
Blocks: 199003
  Show dependency tree
 
Reported: 2007-05-22 02:37 UTC by jieryn
Modified: 2008-02-16 16:27 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
python-2.4.4-r9.ebuild (python-2.4.4-r9.ebuild.diff,842 bytes, patch)
2008-01-15 16:38 UTC, Petr Pisar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jieryn 2007-05-22 02:37:10 UTC
When USE="berkdb" emerge =python-2.4.4-r4, I see the following in the build log:

db.h: found (3, 2) in /usr/include/db3
db lib: using (3, 2) db-3.2
building '_bsddb' extension
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=pentium-m -fomit-frame-pointer -pipe -fweb -ftracer -fno-strict-aliasing -DNDEBUG -O2 -march=pentium-m -fomit-frame-pointer -pipe -fweb -ftracer -I. -I./Include -fPIC -I/usr/include/db3 -I. -I/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/./Include -I/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Include -I/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4 -c /var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c -o build/temp.linux-i686-2.4/_bsddb.o
/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c: In function 'DB_length':
/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c:2493: error: 'DB_FAST_STAT' undeclared (first use in this function)
/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c:2493: error: (Each undeclared identifier is reported only once
/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c:2493: error: for each function it appears in.)

As a result, the lib-dynload/_bsdsd.so is not produced. I was able to fix this by bumping the DEPEND to include >=sys-libs/db-4.

Reproducible: Always
Comment 1 Petter Häggholm 2007-06-27 22:23:21 UTC
Same problem, except that bumping the DEPEND does not appear to make a difference for me.
Comment 2 Eric Hsu 2007-07-03 14:55:05 UTC
same problem here, pls check this forum post:)

http://forums.gentoo.org/viewtopic-p-4127627.html
Comment 3 Brett Johnson 2007-07-11 16:21:45 UTC
This appears to occur when building python against >=sys-libs/db-4.5. Python appears to build the lib correctly with sys-libs/db-4.3 and sys-libs/db-4.4.
Comment 4 jieryn 2007-07-11 16:27:58 UTC
Actually, if I recall correctly, it was the 4.3 and 4.4 slots which had the problem. I am running 4.5 and it was built and installed and accessible just fine. I wrote this bug up a few months ago though, perhaps something has changed with the ebuilds. I don't know.
Comment 5 Petter Häggholm 2007-07-15 01:07:25 UTC
I am experiencing the problem with sys-libs/db-4.5.20_p2 installed.
Comment 6 Alastair Burt 2007-09-12 13:59:11 UTC
Python 2.4.4 is only intended to work with versions 3.2 to 4.4 of Oracle Berkeley DB. The DEPEND variable in the ebuild should be updated to reflect that. Currently, Gentoo has an ebuild for version 4.3.29 of of this package. With this installed, Python's bsddb module builds without problem.
Comment 7 Joël 2007-09-22 15:16:24 UTC
Same here. Because sys-libs/db is not in my world file, the older sys-libs/db-4.3.29-r2 was removed by depclean, leaving only db-4.5.20_p2 installed, which is unsuitable for python. With both slots installed (4.3.29-r2 and 4.5.20_p2) python works as expected. So please fix the sys-libs/db dependency in python package...
Comment 8 Joakim Tjernlund 2007-10-01 13:47:54 UTC
I got sys-libs/db 1.85-r3, 3.2.9-r11, 4.3.29-r2 and 4.5.20_p2 installed.

Rebuilding python-2.4.4-r5 makes dbm.so link against libdb1.so.2
and _bsddb.so link against libdb-4.3.so
Comment 9 Christian Schmitt 2007-10-24 09:56:13 UTC
Any news on this one? Should be no big deal to add a dep to python. It is causing troubles with Gramps.
Comment 10 jascha 2007-11-03 16:53:38 UTC
(In reply to comment #9)
> Any news on this one? Should be no big deal to add a dep to python. It is
> causing troubles with Gramps.

I have got exectly the same problem. Have you found a short and nonexpensive solution?

Comment 11 Christian Schmitt 2007-11-03 17:06:08 UTC
Yes, I added db-4.3 to the world file to prevent it from being removed. now I am waiting for the python ebuild to be corrected.
Comment 12 witr 2007-11-04 03:26:37 UTC
This clobbers TMDA also.

I can verify that emerging sys-libs/db-4.3.29-r2 works as a work-around.

And that this dependency problem still exists as of dev-lang/python-2.4.4-r6.
Comment 13 Martin Baute 2007-12-13 12:25:23 UTC
*bump*

gramps-2.2.6, python-2.4.4-r6, db-4.5.20_p2 - gramps is unable to start.

I read this as the latest "stable" python ebuild being *broken* for six months now.

Is there some way to "vote" for a bug to beg for the attention of the maintainers? :-(
Comment 14 Björn Michaelsen 2007-12-21 21:38:12 UTC
#13: How about typing '/Vote' in Firefox before asking?
http://bugs.gentoo.org/votes.cgi?action=show_user&bug_id=179377#vote_179377
Comment 15 Markus Ullmann (RETIRED) gentoo-dev 2008-01-03 01:53:46 UTC
*** Bug 204146 has been marked as a duplicate of this bug. ***
Comment 16 Petr Pisar 2008-01-15 16:38:21 UTC
Created attachment 140994 [details, diff]
python-2.4.4-r9.ebuild

This patch replaces dependency on >=sys-libs-3.1 with sys-libs/db:4.4 or :4.3 according previous suggestion.

With this patch the binding library _bsddb.so is compiled and python applications using the Berkly DB works fine.
Comment 17 Björn Michaelsen 2008-01-28 12:16:56 UTC
Is there any problem with the proposed patch? This is a gentoo core-package and this bug is open for more than half a year.
Comment 18 Christian Faulhammer (RETIRED) gentoo-dev 2008-02-16 16:26:29 UTC
(In reply to comment #17)
> Is there any problem with the proposed patch? This is a gentoo core-package and
> this bug is open for more than half a year.

 It should not...I committed the fix with some adjustment, and we should carry this revision -r9 to stable soon.  Sorry for the delay, sorry Python team for the digging in your front garden.  Closing.