Bug#621415: Still uses libdb4.8

Damyan Ivanov dmn at debian.org
Sat Apr 9 12:15:07 UTC 2011


clone 621415 -1
reassign -1 libaprutil1-dev 1.3.10+dfsg-2
affects -1 libapache2-mod-perl2
retitle -1 'apu-1-config --libs' returns unneeded -ldb
tags -1 patch
thanks

-=| Ondřej Surý, Sat, Apr 09, 2011 at 08:55:16AM +0200 |=-
> the new apr-util was uploaded to unstable, which may help removing the
> libdb dependency, since Stephan has removed the libdb4.8-dev from
> libaprutil1-dev dependencies. See #621366.

The libdb* linkage seems to come from the output of 'apu-1-config 
--libs'. It returns '-ldb' and so the APR.so part of mod_perl is 
linked with libdb*.

However, I see no reason for anything that uses libaprutil1 to be 
linked with libdb. As far as I see, the DB part of aprutil is in 
another, private, library, apr_dbm_db.so, which is already linked with 
libdb. I think apr-1-config --libs should not include DB libraries.

The following patch would help. It goes a bit further by removing any 
ldap libraries from the output too (not that there are any now):

--- a/apu-config.in
+++ b/apu-config.in
@@ -122,7 +122,7 @@ while test $# -gt 0; do
     DBM_LIBS=""
     ;;
     --libs)
-    flags="$flags $LDAP_LIBS $DBM_LIBS $LIBS"
+    flags="$flags $LIBS"
     ;;
     --ldap-libs)
     flags="$flags $LDAP_LIBS"


In the mean time, I think we can patch mod_perl to call apu-1-config 
with --avoid-dbm as a workaround.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20110409/a2ee41e9/attachment.pgp>


More information about the pkg-perl-maintainers mailing list