From owner-svn-ports-head@freebsd.org Mon May 18 17:32:24 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6AAD62D8AED; Mon, 18 May 2020 17:32:24 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49QmL02H8yz44Px; Mon, 18 May 2020 17:32:24 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 47BDD24ED7; Mon, 18 May 2020 17:32:24 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 04IHWO5J066670; Mon, 18 May 2020 17:32:24 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 04IHWNgH066667; Mon, 18 May 2020 17:32:23 GMT (envelope-from feld@FreeBSD.org) Message-Id: <202005181732.04IHWNgH066667@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Mon, 18 May 2020 17:32:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r535759 - in head/www/varnish4: . files X-SVN-Group: ports-head X-SVN-Commit-Author: feld X-SVN-Commit-Paths: in head/www/varnish4: . files X-SVN-Commit-Revision: 535759 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2020 17:32:24 -0000 Author: feld Date: Mon May 18 17:32:23 2020 New Revision: 535759 URL: https://svnweb.freebsd.org/changeset/ports/535759 Log: www/varnish4: Update to 4.1.11 Changelog: https://varnish-cache.org/releases/rel4.1.11.html Also backport change required for compiling with LLVM 10. PR: 245075 Added: head/www/varnish4/files/patch-lib_libvmod__std_vmod__std__conversions.c (contents, props changed) Modified: head/www/varnish4/Makefile head/www/varnish4/distinfo Modified: head/www/varnish4/Makefile ============================================================================== --- head/www/varnish4/Makefile Mon May 18 17:30:25 2020 (r535758) +++ head/www/varnish4/Makefile Mon May 18 17:32:23 2020 (r535759) @@ -1,9 +1,9 @@ # $FreeBSD$ PORTNAME= varnish -PORTVERSION= 4.1.10 +PORTVERSION= 4.1.11 DISTVERSIONPREFIX= varnish- -PORTREVISION= 1 +PORTREVISION= 0 CATEGORIES= www PKGNAMESUFFIX= 4 Modified: head/www/varnish4/distinfo ============================================================================== --- head/www/varnish4/distinfo Mon May 18 17:30:25 2020 (r535758) +++ head/www/varnish4/distinfo Mon May 18 17:32:23 2020 (r535759) @@ -1,3 +1,3 @@ -TIMESTAMP = 1536767576 -SHA256 (varnishcache-varnish-cache-varnish-4.1.10_GH0.tar.gz) = 44e0fa32112ffc1f8331f66c48b761e75bc1e4b10a9a0d4b58f63c202ce5c3f8 -SIZE (varnishcache-varnish-cache-varnish-4.1.10_GH0.tar.gz) = 953083 +TIMESTAMP = 1589821255 +SHA256 (varnishcache-varnish-cache-varnish-4.1.11_GH0.tar.gz) = eb2ad84cc1fb8d2a0e80cb4d9c43b1b79cd56b839440258de9f3d10854564cab +SIZE (varnishcache-varnish-cache-varnish-4.1.11_GH0.tar.gz) = 956466 Added: head/www/varnish4/files/patch-lib_libvmod__std_vmod__std__conversions.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/varnish4/files/patch-lib_libvmod__std_vmod__std__conversions.c Mon May 18 17:32:23 2020 (r535759) @@ -0,0 +1,42 @@ +--- lib/libvmod_std/vmod_std_conversions.c.orig 2019-02-11 14:06:27 UTC ++++ lib/libvmod_std/vmod_std_conversions.c +@@ -45,6 +45,21 @@ + #include "vtim.h" + #include "vcc_if.h" + ++/* ++ * technically, as our VCL_INT is int64_t, its limits are INT64_MIN/INT64_MAX. ++ * ++ * Yet, for conversions, we use VNUMpfx with a double intermediate, so above ++ * 2^53 we see rounding errors. In order to catch a potential floor rounding ++ * error, we make our limit 2^53-1 ++ * ++ * Ref: https://stackoverflow.com/a/1848762 ++ */ ++#define VCL_INT_MAX ((INT64_C(1)<<53)-1) ++#define VCL_INT_MIN (-VCL_INT_MAX) ++ ++#define VCL_BYTES_MAX VCL_INT_MAX ++#define VCL_BYTES_MIN 0 ++ + VCL_DURATION __match_proto__(td_std_duration) + vmod_duration(VRT_CTX, VCL_STRING p, VCL_DURATION d) + { +@@ -195,7 +210,7 @@ vmod_real2integer(VRT_CTX, VCL_REAL r, VCL_INT i) + if (!isfinite(r)) + return (i); + r = round(r); +- if (r > LONG_MAX || r < LONG_MIN) ++ if (r > VCL_INT_MAX || r < VCL_INT_MIN) + return(i); + return ((long)r); + } +@@ -219,7 +234,7 @@ vmod_time2integer(VRT_CTX, VCL_TIME t, VCL_INT i) + if (!isfinite(t)) + return (i); + t = round(t); +- if (t > LONG_MAX || t < LONG_MIN) ++ if (t > VCL_INT_MAX || t < VCL_INT_MIN) + return(i); + return ((long)t); + }