Your message dated Sun, 03 Oct 2010 16:19:07 +0000
with message-id <[email protected]>
and subject line Bug#524645: fixed in python-clamav 0.4.1-2
has caused the Debian Bug report #524645,
regarding python-clamav: support for clamav 0.95/libclamav6 (NMU)
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.)


-- 
524645: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524645
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-clamav
Version: 0.4.1-1+b1
Severity: normal

This package needs to be updated to support the new clamav release 
(clamav 0.95/libclamav6). Proposed NMU diff is attached.

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-clamav depends on:
ii  clamav-freshclam [cl 0.94.dfsg.2-1lenny2 anti-virus utility for Unix - viru
ii  libc6                2.7-18              GNU C Library: Shared libraries
ii  libclamav5           0.94.dfsg.2-1lenny2 anti-virus utility for Unix - libr
ii  python               2.5.2-3             An interactive high-level object-o
ii  python-support       0.8.4               automated rebuilding support for P

python-clamav recommends no packages.

python-clamav suggests no packages.

-- no debconf information
diff -u python-clamav-0.4.1/debian/changelog python-clamav-0.4.1/debian/changelog
--- python-clamav-0.4.1/debian/changelog
+++ python-clamav-0.4.1/debian/changelog
@@ -1,3 +1,13 @@
+python-clamav (0.4.1-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Build against libclamav6/clamav 0.95
+    - modified pyclamav.c source to use the new API functions 
+    - cleaned up some old code for clamav 0.75
+    - updated Build-Depends
+
+ -- Imre Gergely <[email protected]>  Sat, 18 Apr 2009 17:00:51 +0300
+
 python-clamav (0.4.1-1) unstable; urgency=low
 
   * New upstream release
diff -u python-clamav-0.4.1/debian/control python-clamav-0.4.1/debian/control
--- python-clamav-0.4.1/debian/control
+++ python-clamav-0.4.1/debian/control
@@ -2,7 +2,7 @@
 Section: python
 Priority: optional
 Maintainer: Cédric Delfosse <[email protected]>
-Build-Depends: debhelper (>= 5.0.37.2), libclamav-dev, python (>= 2.3.5-11), python-support (>= 0.3), python-all-dev
+Build-Depends: debhelper (>= 5.0.37.2), libclamav-dev (>= 0.95), python (>= 2.3.5-11), python-support (>= 0.3), python-all-dev
 Standards-Version: 3.7.3
 
 Package: python-clamav
only in patch2:
unchanged:
--- python-clamav-0.4.1.orig/pyclamav.c
+++ python-clamav-0.4.1/pyclamav.c
@@ -33,25 +33,6 @@
 
 /* ********************************************************* */
 
-/* To be able to compile with 
-   releases 0.75 of libclamav 
-
-   Where cl_free was cl_freetrie
-   and cl_build was cl_buildtrie
-   CL_SCAN_STDOPT did not exist
-*/
-#ifndef CL_SCAN_STDOPT
-#define CL_SCAN_STDOPT CL_RAW | CL_ARCHIVE | CL_MAIL | CL_DISABLERAR | CL_OLE2 | CL_ENCRYPTED
-void cl_free(struct cl_node *rootnode) {
-  cl_freetrie(rootnode);  
-  return;    
-} 
-
-int cl_build(struct cl_node *rootnode) {  
-  return cl_buildtrie(rootnode);    
-} 
-#endif
-
 /* For python prior to 2.3 */
 #ifndef PyMODINIT_FUNC
 #define PyMODINIT_FUNC void
@@ -68,11 +49,9 @@
 unsigned int signumber = 0;
  
 /* Structures for clamav */
-struct cl_node *root = NULL;
-struct cl_limits limits;
+struct cl_engine *engine = NULL;
 struct cl_stat dbstat;
 
-
 /*
  * If the virus database has been changed, then
  * free the current tree and reload the new one
@@ -85,22 +64,22 @@
   /* If yes : reload DB                */
   if (cl_statchkdir(&dbstat) == 1)
     {
-      /* free the tree */
-      cl_free(root); 
+      /* free the engine */
+      cl_engine_free(engine); 
       signumber=0;
-      root=NULL;
+      engine=NULL;
 
       /* Load DB */
-      if((ret = cl_load(cl_retdbdir(), &root, &signumber, CL_DB_STDOPT))) {
+      if((ret = cl_load(cl_retdbdir(), engine, &signumber, CL_DB_STDOPT)) != CL_SUCCESS) {
 	/* Raise exception with error message */
 	PyErr_SetString(PyclamavError,  cl_strerror(ret));
 	return -2;
       }
 
-      /* build the final tree */
-      if((ret = cl_build(root))) {
-	/* free the partial tree */
-	cl_free(root); 
+      /* prepare the engine */
+      if((ret = cl_engine_compile(engine))) {
+	/* free the engine */
+	cl_engine_free(engine); 
 	/* Raise exception with error message */
 	PyErr_SetString(PyclamavError, cl_strerror(ret));
 	return -2;
@@ -231,7 +210,7 @@
     return NULL;     
   }
 
-  ret = cl_scanfile(file_to_scan, &virname, &size, root, &limits, CL_SCAN_STDOPT);
+  ret = cl_scanfile(file_to_scan, &virname, &size, engine, CL_SCAN_STDOPT);
 
   /* Test return code */
   switch (ret) {
@@ -278,17 +257,21 @@
   /* Set documentation string for the module */
   PyDict_SetItemString(dict, "__doc__", PyString_FromString("pyclamav :\n\n  This is a python binding to the C libclamav library\n  (from the Clamav project - http://www.clamav.net).\n  It can be used to easily allow a Python script to scan\n  a file or a buffer against known viruses.\n\nAuthor : Alexandre Norman [[email protected]]\n\nfunctions :\n  - scanfile(string filename) : Scan a file for virus.\n  - get_numsig() : Return the number of known signatures.\n  - get_version() : Return the version of Clamav.\n  - version() : Return the version of pyclamav.\n"));
 
+  /* initialize libclamav */
+  cl_init(CL_INIT_DEFAULT);
+  engine = cl_engine_new();
 
-  if((ret = cl_load(cl_retdbdir(), &root, &signumber, CL_DB_STDOPT))) {
+  if((ret = cl_load(cl_retdbdir(), engine, &signumber, CL_DB_STDOPT))) {
     /* Raise exception with error message */
     PyErr_SetString(PyclamavError,  cl_strerror(ret));
+    cl_engine_free(engine);
     return;
   }
 
-  /* build the final tree */
-  if((ret = cl_build(root))) {
-    /* free the partial tree */
-    cl_free(root); 
+  /* prepare the engine */
+  if((ret = cl_engine_compile(engine)) != CL_SUCCESS) {
+    /* free up the engine resources */
+    cl_engine_free(engine); 
     /* Raise exception with error message */
     PyErr_SetString(PyclamavError, cl_strerror(ret));
     return;
@@ -299,15 +282,6 @@
   memset(&dbstat, 0, sizeof(struct cl_stat));
   cl_statinidir(cl_retdbdir(), &dbstat);
 
-
-
-  /* set up archive limits */
-  memset(&limits, 0, sizeof(struct cl_limits));
-  limits.maxfiles = 1000; /* max files */
-  limits.maxfilesize = 10 * 1048576; /* maximal archived file size == 10 Mb */
-  limits.maxreclevel = 5; /* maximal recursion level */
-  limits.archivememlim = 0; /* disable memory limit for bzip2 scanner */
-
   return ;
 }
 

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

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:

python-clamav_0.4.1-2.debian.tar.gz
  to main/p/python-clamav/python-clamav_0.4.1-2.debian.tar.gz
python-clamav_0.4.1-2.dsc
  to main/p/python-clamav/python-clamav_0.4.1-2.dsc
python-clamav_0.4.1-2_i386.deb
  to main/p/python-clamav/python-clamav_0.4.1-2_i386.deb



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: SHA1

Format: 1.8
Date: Wed, 22 Sep 2010 12:30:43 -0400
Source: python-clamav
Binary: python-clamav
Architecture: source i386
Version: 0.4.1-2
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team <[email protected]>
Changed-By: Scott Kitterman <[email protected]>
Description: 
 python-clamav - Python bindings to ClamAV
Closes: 524645
Changes: 
 python-clamav (0.4.1-2) unstable; urgency=low
 .
   * Agreed maintainer change to Debian Python Modules Team
     - Add myself to uploaders
     - Thanks to Cédric Delfosse for his work maintaining python-clamav
   * Acknowledge NMU (Closes: #524645)
     - Thanks to Imre Gergely
   * Convert to source format 3.0 (Quilt) to add patch system
     - Convert existing inline change to debian/patches/clamav-095-compat.patch
   * Improve debian/copyright
   * Add Homepage to debian/control and bump standards version to 3.9.1.0
     without further change
   * Remove obsolete debian/pycompat file
Checksums-Sha1: 
 44421686b107ab5458150cbd911a02445873607f 1245 python-clamav_0.4.1-2.dsc
 c0d83889db99c7abe767d86e5ae8776334fac0e2 4388 
python-clamav_0.4.1-2.debian.tar.gz
 8e435e9fd6fa47908197496dedfd19559e5590cf 16774 python-clamav_0.4.1-2_i386.deb
Checksums-Sha256: 
 e2a873aa61cb8f801b159ed437c47abda2bd93843000f67c35de32a5fe0e78a8 1245 
python-clamav_0.4.1-2.dsc
 f25053eab227e7c1c69795edfb12d18d915840d2679a81f10bb6dbbc198ad905 4388 
python-clamav_0.4.1-2.debian.tar.gz
 1eec3101ff55df3230bd2fe8d648c4084e79bcfe5a0629b3b0e8e3532e9911be 16774 
python-clamav_0.4.1-2_i386.deb
Files: 
 c20642132f87b5e5a25b76d771aea3c2 1245 python optional python-clamav_0.4.1-2.dsc
 acf1ee80890959de52f8bfe8345d477a 4388 python optional 
python-clamav_0.4.1-2.debian.tar.gz
 10ab914c82003ed5e64f7d60aaed3016 16774 python optional 
python-clamav_0.4.1-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyoqYMACgkQHajaM93NaGpYPgCZAZnkHSriOj8yd1HrouwAFyVb
YhUAn2lQ5agIv0Fl3tJDh1FoKAVny0Om
=JHd1
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to