The qmail-ldap package is supposed to allow one to skip the controldb patch. However, even with it off, controldb is included. Reproducible: Always Steps to Reproduce: # emerge -v qmail-ldap Actual Results: controldb is included Expected Results: controldb should not be included Here is a -pv output: # emerge -pv qmail-ldap These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] mail-mta/qmail-ldap-1.03-r7 USE="qmail-spp ssl zlib -cluster -controldb -debug -gencertdaily -highvolume -mailwrapper -rfc2307 -rfc822" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB When removing -p you see in the output this information: >>> Unpacking qmail-1.03.tar.gz to /var/tmp/portage/mail-mta/qmail-ldap-1.03-r7/work * Applying qmail-ldap-1.03-20060201.patch.gz ... [ ok ] * Applying qmail-ldap-1.03-20060201-controls20060401d.patch ... [ ok ] <----- wrong * Applying qmail-ldap-1.03-queue-custom-error.patch ... [ ok ] * Applying qmail-ldap-1.03-spp-0.42.patch ... [ ok ] And you see this: /compile -DALTQUEUE -DEXTERNAL_TODO -DDASH_EXT -DSMTPEXECCHECK -DDATA_COMPRESS -D QMQP_COMPRESS -DUSE_CONTROLDB -DQLDAP_BAILOUT -DSECUREBIND_TLS - DSECUREBIND_SSL -DTLS_REMOTE -DTLS_SMTPD -I/usr/include \ qmail-smtpd.c -DUSE_CONTROLDB is the bad part there.
It looks like line 76: epatch ${DISTDIR}/${P}-${QMAIL_LDAP_PATCH}-controls${CONTROLS_PATCH}.patch just needs a use controldb && on it: use controldb && sed -i -e 's|NEWLDAPPROGLIBS=.*|& str.a|' Makefile Same for line 79. The flag is checked on line 290 when the LDAP schema is installed. Just not when applying the patches.
Created attachment 135288 [details] 07123
Created attachment 135290 [details] 07226
Created attachment 135292 [details] 07363
Created attachment 135294 [details] 07422
Created attachment 135296 [details] 07595
Created attachment 135297 [details] 07632
Created attachment 135298 [details] 07714
Created attachment 135300 [details] 07845
Created attachment 135301 [details] 07971
Created attachment 135302 [details] 08096
no idea why mr_bones_ added the useflag, but it is bougs. it doesn't work without the controldb patch... but applying that patch does not mean you have to use controldb ...