diff options
author | Sam James <sam@gentoo.org> | 2023-05-03 12:26:05 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-03 12:26:05 +0100 |
commit | 83c64ad3ecf5c63e3063ba318e86e3c8c8821a21 (patch) | |
tree | 266e0a803c9ea072fdd8faf1217c7f39a0547ab0 /dev-lang/ispc | |
parent | media-libs/libsdl: Keyword 1.2.60 arm, #905645 (diff) | |
download | gentoo-83c64ad3ecf5c63e3063ba318e86e3c8c8821a21.tar.gz gentoo-83c64ad3ecf5c63e3063ba318e86e3c8c8821a21.tar.bz2 gentoo-83c64ad3ecf5c63e3063ba318e86e3c8c8821a21.zip |
dev-lang/ispc: fix build w/ gcc 13
Closes: https://bugs.gentoo.org/895572
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/ispc')
-rw-r--r-- | dev-lang/ispc/files/ispc-1.19.0-gcc13.patch | 27 | ||||
-rw-r--r-- | dev-lang/ispc/ispc-1.19.0.ebuild | 1 |
2 files changed, 28 insertions, 0 deletions
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 <luya@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() { |