]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
zlib: update to 1.3.2 21228/head
authorShiji Yang <yangshiji66@outlook.com>
Fri, 19 Dec 2025 15:59:05 +0000 (23:59 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 14 Mar 2026 21:24:13 +0000 (22:24 +0100)
Release Notes:
https://github.com/madler/zlib/blob/v1.3.2/ChangeLog

We also switch package tarball source to GitHub repository releases
to avoid package hash mismatch after the zstd upgrade.

The 005-* patch was suppressed by the upstream commit 15ba5055a935
("CMake: Adapt pkgconfig-file to the GnuInstallDirs layout.")

This patch also adjust the zlib.pc file path as it was changed in
the latest release.

The mipsel_24kc 'zlib' package size will increase by about 1 kB.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/21228
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/libs/zlib/Makefile
package/libs/zlib/patches/004-attach-sourcefiles-in-patch-002-to-buildsystem.patch
package/libs/zlib/patches/005-relative-pkg-config-paths.patch [deleted file]

index 87a5715f89677f888d3bc652bfd78818b8ccec19..b192b6dcf7ad595618d0b39a1db61ff846e7b748 100644 (file)
@@ -8,13 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=zlib
-PKG_VERSION:=1.3.1
+PKG_VERSION:=1.3.2
 PKG_RELEASE:=1
 
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=https://github.com/madler/zlib
-PKG_SOURCE_VERSION:=51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
-PKG_MIRROR_HASH:=6558577038f4839057fad93afb295bf32e84dc9bd2c33512d40a5eab6d4889ef
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=https://github.com/madler/zlib/releases/download/v$(PKG_VERSION)
+PKG_HASH:=d7a0654783a4da529d1bb793b7ad9c3318020af77667bcae35f95d0e42a792f3
 
 PKG_LICENSE:=Zlib
 PKG_LICENSE_FILES:=LICENSE
@@ -71,7 +70,7 @@ define Build/InstallDev
        $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libz.{a,so*} \
                $(1)/usr/lib/
        mkdir -p $(1)/usr/lib/pkgconfig
-       $(CP)   $(PKG_INSTALL_DIR)/usr/share/pkgconfig/zlib.pc \
+       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/zlib.pc \
                $(1)/usr/lib/pkgconfig/
 endef
 
@@ -91,7 +90,7 @@ define Package/zlib-dev/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.a $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
-       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/pkgconfig/zlib.pc \
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/zlib.pc \
          $(1)/usr/lib/pkgconfig/
 endef
 
index 5181dcf41952e531e9af1d18953b549dac341498..582e48245e9bcd43b9014212efbb46ec77b593f5 100644 (file)
@@ -1,9 +1,9 @@
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -93,34 +93,67 @@ set(ZLIB_PUBLIC_HDRS
-     ${CMAKE_CURRENT_BINARY_DIR}/zconf.h
-     zlib.h
- )
+@@ -121,33 +121,64 @@ configure_file(${zlib_BINARY_DIR}/zconf.
+ set(ZLIB_PUBLIC_HDRS ${zlib_BINARY_DIR}/zconf.h zlib.h)
 -set(ZLIB_PRIVATE_HDRS
 -    crc32.h
 -    deflate.h
 -    inflate.h
 -    inftrees.h
 -    trees.h
--    zutil.h
--)
+-    zutil.h)
++if(ARMv8)
++    set(ZLIB_PRIVATE_HDRS
++      crc32.h
++      deflate.h
++      gzguts.h
++      inffast.h
++      inffixed.h
++      inflate.h
++      inftrees.h
++      trees.h
++      zutil.h
++      contrib/arm/chunkcopy.h)
 -set(ZLIB_SRCS
 -    adler32.c
 -    compress.c
 -    inffast.c
 -    trees.c
 -    uncompr.c
--    zutil.c
--)
-+
-+if(ARMv8)
-+    set(ZLIB_PRIVATE_HDRS
-+      crc32.h
-+      deflate.h
-+      gzguts.h
-+      inffast.h
-+      inffixed.h
-+      inflate.h
-+      inftrees.h
-+      trees.h
-+      zutil.h
-+      contrib/arm/chunkcopy.h
-+    )
+-    zutil.c)
 +    set(ZLIB_SRCS
 +      adler32.c
 +      compress.c
@@ -61,9 +58,8 @@
 +      contrib/arm/inffast.c
 +      trees.c
 +      uncompr.c
-+      zutil.c
-+    )
-+    else()
++      zutil.c)
++else()
 +    set(ZLIB_PRIVATE_HDRS
 +      crc32.h
 +      deflate.h
@@ -73,8 +69,8 @@
 +      inflate.h
 +      inftrees.h
 +      trees.h
-+      zutil.h
-+    )
++      zutil.h)
++
 +    set(ZLIB_SRCS
 +      adler32.c
 +      compress.c
@@ -90,9 +86,8 @@
 +      inffast.c
 +      trees.c
 +      uncompr.c
-+      zutil.c
-+    )
++      zutil.c)
 +endif()
  
- if(NOT MINGW)
-     set(ZLIB_DLL_SRCS
+ if(WIN32)
+     set(zlib_static_suffix "s")
diff --git a/package/libs/zlib/patches/005-relative-pkg-config-paths.patch b/package/libs/zlib/patches/005-relative-pkg-config-paths.patch
deleted file mode 100644 (file)
index c86d19b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/zlib.pc.cmakein
-+++ b/zlib.pc.cmakein
-@@ -1,8 +1,8 @@
- prefix=@CMAKE_INSTALL_PREFIX@
- exec_prefix=@CMAKE_INSTALL_PREFIX@
--libdir=@INSTALL_LIB_DIR@
--sharedlibdir=@INSTALL_LIB_DIR@
--includedir=@INSTALL_INC_DIR@
-+libdir=${exec_prefix}/lib
-+sharedlibdir=${exec_prefix}/lib
-+includedir=${prefix}/include
- Name: zlib
- Description: zlib compression library