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

Bug 519846

Summary: net-libs/libetpan: has hardcoded (and outdated) db version list and LDFLAGS
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) <polynomial-c>
Status: CONFIRMED ---    
Severity: normal CC: alexander, bitlord0xff, net-mail, rhill
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-08-13 18:54:59 UTC
checking version of Berkeley DB... version 3.x or above
checking for db_create() in -ldb-5.3... not found
checking for db_create() in -ldb-5.1... not found
checking for db_create() in -ldb-5.0... not found
checking for db_create() in -ldb-4.8... not found

while I have 6.0 installed. Please use db-use.eclass to get proper library and flags.
Comment 1 Branko Grubic 2014-10-04 19:48:15 UTC
This is probably why it never removes older and always show 

!!! existing preserved libs:
>>> package: sys-libs/db-4.8.30-r1
 *  - /usr/lib64/
 *      used by /usr/lib64/ (net-libs/libetpan-1.5)

and 'emerge @preserved-rebuild' rebuilds the package but it still links against old libdb.
Comment 2 Mark 2015-08-21 14:07:30 UTC
This seems simple enough.  Will it ever be fixed?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-02 13:39:20 UTC
$ libetpan-config --libs
-L/usr/lib64 -letpan -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lz -lssl -lcrypto -ldb-5.3 -lz -pthread
Comment 4 Larry the Git Cow gentoo-dev 2019-11-05 15:57:34 UTC
The bug has been referenced in the following commit(s):

commit 688ff0a0502de09115e883dc1a551ab6da13ae23
Author:     Lars Wendler <>
AuthorDate: 2019-11-05 15:56:55 +0000
Commit:     Lars Wendler <>
CommitDate: 2019-11-05 15:56:55 +0000

    net-libs/libetpan: Bump to version 1.9.4
    Attempt to fix berkdb detection
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Lars Wendler <>

 net-libs/libetpan/Manifest                         |  1 +
 .../files/libetpan-1.9.4-berkdb_lookup.patch       | 28 ++++++++
 .../libetpan-1.9.4-pkgconfig_file_no_ldflags.patch | 24 +++++++
 net-libs/libetpan/libetpan-1.9.4.ebuild            | 77 ++++++++++++++++++++++
 4 files changed, 130 insertions(+)