Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 118569

Summary: subversion fails with USE='-berkdb'
Product: Gentoo Linux Reporter: Maarten Billemont <lhunath>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Maarten Billemont 2006-01-10 12:19:02 UTC
When emerging subversion without Berkley DB support (USE='-berkdb') sys-libs/db is not a dependency, which causes subversion to fail with the following error:
 
 /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb-4.2
 
 subversion version in question is: dev-util/subversion-1.3.0  USE="bash-completion java nls perl python zlib -apache2 -berkdb -emacs -nowebdav -ruby"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-10 12:23:11 UTC
Re-emerge apr and apr-util...

*** This bug has been marked as a duplicate of 114481 ***
Comment 2 Maarten Billemont 2006-01-10 12:54:29 UTC
The consistency of my packages is fairly well, apr-utils has already been compiled without berkdb.
Now, it is possible apr wasn't compiled after apr-util had been recompiled, but this would mean there is a way to defeat the dependency system.
Is there a clean way to protect oneself against this?

ea. emerge apr apr-util with +berkdb
toggle to -berkdb
emerge -uvDN world will remerge apr-util with -berkdb
apr will not be updated, so I'm guessing this is what causes subversion to be forced to link against berkdb.

What can be done to make a system safe against these flaws that might become hard to trace?
Comment 3 Maarten Billemont 2006-01-10 12:55:48 UTC
The consistency of my packages is fairly well, apr-utils has already been compiled without berkdb.
Now, it is possible apr wasn't compiled after apr-util had been recompiled, but this would mean there is a way to defeat the dependency system.
Is there a clean way to protect oneself against this?

ea. emerge apr apr-util with +berkdb
toggle to -berkdb
emerge -uvDN world will remerge apr-util with -berkdb
apr will not be updated, so I'm guessing this is what causes subversion to be forced to link against berkdb.

What can be done to make a system safe against these flaws that might become hard to trace?