Dovecot and pigeonhole/sieve without ldap
Hi,
First of all, thanks for your work on this software overall.
Since 2.4 dovecot/pigeonhole (2.4.1 gentoo here), it fails to build without ldap support. I've seen nothing that justifies this requirement so it seems like a bug/issue?
Configure for dovecot : ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --disable-static --docdir=/usr/share/doc/dovecot-2.4.1-r1 --htmldir=/usr/share/doc/dovecot-2.4.1-r1/html --with-sysroot=/ --libdir=/usr/lib64 --with-rundir=/run/dovecot --with-statedir=/var/lib/dovecot --with-moduledir=/usr/lib64/dovecot --disable-hardening --disable-rpath --with-bzlib --without-libbsd --with-libcap --with-icu --enable-experimental-mail-utf8 --without-sodium --without-cdb --without-gssapi --without-lua --without-ldap --without-flatcurve --without-lz4 --without-mysql --with-pam --without-pgsql --without-sqlite --without-solr --without-stemmer --without-systemd --without-textcat --without-libunwind --without-zstd --disable-static userdbs ........ : static prefetch passwd passwd-file : -ldap -sql
Configure for pigeonhole : ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --disable-static --docdir=/usr/share/doc/dovecot-2.4.1-r1 --htmldir=/usr/share/doc/dovecot-2.4.1-r1/html --with-sysroot=/ --libdir=/usr/lib64 --disable-static --localstatedir=/var --enable-shared --disable-hardening --with-dovecot=/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4 --without-ldap --without-managesieve script drivers . : file dict : -ldap
Error : age/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-sasl -I/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/li b-dcrypt -I/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-program-client -I/var/tmp/portage/net-mail/dovecot-2. 4.1-r1/work/dovecot-2.4.1-4/src/lib-oauth2 -I/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-var-expand -I/var/t mp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-index -I/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1- 4/src/lib-storage -I/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-storage/list -I/var/tmp/portage/net-mail/dov ecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-storage/index -I/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-stora ge/index/raw -I/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-imap-storage -I/var/tmp/portage/net-mail/dovecot- 2.4.1-r1/work/dovecot-2.4.1-4/src/plugins/quota -I/var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-ldap -I../../. ./.. -I../../../../src/lib-sieve -O2 -pipe -frecord-gcc-switches -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fa synchronous-unwind-tables -c sieve-ldap-storage.c -fPIC -DPIC -o .libs/sieve-ldap-storage.o In file included from sieve-ldap-storage.c:6: /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/src/lib-ldap/ldap-utils.h:4:10: fatal error: ldap.h: No such file or dir ectory 4 | #include <ldap.h> | ^~~~~~~~ compilation terminated. make[5]: *** [Makefile:607: sieve-ldap-storage.lo] Error 1
Regards,
NicoP
On 23/05/2025 07:42 EEST ppn--- via dovecot <dovecot@dovecot.org> wrote:
Hi,
First of all, thanks for your work on this software overall.
Since 2.4 dovecot/pigeonhole (2.4.1 gentoo here), it fails to build without ldap support. I've seen nothing that justifies this requirement so it seems like a bug/issue?
NicoP
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Are you sure you didn't forget to update pigeonhole too?
v2.4.1 2025-03-28 Aki Tuomi <aki.tuomi@open-xchange.com>
- global: Fix settings handling bugs. Especially
%variables weren't working in various settings.
- ldap: Pigeonhole could not be built without LDAP.
Aki
Yes, grep -r VERSION=.*2.4.1 /var/tmp/portage/net-mail/dovecot-2.4.1-r1/ : /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/configure:PACKAGE_VERSION='2.4.1-4' /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/configure: VERSION='2.4.1-4' /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/configure:DOVECOT_ASSET_VERSION=2.4.1 /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-pigeonhole-2.4.1-4/configure:PACKAGE_VERSION='2.4.1-4' /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-pigeonhole-2.4.1-4/configure: VERSION='2.4.1-4' /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-pigeonhole-2.4.1-4/configure:PIGEONHOLE_ASSET_VERSION=2.4.1
On 23/05/2025 10:26 EEST ppn--- via dovecot <dovecot@dovecot.org> wrote:
Yes, grep -r VERSION=.*2.4.1 /var/tmp/portage/net-mail/dovecot-2.4.1-r1/ : /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/configure:PACKAGE_VERSION='2.4.1-4' /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/configure: VERSION='2.4.1-4' /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-2.4.1-4/configure:DOVECOT_ASSET_VERSION=2.4.1 /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-pigeonhole-2.4.1-4/configure:PACKAGE_VERSION='2.4.1-4' /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-pigeonhole-2.4.1-4/configure: VERSION='2.4.1-4' /var/tmp/portage/net-mail/dovecot-2.4.1-r1/work/dovecot-pigeonhole-2.4.1-4/configure:PIGEONHOLE_ASSET_VERSION=2.4.1
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Looks like we didn't do good enough job testing building without LDAP, so right now it's not possible to build without ldap. We'll fix it for next release. Sorry.
Aki
On 23/05/2025 12:16 EEST ppn--- via dovecot <dovecot@dovecot.org> wrote:
Thanks !
Maybe through a pull request so it can be checked in various env ?
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
https://github.com/dovecot/core/commit/4eddec25d21e2bead9e179b407e7e458ffc51...
should fix this. And yes, it has been through CI.
Aki
On 23/05/2025 14:32 EEST ppn--- via dovecot <dovecot@dovecot.org> wrote:
It doesn't, I get the same error.
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
It won't work unless you run also run autoreconf -vif and reconfigure dovecot source tree.
Aki
On Fri, May 23, 2025 at 02:12:28PM +0300, Aki Tuomi via dovecot wrote:
https://github.com/dovecot/core/commit/4eddec25d21e2bead9e179b407e7e458ffc51...
should fix this. And yes, it has been through CI.
pigeonhole also needs a similar patch
-- Eray
On 24/05/2025 11:51 EEST Eray Aslan via dovecot <dovecot@dovecot.org> wrote:
On Fri, May 23, 2025 at 02:12:28PM +0300, Aki Tuomi via dovecot wrote:
https://github.com/dovecot/core/commit/4eddec25d21e2bead9e179b407e7e458ffc51...
should fix this. And yes, it has been through CI.
pigeonhole also needs a similar patch
-- Eray
So it seems,
https://github.com/dovecot/pigeonhole/commit/b37322a8d338bf999bc9774154dce79...
Aki
participants (3)
-
Aki Tuomi
-
Eray Aslan
-
ppn@parhuet.fr