From 6b9c6811b3325816eddaaa43d4ad7d9a6db9d952 Mon Sep 17 00:00:00 2001 From: laokz Date: Fri, 31 Oct 2025 20:57:00 +0800 Subject: [PATCH] Adapt to gcc14 --- unzip-6.0-support-gcc14-build.patch | 12 ++++++++++++ unzip.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 unzip-6.0-support-gcc14-build.patch diff --git a/unzip-6.0-support-gcc14-build.patch b/unzip-6.0-support-gcc14-build.patch new file mode 100644 index 0000000..c8fdc0c --- /dev/null +++ b/unzip-6.0-support-gcc14-build.patch @@ -0,0 +1,12 @@ +diff --git a/unix/configure b/unix/configure +index edb4502..a1f0c7d 100755 +--- a/unix/configure ++++ b/unix/configure +@@ -419,6 +419,7 @@ $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null + + echo Check for directory libraries + cat > conftest.c << _EOF_ ++#include + int main() { return closedir(opendir(".")); } + _EOF_ + diff --git a/unzip.spec b/unzip.spec index 2cc191a..6c9a94e 100644 --- a/unzip.spec +++ b/unzip.spec @@ -1,6 +1,6 @@ Name: unzip Version: 6.0 -Release: 53 +Release: 54 Summary: A utility for unpacking zip files License: Info-ZIP and Public Domain URL: http://www.info-zip.org/UnZip.html @@ -30,6 +30,7 @@ Patch0021: 0001-Fix-CVE-2016-9844-rhbz-1404283.patch Patch0022: unzip-6.0-timestamp.patch Patch0023: unzip-6.0-cve-2018-1000035-heap-based-overflow.patch Patch0024: unzip-6.0-support-clang-build.patch +Patch0025: unzip-6.0-support-gcc14-build.patch Patch6000: CVE-2018-18384.patch Patch6001: CVE-2019-13232-pre.patch @@ -82,6 +83,9 @@ make check -f unix/Makefile %{_mandir}/man1/* %changelog +* Fri Oct 31 2025 laokz - 6.0-54 +- add support for gcc14 + * Wed Jun 12 2024 yinyongkang - 6.0-53 - license info rectification -- Gitee