[86805] trunk/dports/perl/p5-mail-clamav

ricci at macports.org ricci at macports.org
Fri Nov 4 17:47:35 PDT 2011


Revision: 86805
          http://trac.macports.org/changeset/86805
Author:   ricci at macports.org
Date:     2011-11-04 17:47:34 -0700 (Fri, 04 Nov 2011)
Log Message:
-----------
p5-mail-clamav:  add new files/patch-ClamAV.pm.diff and use it so that clang is happy

Modified Paths:
--------------
    trunk/dports/perl/p5-mail-clamav/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-mail-clamav/files/patch-ClamAV.pm.diff

Modified: trunk/dports/perl/p5-mail-clamav/Portfile
===================================================================
--- trunk/dports/perl/p5-mail-clamav/Portfile	2011-11-05 00:46:35 UTC (rev 86804)
+++ trunk/dports/perl/p5-mail-clamav/Portfile	2011-11-05 00:47:34 UTC (rev 86805)
@@ -19,9 +19,9 @@
 depends_lib-append	port:clamav \
 					port:p${perl5.major}-inline
 
-## patchfiles			patch-ClamAV.pm.diff
 
-patchfiles				patch-Makefile.PL.diff
+patchfiles				patch-Makefile.PL.diff	\
+						patch-ClamAV.pm.diff
 
 use_parallel_build  no
 }

Added: trunk/dports/perl/p5-mail-clamav/files/patch-ClamAV.pm.diff
===================================================================
--- trunk/dports/perl/p5-mail-clamav/files/patch-ClamAV.pm.diff	                        (rev 0)
+++ trunk/dports/perl/p5-mail-clamav/files/patch-ClamAV.pm.diff	2011-11-05 00:47:34 UTC (rev 86805)
@@ -0,0 +1,38 @@
+--- ClamAV.pm.orig	2009-04-29 16:02:43.000000000 -0700
++++ ClamAV.pm	2011-11-04 16:49:01.000000000 -0700
+@@ -191,7 +191,7 @@
+     struct cl_stat st;
+     char is_dir;
+     char *path;
+-    int signatures;
++    unsigned int signatures;
+ };
+ 
+ SV *clamav_perl_new(char *class, char *path)
+@@ -286,7 +286,7 @@
+     reclevel = cl_engine_get_num(c->root, CL_ENGINE_MAX_RECURSION, &err);
+     if (err != CL_SUCCESS) {
+         error(err);
+-        return;
++        return -1;
+     }
+     return reclevel;
+ }
+@@ -313,7 +313,7 @@
+     maxfiles = cl_engine_get_num(c->root, CL_ENGINE_MAX_FILES, &err);
+     if (err != CL_SUCCESS) {
+         error(err);
+-        return;
++        return -1;
+     }
+     return maxfiles;
+ }
+@@ -334,7 +334,7 @@
+     maxfsize = cl_engine_get_num(c->root, CL_ENGINE_MAX_FILESIZE, &err);
+     if (err != CL_SUCCESS) {
+         error(err);
+-        return;
++        return -1;
+     }
+     return maxfsize;
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111104/567f3634/attachment.html>


More information about the macports-changes mailing list