<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Hi Anatoli,<br></div>
<div> </div>
<blockquote><div><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">We've experimented with different configure options and found that when </span></span><span class="font" style="font-family:'Courier New'"><span class="size" style="font-size:10pt">--disable-event-notification</span></span><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> option is enabled, the configure script fails for other options with something like:</span></span><br></div>
<p><span class="font" style="font-family:'Courier New'"><span class="size" style="font-size:10pt">configure: error: Need libxml-2.0 for http</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">After some analysis we found that the dependencies detection initialization logic is placed inside the condition of event-notification option, so when it's disabled, the initialization is not performed and the detection of libraries/dependencies fails. </span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">With this email I attach a simple patch that places the event-notification condition after the libraries detection initialization logic.</span></span><br></p></blockquote><div> </div>
<div>Well spotted, thanks!  I assume you're using Cyrus 2.5.x?<br></div>
<div> </div>
<div>configure is  generated by autoconf from configure.ac, so the correct place to fix this is in configure.ac, at least on-going.<br></div>
<div> </div>
<div>It looks like the problem is due to the PKG_CHECK_MODULES macro first being invoked inside a bash conditional.  The problem, and its fix, is discussed in section 3.4 here: <a href="https://autotools.io/pkgconfig/pkg_check_modules.html">https://autotools.io/pkgconfig/pkg_check_modules.html</a><br></div>
<div> </div>
<div>And, it looks like it's already fixed on master, so I'll backport the fix to the 2.5 branch, and it will be included in the next release.<br></div>
<div> </div>
<blockquote><div><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">I would like to seize the opportunity and ask you for a clarification.. Does the event notification component make any sense under normal use conditions (IMAP with email clients like Thunderbird and Outlook)? If I understand it correctly, it's only needed for some special types of notifications like for xmpp clients, debugging and similar, not for something implemented in normal IMAP clients, so it makes sense to disable it for production use. Am I right?</span></span><br></div>
</blockquote><div> </div>
<div>I don't know much about it myself -- can someone else field this question please?<br></div>
<div> </div>
<div>Cheers,<br></div>
<div> </div>
<div>ellie<br></div>
<div> </div>
<div>On Fri, Apr 8, 2016, at 02:48 PM, Anatoli via Cyrus-devel wrote:<br></div>
<blockquote type="cite"><div><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">Hi all,</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> </span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">Firstly, thanks, developers, for your hard work in creating Cyrus! We've deployed it recently and it worked as expected from the first try (after reading a lot of documentation first :).</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> </span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">We've experimented with different configure options and found that when </span></span><span class="font" style="font-family:'Courier New'"><span class="size" style="font-size:10pt">--disable-event-notification</span></span><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> option is enabled, the configure script fails for other options with something like:</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> </span></span><br></p><p><span class="font" style="font-family:'Courier New'"><span class="size" style="font-size:10pt">configure: error: Need libxml-2.0 for http</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> </span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">After some analysis we found that the dependencies detection initialization logic is placed inside the condition of event-notification option, so when it's disabled, the initialization is not performed and the detection of libraries/dependencies fails.</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> </span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">With this email I attach a simple patch that places the event-notification condition after the libraries detection initialization logic.</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> </span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> </span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">I would like to seize the opportunity and ask you for a clarification.. Does the event notification component make any sense under normal use conditions (IMAP with email clients like Thunderbird and Outlook)? If I understand it correctly, it's only needed for some special types of notifications like for xmpp clients, debugging and similar, not for something implemented in normal IMAP clients, so it makes sense to disable it for production use. Am I right?</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt"> </span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">Thanks,</span></span><br></p><p><span class="font" style="font-family:Verdana, sans-serif"><span class="size" style="font-size:10pt">Anatoli</span></span><br></p></div>
<p>Email had 1 attachment:<br></p><ul><li><div><code>configure.patch</code><br></div>
<div>  1k (text/plain)<br></div>
</li></ul></blockquote><div> </div>
</body>
</html>