<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>179377</bug_id>
          
          <creation_ts>2007-05-22 02:37 0000</creation_ts>
          <short_desc>dev-lang/python-2.4.4-r4 and USE=&quot;berkdb&quot; fails to build bsddb module</short_desc>
          <delta_ts>2008-02-16 16:27:52 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>204213</dependson>
          <blocked>199003</blocked>
          <votes>10</votes>
          <everconfirmed>1</everconfirmed>
          <reporter>jieryn@gmail.com</reporter>
          <assigned_to>python@gentoo.org</assigned_to>
          <cc>burt@dfki.de</cc>
    
    <cc>chrschmitt@gmail.com</cc>
    
    <cc>fauli@gentoo.org</cc>
    
    <cc>gentoo@stephanrave.de</cc>
    
    <cc>hanno@gentoo.org</cc>
    
    <cc>jascha@spamfence.de</cc>
    
    <cc>petr.pisar@atlas.cz</cc>
    
    <cc>petter@petterhaggholm.net</cc>
    
    <cc>rossi.f@inwind.it</cc>
    
    <cc>solar@rootdirectory.de</cc>
    
    <cc>sven@atelophobia.de</cc>
    
    <cc>tanderson@gentoo.org</cc>
    
    <cc>urban82@gmail.com</cc>
    
    <cc>world.root@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>jieryn@gmail.com</who>
            <bug_when>2007-05-22 02:37:10 0000</bug_when>
            <thetext>When USE=&quot;berkdb&quot; 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 &apos;_bsddb&apos; 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 &apos;DB_length&apos;:
/var/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Modules/_bsddb.c:2493: error: &apos;DB_FAST_STAT&apos; 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 &gt;=sys-libs/db-4.

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>petter@petterhaggholm.net</who>
            <bug_when>2007-06-27 22:23:21 0000</bug_when>
            <thetext>Same problem, except that bumping the DEPEND does not appear to make a difference for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nkeric@gmail.com</who>
            <bug_when>2007-07-03 14:55:05 0000</bug_when>
            <thetext>same problem here, pls check this forum post:)

http://forums.gentoo.org/viewtopic-p-4127627.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brett@blzj.com</who>
            <bug_when>2007-07-11 16:21:45 0000</bug_when>
            <thetext>This appears to occur when building python against &gt;=sys-libs/db-4.5. Python appears to build the lib correctly with sys-libs/db-4.3 and sys-libs/db-4.4.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jieryn@gmail.com</who>
            <bug_when>2007-07-11 16:27:58 0000</bug_when>
            <thetext>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&apos;t know.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>petter@petterhaggholm.net</who>
            <bug_when>2007-07-15 01:07:25 0000</bug_when>
            <thetext>I am experiencing the problem with sys-libs/db-4.5.20_p2 installed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>burt@dfki.de</who>
            <bug_when>2007-09-12 13:59:11 0000</bug_when>
            <thetext>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&apos;s bsddb module builds without problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>world.root@gmail.com</who>
            <bug_when>2007-09-22 15:16:24 0000</bug_when>
            <thetext>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...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Joakim.Tjernlund@transmode.se</who>
            <bug_when>2007-10-01 13:47:54 0000</bug_when>
            <thetext>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
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chrschmitt@gmail.com</who>
            <bug_when>2007-10-24 09:56:13 0000</bug_when>
            <thetext>Any news on this one? Should be no big deal to add a dep to python. It is causing troubles with Gramps.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jascha@spamfence.de</who>
            <bug_when>2007-11-03 16:53:38 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; Any news on this one? Should be no big deal to add a dep to python. It is
&gt; causing troubles with Gramps.

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

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chrschmitt@gmail.com</who>
            <bug_when>2007-11-03 17:06:08 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>witr@rwwa.com</who>
            <bug_when>2007-11-04 03:26:37 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@rootdirectory.de</who>
            <bug_when>2007-12-13 12:25:23 0000</bug_when>
            <thetext>*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 &quot;stable&quot; python ebuild being *broken* for six months now.

Is there some way to &quot;vote&quot; for a bug to beg for the attention of the maintainers? :-(</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bjoern.michaelsen@gmail.com</who>
            <bug_when>2007-12-21 21:38:12 0000</bug_when>
            <thetext>#13: How about typing &apos;/Vote&apos; in Firefox before asking?
http://bugs.gentoo.org/votes.cgi?action=show_user&amp;bug_id=179377#vote_179377</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jokey@gentoo.org</who>
            <bug_when>2008-01-03 01:53:46 0000</bug_when>
            <thetext>*** Bug 204146 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>petr.pisar@atlas.cz</who>
            <bug_when>2008-01-15 16:38:21 0000</bug_when>
            <thetext>Created an attachment (id=140994)
python-2.4.4-r9.ebuild

This patch replaces dependency on &gt;=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. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bjoern.michaelsen@gmail.com</who>
            <bug_when>2008-01-28 12:16:56 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2008-02-16 16:26:29 0000</bug_when>
            <thetext>(In reply to comment #17)
&gt; Is there any problem with the proposed patch? This is a gentoo core-package and
&gt; 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.   </thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>140994</attachid>
            <date>2008-01-15 16:38 0000</date>
            <desc>python-2.4.4-r9.ebuild</desc>
            <filename>python-2.4.4-r9.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9kZXYtbGFuZy9weXRob24vcHl0aG9uLTIuNC40LXI4LmVidWlsZAky
MDA4LTAxLTA3IDE4OjQwOjUxLjAwMDAwMDAwMCArMDEwMAorKysgL3Vzci9sb2NhbC9wb3J0YWdl
L2Rldi1sYW5nL3B5dGhvbi9weXRob24tMi40LjQtcjkuZWJ1aWxkCTIwMDgtMDEtMTUgMTc6MDI6
NDIuMDAwMDAwMDAwICswMTAwCkBAIC0yNiwxMiArMjYsMTMgQEAKIEtFWVdPUkRTPSJ+YWxwaGEg
fmFtZDY0IH5hcm0gfmhwcGEgfmlhNj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