From 9d782c6b2ea27fe59378befaa38b8524bd66cd3b Mon Sep 17 00:00:00 2001 From: Guost123 Date: Mon, 20 Oct 2025 21:06:42 +0800 Subject: [PATCH] fix build error on gcc14 --- fix-build-error-with-gcc14.patch | 12 ++++++++++++ unzip.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 fix-build-error-with-gcc14.patch diff --git a/fix-build-error-with-gcc14.patch b/fix-build-error-with-gcc14.patch new file mode 100644 index 0000000..e188bb1 --- /dev/null +++ b/fix-build-error-with-gcc14.patch @@ -0,0 +1,12 @@ +diff -ruN unzip60/unix/configure unzip60-bak/unix/configure +--- unzip60/unix/configure 2009-04-17 03:25:12.000000000 +0800 ++++ unzip60-bak/unix/configure 2025-10-20 21:04:14.324108500 +0800 +@@ -433,7 +433,7 @@ + if [ ${OPT} ]; then + LFLAGS2="${LFLAGS2} ${OPT}" + else +- CFLAGSR="${CFLAGSR} -DNO_DIR" ++ CFLAGSR="${CFLAGSR}" + fi + fi + diff --git a/unzip.spec b/unzip.spec index 5d7c769..2002fd4 100644 --- a/unzip.spec +++ b/unzip.spec @@ -1,4 +1,4 @@ -%define anolis_release 5 +%define anolis_release 6 Name: unzip Epoch: 1 @@ -73,6 +73,8 @@ Patch33: 33-bugfix-for-CVE-2022-0529.patch #https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1010355;filename=CVE-2022-0530.patch;msg=5 Patch34: CVE-2022-0530.patch +Patch40: fix-build-error-with-gcc14.patch + BuildRequires: make BuildRequires: bzip2-devel, gcc @@ -117,6 +119,9 @@ make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_ %doc README BUGS %changelog +* Mon Oct 20 2025 Shangtong Guo - 1:6.0-6 +- fix build error on gcc 14 + * Tue Sep 23 2025 Hong Wei Qin - 1:6.0-5 - Fix CVE-2022-0530 -- Gitee