1 |
commit: 332813b29e4350f990a51934bc7a975794ef4fda |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 22:49:11 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 22:49:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=332813b2 |
7 |
|
8 |
net-libs/srt: fix build with GCC 11 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/787023 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-libs/srt/files/srt-1.4.2-cxx-include-gcc11.patch | 19 +++++++++++++++++++ |
14 |
net-libs/srt/srt-1.4.2.ebuild | 1 + |
15 |
2 files changed, 20 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/srt/files/srt-1.4.2-cxx-include-gcc11.patch b/net-libs/srt/files/srt-1.4.2-cxx-include-gcc11.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..16c57af8092 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/srt/files/srt-1.4.2-cxx-include-gcc11.patch |
22 |
@@ -0,0 +1,19 @@ |
23 |
+https://bugs.gentoo.org/787023 |
24 |
+https://github.com/Haivision/srt/commit/f1b35cbf5b9b42b031e9b119e4c802b5f744468c |
25 |
+ |
26 |
+From f1b35cbf5b9b42b031e9b119e4c802b5f744468c Mon Sep 17 00:00:00 2001 |
27 |
+From: Christophe Giboudeaux <krop@××××××××××××××××××××.com> |
28 |
+Date: Wed, 10 Feb 2021 12:42:45 +0000 |
29 |
+Subject: [PATCH] [core] Fix build with GCC 11. (#1806) |
30 |
+ |
31 |
+The 'limits' header must be included explicitly. |
32 |
+--- a/srtcore/sync.h |
33 |
++++ b/srtcore/sync.h |
34 |
+@@ -15,6 +15,7 @@ |
35 |
+ //#define ENABLE_CXX17 |
36 |
+ |
37 |
+ #include <cstdlib> |
38 |
++#include <limits> |
39 |
+ #ifdef ENABLE_STDCXX_SYNC |
40 |
+ #include <chrono> |
41 |
+ #include <thread> |
42 |
|
43 |
diff --git a/net-libs/srt/srt-1.4.2.ebuild b/net-libs/srt/srt-1.4.2.ebuild |
44 |
index cbade3405e2..de77f27cd91 100644 |
45 |
--- a/net-libs/srt/srt-1.4.2.ebuild |
46 |
+++ b/net-libs/srt/srt-1.4.2.ebuild |
47 |
@@ -34,6 +34,7 @@ RDEPEND="${DEPEND}" |
48 |
|
49 |
PATCHES=( |
50 |
"${FILESDIR}/${PN}-always-GNUInstallDirs.patch" |
51 |
+ "${FILESDIR}/${P}-cxx-include-gcc11.patch" |
52 |
) |
53 |
|
54 |
src_prepare() { |