···27 ];
2829 patches = [
30- # Trying to use `memset` without declaring it is flagged as an error with clang 16, causing
31- # the `configure` script to incorrectly define `ZMEM`. That causes the build to fail due to
32- # incompatible redeclarations of `memset`, `memcpy`, and `memcmp` in `zip.h`.
33- ./fix-memset-detection.patch
34 # Implicit declaration of `closedir` and `opendir` cause dirent detection to fail with clang 16.
35 ./fix-implicit-declarations.patch
36 # Fixes forward declaration errors with timezone.c
37 ./fix-time.h-not-included.patch
0000000038 (fetchpatch {
39 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-pic.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a";
40 hash = "sha256-OXgC9KqiOpH/o/bSabt3LqtoT/xifqfkvpLLPfPz+1c=";
···27 ];
2829 patches = [
000030 # Implicit declaration of `closedir` and `opendir` cause dirent detection to fail with clang 16.
31 ./fix-implicit-declarations.patch
32 # Fixes forward declaration errors with timezone.c
33 ./fix-time.h-not-included.patch
34+ # Without this patch, we get a runtime failures with GCC 14 when building OpenJDK 8:
35+ #
36+ # zip I/O error: No such file or directory
37+ # zip error: Could not create output file (was replacing the original zip file)
38+ # make[2]: *** [CreateJars.gmk:659: /build/source/build/linux-x86_64-normal-server-release/images/src.zip] Error 1
39+ #
40+ # Source: Debian
41+ ./12-fix-build-with-gcc-14.patch
42 (fetchpatch {
43 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-pic.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a";
44 hash = "sha256-OXgC9KqiOpH/o/bSabt3LqtoT/xifqfkvpLLPfPz+1c=";