aboutsummaryrefslogtreecommitdiff
path: root/repos/core/zlib-ng/no-weird-ver.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repos/core/zlib-ng/no-weird-ver.patch')
-rwxr-xr-xrepos/core/zlib-ng/no-weird-ver.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/repos/core/zlib-ng/no-weird-ver.patch b/repos/core/zlib-ng/no-weird-ver.patch
new file mode 100755
index 00000000..a7a89019
--- /dev/null
+++ b/repos/core/zlib-ng/no-weird-ver.patch
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -290,7 +290,7 @@ if test $compat -eq 0; then
+ VER2=$(sed -n -e '/ZLIBNG_VERSION "/s/.*"\([0-9]*\.[0-9]*\)\..*/\1/p' < ${SRCDIR}/zlib-ng.h.in)
+ VER1=$(sed -n -e '/ZLIBNG_VERSION "/s/.*"\([0-9]*\)\..*/\1/p' < ${SRCDIR}/zlib-ng.h.in)
+ else
+- VER=$(sed -n -e '/ZLIB_VERSION "/s/.*"\(.*\)".*/\1/p' < ${SRCDIR}/zlib.h.in)
++ VER=$(sed -n -e '/ZLIB_VERSION "/s/.*"\(.*\).zlib-ng".*/\1/p' < ${SRCDIR}/zlib.h.in)
+ VER3=$(sed -n -e '/ZLIB_VERSION "/s/.*"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' < ${SRCDIR}/zlib.h.in)
+ VER2=$(sed -n -e '/ZLIB_VERSION "/s/.*"\([0-9]*\.[0-9]*\)\..*/\1/p' < ${SRCDIR}/zlib.h.in)
+ VER1=$(sed -n -e '/ZLIB_VERSION "/s/.*"\([0-9]*\)\..*/\1/p' < ${SRCDIR}/zlib.h.in)