···2727 ];
28282929 patches = [
3030- # Trying to use `memset` without declaring it is flagged as an error with clang 16, causing
3131- # the `configure` script to incorrectly define `ZMEM`. That causes the build to fail due to
3232- # incompatible redeclarations of `memset`, `memcpy`, and `memcmp` in `zip.h`.
3333- ./fix-memset-detection.patch
3430 # Implicit declaration of `closedir` and `opendir` cause dirent detection to fail with clang 16.
3531 ./fix-implicit-declarations.patch
3632 # Fixes forward declaration errors with timezone.c
3733 ./fix-time.h-not-included.patch
3434+ # Without this patch, we get a runtime failures with GCC 14 when building OpenJDK 8:
3535+ #
3636+ # zip I/O error: No such file or directory
3737+ # zip error: Could not create output file (was replacing the original zip file)
3838+ # make[2]: *** [CreateJars.gmk:659: /build/source/build/linux-x86_64-normal-server-release/images/src.zip] Error 1
3939+ #
4040+ # Source: Debian
4141+ ./12-fix-build-with-gcc-14.patch
3842 (fetchpatch {
3943 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-pic.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a";
4044 hash = "sha256-OXgC9KqiOpH/o/bSabt3LqtoT/xifqfkvpLLPfPz+1c=";