1 |
commit: 4f80001703d1300bf35141adcfca5593da5fdb9f |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 6 19:40:17 2021 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 19:40:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f800017 |
7 |
|
8 |
media-sound/snapcast: Apply c++17 patch |
9 |
|
10 |
Thanks to Andreas Sturmlechner for providing the patch link. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/808705 |
13 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
14 |
|
15 |
.../snapcast/files/snapcast-0.25.0-cxx17.patch | 27 ++++++++++++++++++++++ |
16 |
media-sound/snapcast/snapcast-0.25.0-r1.ebuild | 5 +++- |
17 |
2 files changed, 31 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/media-sound/snapcast/files/snapcast-0.25.0-cxx17.patch b/media-sound/snapcast/files/snapcast-0.25.0-cxx17.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..f6797a62f85 |
22 |
--- /dev/null |
23 |
+++ b/media-sound/snapcast/files/snapcast-0.25.0-cxx17.patch |
24 |
@@ -0,0 +1,27 @@ |
25 |
+https://gitlab.exherbo.org/exherbo/media/-/blob/master/packages/net-apps/snapcast/files/snapcast-Set-CMAKE_CXX_STANDARD-to-17.patch |
26 |
+ |
27 |
+From 9858c60109c5d4aa09c26d1cb44be5c056849a36 Mon Sep 17 00:00:00 2001 |
28 |
+From: Heiko Becker <heirecka@×××××××.org> |
29 |
+Date: Fri, 15 Oct 2021 23:55:39 +0200 |
30 |
+Subject: [PATCH] Set CMAKE_CXX_STANDARD to 17 |
31 |
+ |
32 |
+Fixes the build with boost[>=1.77.0] and we shouldn't have compilers |
33 |
+which don't support it. |
34 |
+--- |
35 |
+ CMakeLists.txt | 2 +- |
36 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
37 |
+ |
38 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
39 |
+index 4381a71c..5373f658 100644 |
40 |
+--- a/CMakeLists.txt |
41 |
++++ b/CMakeLists.txt |
42 |
+@@ -127,7 +127,7 @@ if(NOT ANDROID) |
43 |
+ endif() |
44 |
+ |
45 |
+ # Configure compiler options |
46 |
+-set(CMAKE_CXX_STANDARD 14) |
47 |
++set(CMAKE_CXX_STANDARD 17) |
48 |
+ |
49 |
+ # Get arch |
50 |
+ include(${CMAKE_SOURCE_DIR}/cmake/TargetArch.cmake) |
51 |
+ |
52 |
|
53 |
diff --git a/media-sound/snapcast/snapcast-0.25.0-r1.ebuild b/media-sound/snapcast/snapcast-0.25.0-r1.ebuild |
54 |
index 093e6dafcf7..c969b0dbde4 100644 |
55 |
--- a/media-sound/snapcast/snapcast-0.25.0-r1.ebuild |
56 |
+++ b/media-sound/snapcast/snapcast-0.25.0-r1.ebuild |
57 |
@@ -39,7 +39,10 @@ DEPEND=" |
58 |
>=dev-cpp/popl-1.2.0 |
59 |
" |
60 |
|
61 |
-PATCHES=( "${FILESDIR}"/${PN}-0.20.0-gcc-11.patch ) |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}"/${PN}-0.20.0-gcc-11.patch |
64 |
+ "${FILESDIR}"/${P}-cxx17.patch |
65 |
+) |
66 |
|
67 |
src_configure() { |
68 |
local mycmakeargs=( |