On Tue, Nov 06, 2007, Gunnar Wrobel wrote:

> Hi!
> 
> Currently I fail to build the "imapd" package on rm0. It fails with
> 
> checking for db.h... yes
> configure: error: Berkeley DB 3.x or later was not found.  You may need to
>     supply the --with-bdb-libdir or --with-bdb-incdir configure options.
> error: Bad exit status from /ltmp/kk/openpkg/rpm-tmp.18065 (%build)

At first sight at config.log I don't see an obvious reason but the problem
might be related to the upgrade latest upgrade of db. Maybe the detection
of db needs in configure needs some fixing, will have a look at it later.

> I tried installing "db45" but that didn't seem to help. What could I
> do to fix that?

You'll need some patching in imapd.spec as well in order to pick up
the libs which are installed under a different path to avoid namespace
conflicts with db. With following diff a was able to build imapd, but I
have no idea whether it breaks under runtime or not since I don't use
Cyrus IMAPd (had a look at it several times and I never liked it ;)

diff -u -d -u -d -u -d -r1.182 imapd.spec
--- imapd.spec  27 Oct 2007 11:59:30 -0000      1.182
+++ imapd.spec  6 Nov 2007 18:01:59 -0000
@@ -80,8 +80,8 @@
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20060823, perl, perl-openpkg, make, config
 PreReq:       OpenPKG, openpkg >= 20060823, perl, MTA
-BuildPreReq:  sasl, db >= 4.4, openssl
-PreReq:       sasl, db >= 4.4, openssl
+BuildPreReq:  sasl, db45, openssl
+PreReq:       sasl, db45, openssl
 %if "%{with_fsl}" == "yes"
 BuildPreReq:  fsl
 PreReq:       fsl
@@ -166,8 +166,8 @@
     %{l_shtool} subst\
         -e 's;-L/usr/local/lib;;g' \
         -e 's;-I/usr/local/include;;g' \
-        -e 's;db-4\.[0-9];db;g' \
-        -e 's;-l\$dbname;%{l_prefix}/lib/lib$dbname.a;g' \
+        -e 's;db-4\.[0-9];db45;g' \
+        -e 's;-l\$dbname;%{l_prefix}/lib/db45/lib$dbname.a;g' \
         configure
 
     #   ensure correct linking of Berkeley-DB in perl bindings

> The thing I wanted to change on the imapd package was actually
> trivial:
> 
> diff -u -d -u -d -r1.14 fsl.imapd
> --- fsl.imapd 17 Dec 2006 12:35:57 -0000        1.14
> +++ fsl.imapd 6 Nov 2007 15:05:45 -0000
> @@ -38,7 +38,7 @@
>      }
>  };
>  
> -ident (lmtpd)/.+ q{
> +ident (lmtpd|lmtp)/.+ q{
>      prefix(
>          prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
>      )

Do you know whether the lmtpd identifier is still used or can we fully
replace lmtpd by lmtp?

-cs
______________________________________________________________________
OpenPKG                                             http://openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to