Bug#923498: cyrus-imapd: fails to build against libclamav9

2019-03-01 Thread Anthony Prades
Patch include in upstream.

Commit:
https://salsa.debian.org/debian/cyrus-imapd/commit/8695dc622ce731fac743e9abc81fbc43e66cc536

On 3/1/19 3:54 PM, Scott Kitterman wrote:
> On Fri, 1 Mar 2019 00:20:45 +0100 Sebastian Andrzej Siewior 
>  wrote:
>> Source: cyrus-imapd
>> Version: 3.0.8-3
>> Severity: Serious
>> Control: block 922004 by -1 
>>
>> By the time we planned the transition for libclamav there was no
>> cyrus-imapd package which depended on libclamav-dev but this changed. I
>> just realised that.
>> The package failed to build because the ABI on clamav's side changed
>> between 0.100 -> 0.101:
>>
> There is an upstream fix for this:
>
> https://github.com/cyrusimap/cyrus-imapd/commit/e02dd05e1620cdbb46b0922ebda4733774bd17d8
>
> Scott K
>


Anthony Prades/INTEGRATEUR MESSAGERIE
anthony.pra...@bluemind.net / 05 81 91 55 60

BlueMind
05 81 91 55 60
Hotel des Télécom, 40 rue du village d'entreprise
31670 Labège
www.bluemind.net



Bug#923498: cyrus-imapd: fails to build against libclamav9

2019-03-01 Thread Scott Kitterman
On Fri, 1 Mar 2019 00:20:45 +0100 Sebastian Andrzej Siewior 
 wrote:
> Source: cyrus-imapd
> Version: 3.0.8-3
> Severity: Serious
> Control: block 922004 by -1 
> 
> By the time we planned the transition for libclamav there was no
> cyrus-imapd package which depended on libclamav-dev but this changed. I
> just realised that.
> The package failed to build because the ABI on clamav's side changed
> between 0.100 -> 0.101:
> 
There is an upstream fix for this:

https://github.com/cyrusimap/cyrus-imapd/commit/e02dd05e1620cdbb46b0922ebda4733774bd17d8

Scott K



Bug#923498: cyrus-imapd: fails to build against libclamav9

2019-02-28 Thread Sebastian Andrzej Siewior
Source: cyrus-imapd
Version: 3.0.8-3
Severity: Serious
Control: block 922004 by -1 

By the time we planned the transition for libclamav there was no
cyrus-imapd package which depended on libclamav-dev but this changed. I
just realised that.
The package failed to build because the ABI on clamav's side changed
between 0.100 -> 0.101:

|gcc -DHAVE_CONFIG_H -I.   -I. -I./lib -I. -I./lib 
-DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" 
-DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H  -I/usr/include/libxml2   
-Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -fPIC  -g -O2 
-fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -c -o 
imap/quota.o imap/quota.c
|imap/cyr_virusscan.c: In function ?clamav_scanfile?:
|imap/cyr_virusscan.c:197:21: error: ?CL_SCAN_STDOPT? undeclared (first use in 
this function); did you mean ?CL_DB_STDOPT??
| CL_SCAN_STDOPT);
| ^~
| CL_DB_STDOPT
|imap/cyr_virusscan.c:197:21: note: each undeclared identifier is reported only 
once for each function it appears in
|gcc -DHAVE_CONFIG_H -I.   -I. -I./lib -I. -I./lib 
-DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" 
-DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H  -I/usr/include/libxml2   
-Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -fPIC  -g -O2 
-fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -c -o 
imap/reconstruct.o imap/reconstruct.c
|make[4]: *** [Makefile:4817: imap/cyr_virusscan.o] Error 1

Here [0] is an example what I did for havp. Please let me know if 
[ ] you are going to port it yourself
[ ] you ask (quick) upstream to do so
[ ] you are going to drop the support for clamav 
[ ] you want me to port it

If you have the option to use clamav's socket instead the library
interface then this is probably the better option.

[0] 
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=920865;filename=havp-Update-to-clamav-0.101.patch;msg=5

Sebastian