Your message dated Mon, 04 Feb 2019 20:58:49 +0000
with message-id <[email protected]>
and subject line Bug#920959: fixed in python-clamav 0.4.1-10
has caused the Debian Bug report #920959,
regarding python-clamav: Add support fort clamav 0.101.0
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
920959: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920959
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-clamav
Version: 0.4.1-8
Severity: important
Tags: patch

The patch attached lets python-clamav compile against clamav from
experimental (it does not compile unstable anymore).

Sebastian
From: Sebastian Andrzej Siewior <[email protected]>
Date: Wed, 30 Jan 2019 23:22:55 +0100
Subject: [PATCH] python-clamav: add support for clamav 0.101.0

CL_SCAN_GENERAL_ALLMATCHES with all parses should do what CL_SCAN_STDOPT
did.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
---
 pyclamav.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pyclamav.c b/pyclamav.c
index 7ccd57239b97..0315c62ea81a 100644
--- a/pyclamav.c
+++ b/pyclamav.c
@@ -191,6 +191,7 @@ static PyObject *pyclamav_scanfile(PyObject *self, PyObject *args)
   char *file_to_scan;
   unsigned long int size = 0;
   const char *virname;
+  struct cl_scan_options scan_options;
   int ret = 0;
 
   /* Raise exception if database error */
@@ -209,8 +210,11 @@ static PyObject *pyclamav_scanfile(PyObject *self, PyObject *args)
     PyErr_SetString(PyExc_ValueError,  "Argument is not a filename");
     return NULL;     
   }
+  memset(&scan_options, 0, sizeof(scan_options));
+  scan_options.general = CL_SCAN_GENERAL_ALLMATCHES;
+  scan_options.parse = ~0;
 
-  ret = cl_scanfile(file_to_scan, &virname, &size, engine, CL_SCAN_STDOPT);
+  ret = cl_scanfile(file_to_scan, &virname, &size, engine, &scan_options);
 
   /* Test return code */
   switch (ret) {
-- 
2.11.0


--- End Message ---
--- Begin Message ---
Source: python-clamav
Source-Version: 0.4.1-10

We believe that the bug you reported is fixed in the latest version of
python-clamav, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott Kitterman <[email protected]> (supplier of updated python-clamav 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 04 Feb 2019 12:15:22 -0500
Source: python-clamav
Architecture: source
Version: 0.4.1-10
Distribution: experimental
Urgency: medium
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Scott Kitterman <[email protected]>
Closes: 920959
Changes:
 python-clamav (0.4.1-10) experimental; urgency=medium
 .
   * Add d/p/python-clamav-add-support-for-clamav-0.101.0.patch to that
     python-clamav builds/works with clamav 101.1 and newer (Closes: #920959)
   * Bump libclamav-dev build-depends to match
Checksums-Sha1:
 ce12d0a75116a666e5454d66dd2e3cde9d3e35bb 2046 python-clamav_0.4.1-10.dsc
 4d1748c13bf81b816760135e512906fbf92a4e96 12789 python-clamav_0.4.1.orig.tar.gz
 d35ddd58620398281f9efd6a315a2517c1355f48 5440 
python-clamav_0.4.1-10.debian.tar.xz
 e1956482d45e312b6880bc1ee17888239a6ee1be 6060 
python-clamav_0.4.1-10_source.buildinfo
Checksums-Sha256:
 f406b7b22d9c26570f80c9141935b992d7c3c71a32272cc1eb5da4cef26fcf90 2046 
python-clamav_0.4.1-10.dsc
 27f0ea9771a9c5d8f974761df829a85344a19cf47a4b23a3f69836de2717b81c 12789 
python-clamav_0.4.1.orig.tar.gz
 73cedf9087ce8bc1768725ff17582851279c73618cbcdb12aa562abb8f326469 5440 
python-clamav_0.4.1-10.debian.tar.xz
 510550bda9fcf430ee0087a8bf7848529846f31e4c40d4b76ac551ed12d5deb2 6060 
python-clamav_0.4.1-10_source.buildinfo
Files:
 87cc7161cf0b1a59a635a825214e1bfc 2046 python optional 
python-clamav_0.4.1-10.dsc
 9e1f29ea118bac87223ff4df3c077556 12789 python optional 
python-clamav_0.4.1.orig.tar.gz
 023ebbf3f633160191fe06e40f7435b6 5440 python optional 
python-clamav_0.4.1-10.debian.tar.xz
 9209e861f6e379f1bc11f16ad4df10d5 6060 python optional 
python-clamav_0.4.1-10_source.buildinfo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJcWJdkAAoJEHjX3vua1Zrx8QgP/2BClnNgm3VomyNz2prtrsO4
fk9bNIN0195mPs15SdZTOjszdxBi/ZgeJwjqIhKPPpgX3frHpSKwChxQ6twgDMUq
u05fdHAFegYjpeiFAkYNiG8VZU37QOM4F/fl6ItI5snsBNsb5gF4tf5WKlg7iOfP
ZW7+NNuJC8p0x0BPaUzi1ATy5dM27rAzcTBob08Esr5VXLLJm5Ee49cn5RMGzn5y
H6aNGpk6z+pM32PQzSCC7ACageiq2q1QVhF1DWcw2ETJV/OVhbsaKSPRE0tXL1ln
TWPw4pVNtQhPz8JrSLhR37o1ulQaVDywYEx5E0NuZEhNY+Jw/9QAKOt/2dh/hW43
AzJqcl2//bH0VGv/NBDRJ7JaxB2BKUlJFdmyOamBlPg4DwxCtzI1s4KzbJOXqsHO
r5tNBucCcieOW19Wq81Lq3CB+QdoWQsS1EnoBD5PL668VAw4AvEP2diLdKNBUTzM
mqs2whjas9RlJp7N6+mbk+VYCUTapxCqTsierRR8UX95d25z26qV7uSp9e/yC5CM
RX3Tc5cgSpxVs1nPMHjRcQvSmvbwONrEwKYlNVLL59dm4Ts9xzlwG2Bob5s0C24+
udnEU9M1wvXtDGftk6UuLb+Nr7TpwM6d6w9IjOjtMSPge378J798H8oOPpyTXEok
VT0WectqSikOWaubG3Ww
=uxyg
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to