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.
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"
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.