summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'relax-zlib-check-to-just-major-version-following-deb.patch')
-rw-r--r--relax-zlib-check-to-just-major-version-following-deb.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/relax-zlib-check-to-just-major-version-following-deb.patch b/relax-zlib-check-to-just-major-version-following-deb.patch
new file mode 100644
index 0000000..ae6da9f
--- /dev/null
+++ b/relax-zlib-check-to-just-major-version-following-deb.patch
@@ -0,0 +1,26 @@
+From 7fb47babef2c947ad937d9e8e36842122459342c Mon Sep 17 00:00:00 2001
+From: Karl Berry <karl@freefriends.org>
+Date: Mon, 20 Nov 2023 23:05:35 +0000
+Subject: [PATCH] relax zlib check to just major version, following debian
+
+git-svn-id: svn://tug.org/texlive/trunk/Build/source@68922 c570f23f-e606-0410-a88d-b1316a301751
+---
+ texk/web2c/luatexdir/luazlib/lzlib.c | 2 +-
+ 3 files changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/texk/web2c/luatexdir/luazlib/lzlib.c b/texk/web2c/luatexdir/luazlib/lzlib.c
+index e61f92d580e2..ea123e54126f 100644
+--- a/texk/web2c/luatexdir/luazlib/lzlib.c
++++ b/texk/web2c/luatexdir/luazlib/lzlib.c
+@@ -546,7 +546,7 @@ LUALIB_API int luaopen_zlib(lua_State *L)
+
+ /* make sure header and library version are consistent */
+ const char* version = zlibVersion();
+- if (strncmp(version, ZLIB_VERSION, 4))
++ if (strncmp(version, ZLIB_VERSION, 2))
+ {
+ lua_pushfstring(L, "zlib library version does not match - header: %s, library: %s", ZLIB_VERSION, version);
+ lua_error(L);
+--
+2.41.0
+