27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From 3f53490d88387bbfe6c7d482089d9a597b257cf0 Mon Sep 17 00:00:00 2001
|
|
From: Luigi Scarso <luigi.scarso@gmail.com>
|
|
Date: Tue, 21 Nov 2023 11:17:29 +0100
|
|
Subject: [PATCH] relax zlib version check to just checking the major version,
|
|
since (it turns out) zlib 1.3 is compatible with 1.2 (K. Berry).
|
|
|
|
---
|
|
texk/web2c/luatexdir/ChangeLog | 9 +++++++++
|
|
texk/web2c/luatexdir/luatex_svnversion.h | 2 +-
|
|
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 e61f92d58..ea123e541 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);
|
|
--
|