diff --git a/fix-build-error-with-gcc14.patch b/fix-build-error-with-gcc14.patch new file mode 100644 index 0000000000000000000000000000000000000000..e188bb12cfcc0b4d658f9697af13a5c85dbf265f --- /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 5d7c7695c9f88ee67074a60592991af980835e46..2002fd48a325d18c7ba9cc99608b3ff5c46912a2 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