pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/squid4



Module Name:    pkgsrc
Committed By:   joerg
Date:           Fri Jan 10 21:22:22 UTC 2020

Modified Files:
        pkgsrc/www/squid4: distinfo
        pkgsrc/www/squid4/patches: patch-src_comm_ModKqueue.cc
Added Files:
        pkgsrc/www/squid4/patches: patch-src_security_ServerOptions.h

Log Message:
Fix kqueue fallout on NetBSD current.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/squid4/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/www/squid4/patches/patch-src_comm_ModKqueue.cc
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/squid4/patches/patch-src_security_ServerOptions.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/squid4/distinfo
diff -u pkgsrc/www/squid4/distinfo:1.1 pkgsrc/www/squid4/distinfo:1.2
--- pkgsrc/www/squid4/distinfo:1.1      Sat Jan  4 10:57:18 2020
+++ pkgsrc/www/squid4/distinfo  Fri Jan 10 21:22:22 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2020/01/04 10:57:18 taca Exp $
+$NetBSD: distinfo,v 1.2 2020/01/10 21:22:22 joerg Exp $
 
 SHA1 (squid-4.9.tar.xz) = 43c90a1a2eb4d1613f1bfc603ad08e8a835be319
 RMD160 (squid-4.9.tar.xz) = 164d000671dba370ebd1b1d1e36137b1d9d7df67
@@ -9,6 +9,7 @@ SHA1 (patch-configure) = 1474c9b2a2706b3
 SHA1 (patch-errors_Makefile.in) = 84cbf5c836f02ed5fbfff140888c6d3aadeac326
 SHA1 (patch-src_Makefile.in) = afc5aefd97c46d1ffab43e97aeaeade3a5a8c648
 SHA1 (patch-src_acl_external_kerberos__ldap__group_support__resolv.cc) = 0ea41d55e32d689a16e012391a9eea67631daf3a
-SHA1 (patch-src_comm_ModKqueue.cc) = 6ca7596a56c86d2dd9d88387a9e7784f262db319
+SHA1 (patch-src_comm_ModKqueue.cc) = d8c5d235f07a48731275101d60fcbf2e22f77b96
 SHA1 (patch-src_fs_ufs_RebuildState.h) = 76ee5c437b3dad05e428ae89cd5af6c052a40e59
+SHA1 (patch-src_security_ServerOptions.h) = 36ed59837040d652ca00ca685970f7c728ff67c3
 SHA1 (patch-tools_Makefile.in) = d098c0c9dc4af577f74e562d99f07ed98be5ae01

Index: pkgsrc/www/squid4/patches/patch-src_comm_ModKqueue.cc
diff -u pkgsrc/www/squid4/patches/patch-src_comm_ModKqueue.cc:1.1 pkgsrc/www/squid4/patches/patch-src_comm_ModKqueue.cc:1.2
--- pkgsrc/www/squid4/patches/patch-src_comm_ModKqueue.cc:1.1   Sat Jan  4 10:57:18 2020
+++ pkgsrc/www/squid4/patches/patch-src_comm_ModKqueue.cc       Fri Jan 10 21:22:22 2020
@@ -1,14 +1,24 @@
-$NetBSD: patch-src_comm_ModKqueue.cc,v 1.1 2020/01/04 10:57:18 taca Exp $
+$NetBSD: patch-src_comm_ModKqueue.cc,v 1.2 2020/01/10 21:22:22 joerg Exp $
 
 * Fix kqueue(2) for NetBSD.
 
---- src/comm/ModKqueue.cc.orig 2019-07-09 19:05:20.000000000 +0000
+--- src/comm/ModKqueue.cc.orig 2019-11-05 19:14:40.000000000 +0000
 +++ src/comm/ModKqueue.cc
-@@ -109,7 +109,11 @@ kq_update_events(int fd, short filter, P
+@@ -43,6 +43,9 @@
+ #if HAVE_SYS_EVENT_H
+ #include <sys/event.h>
+ #endif
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#endif
+ 
+ #define KE_LENGTH        128
+ 
+@@ -109,7 +112,11 @@ kq_update_events(int fd, short filter, P
              kep_flags = EV_DELETE;
          }
  
-+#ifdef __NetBSD__
++#if defined(__NetBSD__) && (__NetBSD_Version__ - 0 < 999001500)
 +        EV_SET(kep, (uintptr_t) fd, filter, kep_flags, 0, 0, (intptr_t)0);
 +#else
          EV_SET(kep, (uintptr_t) fd, filter, kep_flags, 0, 0, 0);

Added files:

Index: pkgsrc/www/squid4/patches/patch-src_security_ServerOptions.h
diff -u /dev/null pkgsrc/www/squid4/patches/patch-src_security_ServerOptions.h:1.1
--- /dev/null   Fri Jan 10 21:22:22 2020
+++ pkgsrc/www/squid4/patches/patch-src_security_ServerOptions.h        Fri Jan 10 21:22:22 2020
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_security_ServerOptions.h,v 1.1 2020/01/10 21:22:22 joerg Exp $
+
+--- src/security/ServerOptions.h.orig  2020-01-09 22:33:01.407843695 +0000
++++ src/security/ServerOptions.h
+@@ -35,7 +35,6 @@ public:
+         // is more secure to have only a small set of trusted CA.
+         flags.tlsDefaultCa.defaultTo(false);
+     }
+-    ServerOptions(const ServerOptions &) = default;
+     ServerOptions &operator =(const ServerOptions &);
+     ServerOptions(ServerOptions &&o) { this->operator =(o); }
+     ServerOptions &operator =(ServerOptions &&o) { this->operator =(o); return *this; }



Home | Main Index | Thread Index | Old Index