commit:     d2316f6905026dd1d4e8f400d26f5046bb63b6b1
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Sun May  2 20:46:55 2021 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Sun May  2 20:47:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2316f69

sys-devel/llvm-roc: Fix missing include

Fixes building with GCC 11

Closes: https://bugs.gentoo.org/787569
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 .../files/llvm-roc-4.1.0-fix-missing-include.patch  | 21 +++++++++++++++++++++
 sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild            |  1 +
 sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild            |  1 +
 3 files changed, 23 insertions(+)

diff --git a/sys-devel/llvm-roc/files/llvm-roc-4.1.0-fix-missing-include.patch 
b/sys-devel/llvm-roc/files/llvm-roc-4.1.0-fix-missing-include.patch
new file mode 100644
index 00000000000..4914ba2e7f9
--- /dev/null
+++ b/sys-devel/llvm-roc/files/llvm-roc-4.1.0-fix-missing-include.patch
@@ -0,0 +1,21 @@
+From b498303066a63a203d24f739b2d2e0e56dca70d1 Mon Sep 17 00:00:00 2001
+From: serge-sans-paille <[email protected]>
+Date: Tue, 10 Nov 2020 14:55:25 +0100
+Subject: [PATCH] [nfc] Fix missing include
+
+---
+ llvm/utils/benchmark/src/benchmark_register.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/utils/benchmark/src/benchmark_register.h 
b/llvm/utils/benchmark/src/benchmark_register.h
+index 0705e219f2fa2..4caa5ad4da079 100644
+--- a/utils/benchmark/src/benchmark_register.h
++++ b/utils/benchmark/src/benchmark_register.h
+@@ -1,6 +1,7 @@
+ #ifndef BENCHMARK_REGISTER_H
+ #define BENCHMARK_REGISTER_H
+ 
++#include <limits>
+ #include <vector>
+ 
+ #include "check.h"

diff --git a/sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild 
b/sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild
index 1f4d2b60580..e571fd4ca56 100644
--- a/sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild
+++ b/sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild
@@ -24,6 +24,7 @@ S="${WORKDIR}/llvm-project-rocm-${PV}/llvm"
 
 PATCHES=(
        "${FILESDIR}/${PN}-3.7.0-current_pos.patch"
+       "${FILESDIR}/${PN}-4.1.0-fix-missing-include.patch"
 )
 
 CMAKE_BUILD_TYPE=RelWithDebInfo

diff --git a/sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild 
b/sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild
index 1736b1e8810..68df2726a37 100644
--- a/sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild
+++ b/sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild
@@ -24,6 +24,7 @@ S="${WORKDIR}/llvm-project-rocm-${PV}/llvm"
 
 PATCHES=(
        "${FILESDIR}/${PN}-3.7.0-current_pos.patch"
+       "${FILESDIR}/${PN}-4.1.0-fix-missing-include.patch"
 )
 
 CMAKE_BUILD_TYPE=RelWithDebInfo

Reply via email to