In order to build clamav-milter, libmilter from sendmail is needed. If that is not available, ./configure for clamav fails with: checking for mi_stop in -lmilter... no checking for library containing strlcpy... no checking for mi_stop in -lmilter... no configure: error: Cannot find libmilter The simplest fix would be to add "milter? (mail-mta/sendmail)" to the DEPEND string. This would follow the fail-early philosophy. The most user-friendly fix would be to change the --enable-milter logic to ignore "USE milter" if sendmail is not installed. Personally, I'd prefer the former option. I'd rather see portage fail to do what I tell it to, than have portage quietly fail to do what I tell it to and succeed at something different.
Created attachment 52248 [details, diff] fix the bug by adding a DEPEND I prefer this fix.
Created attachment 52249 [details, diff] Fix the bug by tinkering with the myconf logic I prefer the other fix.
From what I understand, libmilter only gets built when sendmail is compiled with "milter" USE flag enabled. Unfortunately, portage can't handle this kind of dependencies yet. See bug #2272 for more info. A (bit clumsy) workaround is built_with_use() function from eutils eclass. I think using the "milter? ..." depend (your preferred fix) along with a built_with_use test for milter-enabled sendmail in pkg_setup() would be the best solution. Emerge should abort the emerge process with a suitable message to the user. I'm going to do this - anyone, yell here if you think it's not a good idea.
> A (bit clumsy) workaround is built_with_use() function from eutils eclass still better than nothing ;)
Ok, modified 0.83 is in CVS, could you please test it when it reaches your mirror? I do not have any sendmail setup available for this.
Long since fixed.
Reopening to close properly.