[Dovecot] v2.1.alpha1 released

Stephan Bosch stephan at rename-it.nl
Sat Sep 3 11:56:58 EEST 2011


On 9/3/2011 7:07 AM, Thomas Leuxner wrote:
> Am 02.09.2011 um 23:15 schrieb Stephan Bosch:
>
>> D'oh, builder did not update from patch repositories. Starting build now...
>>
>> Regards,
>>
>> Stephan.
> Working now :) Minor glitch I noticed for the build: Appears 'libpq5' is required by 'dovecot-common' even if no SQL package is installed… Wonder if that works as designed.
>
> dpkg: dependency problems prevent configuration of dovecot-common:
>   dovecot-common depends on libpq5 (>= 8.4~0cvs20090328); however:
>    Package libpq5 is not installed.
> dpkg: error processing dovecot-common (--install):
>   dependency problems - leaving unconfigured

Those dependencies are added automatically and are probably caused by 
the following:

For dovecot-2.0:

$ ldd .libs/libdovecot-sql.so
         linux-vdso.so.1 =>  (0x00007fff03dc3000)
         libdl.so.2 => /lib/libdl.so.2 (0x00007f981d3a9000)
         librt.so.1 => /lib/librt.so.1 (0x00007f981d1a1000)
         libc.so.6 => /lib/libc.so.6 (0x00007f981ce3f000)
         /lib64/ld-linux-x86-64.so.2 (0x00007f981d7bf000)
         libpthread.so.0 => /lib/libpthread.so.0 (0x00007f981cc23000)

For dovecot-2.1:

$ ldd .libs/libdovecot-sql.so
         linux-vdso.so.1 =>  (0x00007fffc5549000)
         libdovecot.so.0 => 
dovecot-2.1/src/lib-dovecot/.libs/libdovecot.so.0 (0x00007f0372414000)
         libmysqlclient.so.16 => /usr/lib/libmysqlclient.so.16 
(0x00007f0371fe9000)
         libpq.so.5 => /usr/lib/libpq.so.5 (0x00007f0371dc0000)
         libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f0371b29000)
         [lots more ...]

As you can see, libdovecot-sql.so now has dependencies on mysql, pgsql 
and sqlite. I am not sure why. The following change seems to be the cause:

--- dovecot-2.0/src/lib-sql/Makefile.am 2011-04-16 22:02:06.000000000 +0200
+++ dovecot-2.1/src/lib-sql/Makefile.am 2011-08-25 23:16:57.000000000 +0200
@@ -66,7 +72,11 @@

  pkglib_LTLIBRARIES = libdovecot-sql.la
  libdovecot_sql_la_SOURCES =
-libdovecot_sql_la_LIBADD = libsql.la $(MODULE_LIBS)
+libdovecot_sql_la_LIBADD = libsql.la $(deplibs) \
+       $(MYSQL_LIBS) \
+       $(PGSQL_LIBS) \
+       $(SQLITE_LIBS) \
+       $(MODULE_LIBS)
  libdovecot_sql_la_DEPENDENCIES = libsql.la
  libdovecot_sql_la_LDFLAGS = -export-dynamic

Timo, any ideas?

Regards,

Stephan.







More information about the dovecot mailing list