Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mingw32-zlib for openSUSE:Factory checked in at 2026-03-09 16:11:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mingw32-zlib (Old) and /work/SRC/openSUSE:Factory/.mingw32-zlib.new.8177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mingw32-zlib" Mon Mar 9 16:11:05 2026 rev:8 rq:1337611 version:1.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/mingw32-zlib/mingw32-zlib.changes 2023-03-30 22:51:04.568513501 +0200 +++ /work/SRC/openSUSE:Factory/.mingw32-zlib.new.8177/mingw32-zlib.changes 2026-03-09 16:11:27.145201503 +0100 @@ -1,0 +2,106 @@ +Mon Mar 9 08:20:35 UTC 2026 - Fridrich Strba <[email protected]> + +- Upgrade to upstream version 1.3.2 + * Changes in 1.3.2 + + Continued rewrite of CMake build + + Various portability improvements + + Various github workflow additions and improvements + + Check for negative lengths in crc32_combine functions + + Copy only the initialized window contents in inflateCopy + + Prevent the use of insecure functions without an explicit + request + + Add compressBound_z and deflateBound_z functions for large + values + + Use atomics to build inflate fixed tables once + + Add definition of ZLIB_INSECURE to build tests with c89 and + c94 + + Add --undefined option to ./configure for UBSan checker + + Copy only the initialized deflate state in deflateCopy + + Zero inflate state on allocation + + Remove untgz from contrib + + Add _z versions of the compress and uncompress functions + + Vectorize the CRC-32 calculation on the s390x + + Set bit 11 of the zip header flags in minizip if UTF-8 + + Update OS/400 support + + Add a test to configure to check for a working compiler + + Check for invalid NULL pointer inputs to zlib operations + + Add --mandir to ./configure to specify manual directory + + Add LICENSE.Info-Zip to contrib/minizip + + Remove vstudio projects in lieu of cmake-generated projects + + Replace strcpy() with memcpy() in contrib/minizip + * Changes in 1.3.1.2 + + Improve portability to RISC OS + + Permit compiling contrib/minizip/unzip.c with decryption + + Enable build of shared library on AIX + + Make deflateBound() more conservative and handle Z_STREAM_END + + Add zipAlreadyThere() to minizip zip.c to help avoid + duplicates + + Make z_off_t 64 bits by default + + Add deflateUsed() function to get the used bits in the last + byte + + Avoid out-of-bounds pointer arithmetic in inflateCopy() + + Add Haiku to configure for proper LDSHARED settings + + Add Bazel targets + + Complete rewrite of CMake build + + Clarify the use of errnum in gzerror() + + Note that gzseek() requests are deferred until the next + operation + + Note the use of gzungetc() to run a deferred seek while + reading + + Fix bug in inflatePrime() for 16-bit ints + + Add a "G" option to force gzip, disabling transparency in + gzread() + + Improve the discrimination between trailing garbage and bad + gzip + + Allow gzflush() to write empty gzip members + + Remove redundant frees of point list on error in + examples/zran.c + + Clarify the use of inflateGetHeader() + + Update links to the RFCs + + Return all available uncompressed data on error in gzread.c + + Support non-blocking devices in the gz* routines + + Various other small improvements + * Changes in 1.3.1 + + Reject overflows of zip header fields in minizip + + Fix bug in inflateSync() for data held in bit buffer + + Add LIT_MEM define to use more memory for a small deflate + speedup + + Fix decision on the emission of Zip64 end records in minizip + + Add bounds checking to ERR_MSG() macro, used by zError() + + Neutralize zip file traversal attacks in miniunz + + Fix a bug in ZLIB_DEBUG compiles in check_match() + + Various portability and appearance improvements + * Changes in 1.3 + + Remove K&R function definitions and zlib2ansi + + Fix bug in deflateBound() for level 0 and memLevel 9 + + Fix bug when gzungetc() is used immediately after gzopen() + + Fix bug when using gzflush() with a very small buffer + + Fix crash when gzsetparams() attempted for transparent write + + Fix test/example.c to work with FORCE_STORED + + Rewrite of zran in examples (see zran.c version history) + + Fix minizip to allow it to open an empty zip file + + Fix reading disk number start on zip64 files in minizip + + Fix logic error in minizip argument processing + + Add minizip testing to Makefile + + Read multiple bytes instead of byte-by-byte in minizip + unzip.c + + Add memory sanitizer to configure (--memory) + + Various portability improvements + + Various documentation improvements + + Various spelling and typo corrections +- Modified patches: + * 0001-cmake-Fix-pkgconfig-support-on-Windows.patch + -> cmake-Fix-pkgconfig-support-on-Windows.patch + + Adapt to new cmake versions + * zlib-1.2.5-nostrip.patch -> zlib-1.3.2-nostrip.patch + + Adapt to new context +- Added patch: + * zlib-1.3.2-no-static-suffix.patch + + Do not use "z" suffix for our static library + +------------------------------------------------------------------- +Mon Nov 17 20:04:42 UTC 2025 - Jan Engelhardt <[email protected]> + +- Consistently build with cmake + +------------------------------------------------------------------- Old: ---- 0001-cmake-Fix-pkgconfig-support-on-Windows.patch zlib-1.2.13.tar.gz zlib-1.2.5-nostrip.patch New: ---- cmake-Fix-pkgconfig-support-on-Windows.patch zlib-1.3.2-no-static-suffix.patch zlib-1.3.2-nostrip.patch zlib-1.3.2.tar.xz ----------(Old B)---------- Old:- Modified patches: * 0001-cmake-Fix-pkgconfig-support-on-Windows.patch -> cmake-Fix-pkgconfig-support-on-Windows.patch Old: + Adapt to new cmake versions * zlib-1.2.5-nostrip.patch -> zlib-1.3.2-nostrip.patch + Adapt to new context ----------(Old E)---------- ----------(New B)---------- New:- Modified patches: * 0001-cmake-Fix-pkgconfig-support-on-Windows.patch -> cmake-Fix-pkgconfig-support-on-Windows.patch New:- Added patch: * zlib-1.3.2-no-static-suffix.patch + Do not use "z" suffix for our static library New: + Adapt to new cmake versions * zlib-1.2.5-nostrip.patch -> zlib-1.3.2-nostrip.patch + Adapt to new context ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mingw32-zlib.spec ++++++ --- /var/tmp/diff_new_pack.yZvikA/_old 2026-03-09 16:11:29.573301870 +0100 +++ /var/tmp/diff_new_pack.yZvikA/_new 2026-03-09 16:11:29.597302863 +0100 @@ -1,7 +1,7 @@ # # spec file for package mingw32-zlib # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,27 @@ # +%{_mingw32_package_header_debug} Name: mingw32-zlib -Version: 1.2.13 +Version: 1.3.2 Release: 0 Summary: Zlib compression library License: Zlib Group: Productivity/Archiving/Compression URL: https://www.zlib.net/ -Source: http://www.zlib.net/zlib-%{version}.tar.gz +Source: https://zlib.net/zlib-%{version}.tar.xz Source1000: %{name}-rpmlintrc -Patch0: zlib-1.2.5-nostrip.patch +Patch0: zlib-1.3.2-nostrip.patch Patch1: zlib-1.2.5-tml.patch -Patch2: 0001-cmake-Fix-pkgconfig-support-on-Windows.patch +Patch2: zlib-1.3.2-no-static-suffix.patch +Patch3: cmake-Fix-pkgconfig-support-on-Windows.patch BuildRequires: autoconf BuildRequires: automake -BuildRequires: mingw32-cross-cmake BuildRequires: libtool BuildRequires: mingw32-cross-binutils BuildRequires: mingw32-cross-cmake BuildRequires: mingw32-cross-gcc BuildRequires: xz -%_mingw32_package_header_debug BuildArch: noarch %description @@ -102,28 +102,28 @@ This package contains the libraries and header files needed for developing applications which use minizip. -%_mingw32_debug_package +%{_mingw32_debug_package} %prep %autosetup -p1 -n zlib-%{version} %build P=$(pwd) -%_mingw32_cmake . -DINSTALL_PKGCONFIG_DIR=%{_mingw32_libdir}/pkgconfig -%_mingw32_cmake_build CFLAGS=-shared LDFLAGS=-no-undefined +%{_mingw32_cmake} \ + -DINSTALL_PKGCONFIG_DIR=%{_mingw32_libdir}/pkgconfig +%{_mingw32_cmake_build} CFLAGS=-shared LDFLAGS=-no-undefined cd $P/contrib/minizip autoreconf -fi echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache} -%{_mingw32_configure} +%_mingw32_configure -cp ../../zconf.h.included zconf.h ln -s build/libz.dll.a ../.. -%{_mingw32_make} CFLAGS=-shared LDFLAGS=-no-undefined +%{_mingw32_cmake_build} CFLAGS=-shared LDFLAGS=-no-undefined %install -%_mingw32_cmake_install -%make_install -C contrib/minizip +%{_mingw32_cmake_install} +%{_mingw32_make_install} -C contrib/minizip # for compatibility with older packages ln -sf libz.dll %{buildroot}/%{_mingw32_bindir}/zlib1.dll @@ -141,6 +141,8 @@ %{_mingw32_libdir}/pkgconfig/zlib.pc %{_mingw32_libdir}/pkgconfig/zlib-static.pc %{_mingw32_datadir}/man +%{_mingw32_libdir}/cmake +%{_mingw32_docdir} %files -n mingw32-libminizip1 %{_mingw32_bindir}/libminizip-1.dll ++++++ cmake-Fix-pkgconfig-support-on-Windows.patch ++++++ --- zlib-1.3.2/CMakeLists.txt 2026-03-09 07:41:11.520807769 +0100 +++ zlib-1.3.2/CMakeLists.txt 2026-03-09 09:18:36.148354906 +0100 @@ -111,8 +111,6 @@ HAVE___ATTR__VIS_HIDDEN) unset(CMAKE_COMPILE_FLAGS) -set(ZLIB_PC ${zlib_BINARY_DIR}/zlib.pc) -configure_file(${zlib_SOURCE_DIR}/zlib.pc.cmakein ${ZLIB_PC} @ONLY) configure_file(${zlib_BINARY_DIR}/zconf.h.cmakein ${zlib_BINARY_DIR}/zconf.h) # ============================================================================ @@ -222,6 +222,22 @@ z${zlib_static_suffix}) endif(ZLIB_BUILD_STATIC) +# in the static library pc file we use the whole filename +# to avoid fetching the shared import library name +set(ZLIB_PC_STATIC ${CMAKE_CURRENT_BINARY_DIR}/zlib-static.pc) +get_target_property(static_location zlibstatic OUTPUT_NAME) +get_filename_component(filename "lib${static_location}.a" NAME) +set(PC_LIBS "-Wl,\${libdir}/${filename}") +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zlib.pc.cmakein + ${ZLIB_PC_STATIC} @ONLY) + +# in the shared library pc file we use the regular library name +set(ZLIB_PC ${CMAKE_CURRENT_BINARY_DIR}/zlib.pc) +set(PC_LIBS "-L\${libdir} -L\${sharedlibdir} -lz") +set(PC_CFLAGS -DZLIB_DLL) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zlib.pc.cmakein + ${ZLIB_PC} @ONLY) + if(ZLIB_INSTALL) if(ZLIB_BUILD_SHARED) install( @@ -294,7 +310,7 @@ COMPONENT Docs DESTINATION "${CMAKE_INSTALL_DOCDIR}/zlib") install( - FILES ${ZLIB_PC} + FILES ${ZLIB_PC} ${ZLIB_PC_STATIC} COMPONENT Development DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") endif(ZLIB_INSTALL) --- zlib-1.3.2/zlib.pc.cmakein 2026-03-09 07:41:11.520928911 +0100 +++ zlib-1.3.2/zlib.pc.cmakein 2026-03-09 08:11:54.955474351 +0100 @@ -10,5 +10,5 @@ License: Zlib Requires: -Libs: -L${libdir} -L${sharedlibdir} -lz -Cflags: -I${includedir} +Libs: @PC_LIBS@ +Cflags: -I${includedir} @PC_CFLAGS@ ++++++ zlib-1.3.2-no-static-suffix.patch ++++++ --- zlib-1.3.2/CMakeLists.txt 2026-03-09 07:10:20.977690381 +0100 +++ zlib-1.3.2/CMakeLists.txt 2026-03-09 07:32:10.392133092 +0100 @@ -150,7 +150,7 @@ zutil.c) if(WIN32) - set(zlib_static_suffix "s") + set(zlib_static_suffix "") set(CMAKE_DEBUG_POSTFIX "d") endif(WIN32) ++++++ zlib-1.2.5-nostrip.patch -> zlib-1.3.2-nostrip.patch ++++++ --- /work/SRC/openSUSE:Factory/mingw32-zlib/zlib-1.2.5-nostrip.patch 2020-01-08 17:54:57.817653887 +0100 +++ /work/SRC/openSUSE:Factory/.mingw32-zlib.new.8177/zlib-1.3.2-nostrip.patch 2026-03-09 16:11:27.445213904 +0100 @@ -1,10 +1,26 @@ ---- zlib-1.2.5/win32/Makefile.gcc 2010-04-19 03:35:55.000000000 +0200 -+++ zlib-1.2.5/win32/Makefile.gcc 2010-09-01 14:51:00.000000000 +0200 -@@ -90,7 +90,6 @@ +--- zlib-1.3.2/win32/Makefile.gcc 2026-03-09 07:10:20.989358937 +0100 ++++ zlib-1.3.2/win32/Makefile.gcc 2026-03-09 07:11:44.655412861 +0100 +@@ -90,23 +90,18 @@ $(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o - $(CC) -shared -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \ + $(CC) -shared -static-libgcc -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \ -o $@ win32/zlib.def $(OBJS) $(OBJA) zlibrc.o - $(STRIP) $@ example.exe: example.o $(STATICLIB) $(LD) $(LDFLAGS) -o $@ example.o $(STATICLIB) +- $(STRIP) $@ + + minigzip.exe: minigzip.o $(STATICLIB) + $(LD) $(LDFLAGS) -o $@ minigzip.o $(STATICLIB) +- $(STRIP) $@ + + example_d.exe: example.o $(IMPLIB) + $(LD) $(LDFLAGS) -o $@ example.o $(IMPLIB) +- $(STRIP) $@ + + minigzip_d.exe: minigzip.o $(IMPLIB) + $(LD) $(LDFLAGS) -o $@ minigzip.o $(IMPLIB) +- $(STRIP) $@ + + example.o: test/example.c zlib.h zconf.h + $(CC) $(CFLAGS) -I. -c -o $@ test/example.c
