Subject: smtpguard: Update Berkeley DB dependency Package: smtpguard Version: 1.1.3-1.1 Justification: fails to build from source Severity: serious Tags: upstream patch
Please update Berkeley DB dependency to db-4.8. A patch is attached. -- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages smtpguard depends on: ii adduser 3.112+nmu2 add and remove users and groups ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libdb4.8 4.8.30-2 Berkeley v4.8 Database Libraries [ ii libglib2.0-0 2.24.2-1 The GLib library of C routines ii libsmtpguard1 1.1.3-1.1 Shared library of smtpguard ii libxml2 2.7.8.dfsg-2+squeeze1 GNOME XML library smtpguard recommends no packages. smtpguard suggests no packages. -- Configuration Files: /etc/smtpguard/smtpguard.conf changed [not included] -- no debconf information -- 株式会社 コンバージョン セキュリティ&OSSソリューション部 池田荘児 〒231-0004 神奈川県横浜市中区元浜町3-21-2 ヘリオス関内ビル7F e-mail supp...@conversion.co.jp TEL 045-640-3550 http://www.conversion.co.jp/
--- smtpguard-1.1.3.orig/configure.in +++ smtpguard-1.1.3/configure.in @@ -29,11 +29,18 @@ AC_SUBST(SMTPGUARD_LIBS) AC_MSG_CHECKING([for Berkley DB Version]) -LIBS="-ldb-4.3 $LIBS" +AC_ARG_WITH(dbversion, +[ --with-dbversion=MAJOR.MINOR Version of Berkeley DB], +dbversion="$withval",dbversion="4.8") +DB_MAJOR_NEEDED=${dbversion%.*} +DB_MINOR_NEEDED=${dbversion#*.} +test -z "$BDB_LIBS" && BDB_LIBS="-ldb-$dbversion" +LIBS="$BDB_LIBS $LIBS" + AC_TRY_LINK([ #include <db.h> ],[ -#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 3 +#if DB_VERSION_MAJOR == $DB_MAJOR_NEEDED && DB_VERSION_MINOR == $DB_MINOR_NEEDED { char *version; int major, minor, patch; @@ -48,11 +55,11 @@ return 0; } #else -#error "Not Berkley DB version 4.3" +#error "Not Berkley DB version $dbversion" #endif -],AC_MSG_RESULT([yes]) +],AC_MSG_RESULT([use $dbversion]) , [ -AC_MSG_ERROR([Need Berkley DB version 4.3]) +AC_MSG_ERROR([Need Berkley DB version $dbversion]) ]) dnl ----------------------------------------------------------------