Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (5ebd8454043bf9f787d487e8bd66a946e746d35b)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (5ebd8454043bf9f787d487e8bd66a946e746d35b)
  • Date: Fri, 20 Oct 2023 05:07:06 +0000

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

http/varnish/DETAILS | 1 +
http/varnish/HISTORY | 5 +++++
http/varnish/PRE_BUILD | 4 ++++
http/varnish/pow.patch | 34 ++++++++++++++++++++++++++++++++++
4 files changed, 44 insertions(+)

New commits:
commit 5ebd8454043bf9f787d487e8bd66a946e746d35b
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

varnish: add std.pow() patch

diff --git a/http/varnish/DETAILS b/http/varnish/DETAILS
index 40ef425..22fdc18 100755
--- a/http/varnish/DETAILS
+++ b/http/varnish/DETAILS
@@ -1,6 +1,7 @@
SPELL=varnish
VERSION=4.1.11
SECURITY_PATCH=1
+ PATCHLEVEL=1
SOURCE=${SPELL}-${VERSION}.tgz
SOURCE_URL[0]=https://varnish-cache.org/_downloads/${SOURCE}

SOURCE_HASH=sha512:6df09f6ed608fcb8cd912b4ddb96bc74285127d51e3658c959e03a8aa6916bfa8e3beaf426d306bc32c3ddeaebeadf7715e099ba3fb1f01b3aa30e35dc1e2378
diff --git a/http/varnish/HISTORY b/http/varnish/HISTORY
index 5bbeb81..9bd8acd 100644
--- a/http/varnish/HISTORY
+++ b/http/varnish/HISTORY
@@ -1,3 +1,8 @@
+2023-10-19 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS: PATCHLEVEL=1
+ * PRE_BUILD: added, apply patch
+ * pow.patch: added, for std.pow() implementation
+
2019-05-06 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 4.1.11; SECURITY_PATCH=1; updated source,
source URL, website
diff --git a/http/varnish/PRE_BUILD b/http/varnish/PRE_BUILD
new file mode 100755
index 0000000..36d50cd
--- /dev/null
+++ b/http/varnish/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+patch -p0 < "${SPELL_DIRECTORY}/pow.patch"
diff --git a/http/varnish/pow.patch b/http/varnish/pow.patch
new file mode 100644
index 0000000..2ab1ccc
--- /dev/null
+++ b/http/varnish/pow.patch
@@ -0,0 +1,34 @@
+#
+# https://github.com/varnishcache/varnish-cache/pull/4001
+#
+--- lib/libvmod_std/vmod.vcc.orig 2023-10-18 03:36:17.074890932 +0000
++++ lib/libvmod_std/vmod.vcc 2023-10-18 03:41:21.996125534 +0000
+@@ -288,6 +288,14 @@
+ Example
+ | set req.http.My-Env = std.getenv("MY_ENV");
+
++$Function REAL pow(REAL base, REAL power)
++
++Calculates the power raised to the base number.
++
++Example::
++
++ | set req.http.x-p = std.pow(2.0, 2.0);
++
+ SEE ALSO
+ ========
+
+--- lib/libvmod_std/vmod_std.c.orig 2023-10-18 03:36:30.204902152 +0000
++++ lib/libvmod_std/vmod_std.c 2023-10-18 03:39:36.305061205 +0000
+@@ -274,3 +274,11 @@
+ return (NULL);
+ return (getenv(name));
+ }
++
++VCL_REAL __match_proto__(td_std_pow)
++vmod_pow(VRT_CTX, VCL_REAL base, VCL_REAL power)
++{
++ CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
++
++ return (pow(base, power));
++}



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (5ebd8454043bf9f787d487e8bd66a946e746d35b), Vlad Glagolev, 10/20/2023

Archive powered by MHonArc 2.6.24.

Top of Page