First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 179377
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Python Gentoo Team <python@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: jieryn <jieryn@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
python-2.4.4-r9.ebuild.diff python-2.4.4-r9.ebuild patch Petr Pisar 2008-01-15 16:38 0000 842 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 179377 depends on: 204213 Show dependency tree
Bug 179377 blocks: 199003
Votes: 10    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-22 02:37 0000
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 From Petter Häggholm 2007-06-27 22:23:21 0000 -------
Same problem, except that bumping the DEPEND does not appear to make a
difference for me.

------- Comment #2 From Eric Hsu 2007-07-03 14:55:05 0000 -------
same problem here, pls check this forum post:)

http://forums.gentoo.org/viewtopic-p-4127627.html

------- Comment #3 From Brett Johnson 2007-07-11 16:21:45 0000 -------
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 From jieryn 2007-07-11 16:27:58 0000 -------
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 From Petter Häggholm 2007-07-15 01:07:25 0000 -------
I am experiencing the problem with sys-libs/db-4.5.20_p2 installed.

------- Comment #6 From Alastair Burt 2007-09-12 13:59:11 0000 -------
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 From Joël 2007-09-22 15:16:24 0000 -------
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 From Joakim Tjernlund 2007-10-01 13:47:54 0000 -------
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 From Christian Schmitt 2007-10-24 09:56:13 0000 -------
Any news on this one? Should be no big deal to add a dep to python. It is
causing troubles with Gramps.

------- Comment #10 From jascha@spamfence.de 2007-11-03 16:53:38 0000 -------
(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 From Christian Schmitt 2007-11-03 17:06:08 0000 -------
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 From Robert Withrow 2007-11-04 03:26:37 0000 -------
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 From Martin Baute 2007-12-13 12:25:23 0000 -------
*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 From Björn Michaelsen 2007-12-21 21:38:12 0000 -------
#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 From Markus Ullmann 2008-01-03 01:53:46 0000 -------
*** Bug 204146 has been marked as a duplicate of this bug. ***

------- Comment #16 From Petr Pisar 2008-01-15 16:38:21 0000 -------
Created an attachment (id=140994) [edit]
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 From Björn Michaelsen 2008-01-28 12:16:56 0000 -------
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 From Christian Faulhammer 2008-02-16 16:26:29 0000 -------
(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.   

First Last Prev Next    No search results available      Search page      Enter new bug