diff --git a/gnu/local.mk b/gnu/local.mk index 2559ca26ad9..2335f4a0c6e 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1647,8 +1647,9 @@ dist_patch_DATA = \ %D%/packages/patches/jfsutils-gcc-compat.patch \ %D%/packages/patches/jfsutils-include-systypes.patch \ %D%/packages/patches/john-the-ripper-jumbo-with-gcc-11.patch \ - %D%/packages/patches/json-c-0.13-CVE-2020-12762.patch \ %D%/packages/patches/json-c-0.12-CVE-2020-12762.patch \ + %D%/packages/patches/json-c-0.13-CVE-2020-12762.patch \ + %D%/packages/patches/jsonnet-include-cstdint-for-gcc-13-builds.patch \ %D%/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch \ %D%/packages/patches/julia-Use-MPFR-4.2.patch \ %D%/packages/patches/komikku-python-3.11-compat.patch \ diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 279c6cb1b19..aee75b1c36d 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -3167,6 +3167,7 @@ of reading and writing XML.") (sha256 (base32 "1ddz14699v5lqx3dh0mb7hfffr6fk5zhmzn3z8yxkqqvriqnciim")) (modules '((guix build utils))) + (patches (search-patches "jsonnet-include-cstdint-for-gcc-13-builds.patch")) (snippet #~(begin (rename-file "third_party/md5" ".md5") diff --git a/gnu/packages/patches/jsonnet-include-cstdint-for-gcc-13-builds.patch b/gnu/packages/patches/jsonnet-include-cstdint-for-gcc-13-builds.patch new file mode 100644 index 00000000000..49f3566e8f1 --- /dev/null +++ b/gnu/packages/patches/jsonnet-include-cstdint-for-gcc-13-builds.patch @@ -0,0 +1,28 @@ +From e43ca8e958d129094bec58fe06a87be1358aaf42 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?W=C3=81NG=20Xu=C4=9Bru=C3=AC?= + <1175567+xen0n@users.noreply.github.com> +Date: Wed, 19 Oct 2022 11:15:43 +0800 +Subject: [PATCH] Add #include for gcc-13 builds (#1020) + +See https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes. + +This fixes Gentoo bug https://bugs.gentoo.org/875569. +--- + include/libjsonnet++.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/libjsonnet++.h b/include/libjsonnet++.h +index b744b31..ed14f31 100644 +--- a/include/libjsonnet++.h ++++ b/include/libjsonnet++.h +@@ -17,6 +17,7 @@ limitations under the License. + #ifndef CPP_JSONNET_H_ + #define CPP_JSONNET_H_ + ++#include + #include + #include + #include +-- +2.51.0 +