commit:     83c64ad3ecf5c63e3063ba318e86e3c8c8821a21
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May  3 11:26:05 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May  3 11:26:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83c64ad3

dev-lang/ispc: fix build w/ gcc 13

Closes: https://bugs.gentoo.org/895572
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/ispc/files/ispc-1.19.0-gcc13.patch | 27 +++++++++++++++++++++++++++
 dev-lang/ispc/ispc-1.19.0.ebuild            |  1 +
 2 files changed, 28 insertions(+)

diff --git a/dev-lang/ispc/files/ispc-1.19.0-gcc13.patch 
b/dev-lang/ispc/files/ispc-1.19.0-gcc13.patch
new file mode 100644
index 000000000000..e2bae38ae581
--- /dev/null
+++ b/dev-lang/ispc/files/ispc-1.19.0-gcc13.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/895572
+https://github.com/ispc/ispc/commit/ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9
+
+From ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9 Mon Sep 17 00:00:00 2001
+From: Luya Tshimbalanga <l...@fedoraproject.org>
+Date: Tue, 28 Feb 2023 17:20:21 -0800
+Subject: [PATCH] Fix build with GCC 13 and possibly Clang 15
+
+This fix add missing <cstdint> include to handle "uint32_t".
+--- a/src/target_registry.h
++++ b/src/target_registry.h
+@@ -1,5 +1,5 @@
+ /*
+-  Copyright (c) 2019-2021, Intel Corporation
++  Copyright (c) 2019-2023, Intel Corporation
+   All rights reserved.
+ 
+   Redistribution and use in source and binary forms, with or without
+@@ -40,6 +40,7 @@
+ #include "bitcode_lib.h"
+ 
+ #include <bitset>
++#include <cstdint>
+ #include <map>
+ #include <vector>
+ 
+

diff --git a/dev-lang/ispc/ispc-1.19.0.ebuild b/dev-lang/ispc/ispc-1.19.0.ebuild
index c03f574d20cc..df12999e9acb 100644
--- a/dev-lang/ispc/ispc-1.19.0.ebuild
+++ b/dev-lang/ispc/ispc-1.19.0.ebuild
@@ -33,6 +33,7 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.19.0-curses-cmake.patch
+       "${FILESDIR}"/${P}-gcc13.patch
 )
 
 pkg_setup() {

Reply via email to