Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557906 - net-mail/dovecot misconfigures multiple storage options
Summary: net-mail/dovecot misconfigures multiple storage options
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-16 09:57 UTC by Reuben Farrelly
Modified: 2015-09-16 10:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Farrelly 2015-08-16 09:57:31 UTC
I've got multiple use flags set in order to support multiple storages - in my case Maildir and imapc.  The USE flags as set to the ebuild are:

USE="bzip2 ipv6 lucene maildir managesieve pam sieve ssl tcpd zlib -caps -cydir -doc -imapc -kerberos -ldap -lz4 -lzma -mbox -mdbox -mysql -pop3c -postgres -sdbox (-selinux) -solr -sqlite -static-libs -suid -vpopmail"

However the storage types are mis-parsed in the ebuild.  This is the result of ./configure as run from the ebuild:

./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 --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 --localstatedir=/var --with-moduledir=/usr/lib64/dovecot --without-stemmer --with-storages=maildir imapc  --disable-rpath --with-systemdsystemunitdir=/usr/lib/systemd/system --with-bzlib --with-libcap --without-gssapi --without-ldap --with-lucene --with-lz4 --without-lzma --without-mysql --with-pam --without-pgsql --without-sqlite --without-solr --with-ssl --with-libwrap --without-vpopmail --with-zlib --disable-static

Note the --with-storages output, namely "--with-storages=maildir  imapc".  The problem is the space that separates the two storages of maildir and imapc.  These options should be comma separated not space separated.  There is also an extra space after imapc (although this is cosmetic and I don't think it breaks anything).

This problem causes the second storage type (imapc) to be not configured and thus not built.  Presumably the same problem would occur with any subsequent storage types too.


Reproducible: Always

Steps to Reproduce:
1.Configure multiple storage types
2.Observe misconfiguration of ./configure script

Actual Results:  
Only the first listed storage type is actually built.  imapc support was not built in.
Comment 1 Eray Aslan gentoo-dev 2015-09-16 07:24:45 UTC
How do you determine whether imapc is built?  Building with USE="maildir imapc" gives:

# grep MAIL_STORAGES /var/tmp/portage/net-mail/dovecot-2.2.18/image/usr/include/dovecot/config.h 
#define MAIL_STORAGES "shared maildir imapc  raw fail"
Comment 2 Reuben Farrelly 2015-09-16 10:36:35 UTC
I don't have quite the same setup now (I'm using dovecot as an IMAP proxy rather than imapc) but I've spent some time testing this again now and I think you're right.  Apparently space separated is OK, and at least in this case does seem to work.