pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/clamav Fix strerror_r compile problem. PKGREVISI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/088c965bf941
branches:  trunk
changeset: 473102:088c965bf941
user:      tv <tv%pkgsrc.org@localhost>
date:      Fri Apr 16 11:50:41 2004 +0000

description:
Fix strerror_r compile problem.  PKGREVISION untouched since it didn't even
compile on platforms afflicted by this (and Solaris, where it compiled fine,
already used the code path to which it was changed).

diffstat:

 mail/clamav/distinfo         |   3 ++-
 mail/clamav/patches/patch-ae |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r dd1df60b76e7 -r 088c965bf941 mail/clamav/distinfo
--- a/mail/clamav/distinfo      Fri Apr 16 11:41:48 2004 +0000
+++ b/mail/clamav/distinfo      Fri Apr 16 11:50:41 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2004/04/14 16:30:42 tv Exp $
+$NetBSD: distinfo,v 1.10 2004/04/16 11:50:41 tv Exp $
 
 SHA1 (clamav-0.68-1.tar.gz) = d99dc0f88ad31df77441e5e4cfa1d6c66ac8f756
 Size (clamav-0.68-1.tar.gz) = 2170863 bytes
@@ -6,3 +6,4 @@
 SHA1 (patch-ab) = 49f80b512704fec57c6b920d2625c083c756f957
 SHA1 (patch-ac) = cab02632217fe4d75c0b48d0fd962d7822c3617d
 SHA1 (patch-ad) = 6f2bfa05bb3421280272719c03260784a7826e91
+SHA1 (patch-ae) = 2761d90b6551c3b5006edeead097dc5d2846a337
diff -r dd1df60b76e7 -r 088c965bf941 mail/clamav/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/clamav/patches/patch-ae      Fri Apr 16 11:50:41 2004 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.1 2004/04/16 11:50:41 tv Exp $
+
+--- clamav-milter/clamav-milter.c.orig Fri Apr 16 07:48:37 2004
++++ clamav-milter/clamav-milter.c
+@@ -1608,12 +1608,7 @@ clamfi_envfrom(SMFICTX *ctx, char **argv
+ 
+                       /* 0.4 - use better error message */
+                       if(use_syslog) {
+-#ifdef TARGET_OS_SOLARIS      /* no strerror_r */
+                               syslog(LOG_ERR, "Failed to connect to port %d given by clamd: %s", port, strerror(rc));
+-#else
+-                              strerror_r(rc, buf, sizeof(buf));
+-                              syslog(LOG_ERR, "Failed to connect to port %d given by clamd: %s", port, buf);
+-#endif
+                       }
+ 
+                       return cl_error;



Home | Main Index | Thread Index | Old Index