Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/rstudio/files/, sci-mathematics/rstudio/
Date: Fri, 11 Jun 2021 18:34:44
Message-Id: 1623436473.f6bde9a800ea09a38d7e0fab20ee1379bf339a89.pacho@gentoo
1 commit: f6bde9a800ea09a38d7e0fab20ee1379bf339a89
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 11 18:25:07 2021 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 11 18:34:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6bde9a8
7
8 sci-mathematics/rstudio: Fix build with boost-1.76.0
9
10 Thanks-to: Dmitry S. Kulyabov
11 Package-Manager: Portage-3.0.19, Repoman-3.0.3
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13
14 .../files/rstudio-1.3.1093-boost-1.76.patch | 55 ++++++++++++++++++++++
15 sci-mathematics/rstudio/rstudio-1.3.1093.ebuild | 2 +
16 2 files changed, 57 insertions(+)
17
18 diff --git a/sci-mathematics/rstudio/files/rstudio-1.3.1093-boost-1.76.patch b/sci-mathematics/rstudio/files/rstudio-1.3.1093-boost-1.76.patch
19 new file mode 100644
20 index 00000000000..5e832db2883
21 --- /dev/null
22 +++ b/sci-mathematics/rstudio/files/rstudio-1.3.1093-boost-1.76.patch
23 @@ -0,0 +1,55 @@
24 +--- rstudio-1.3.1093-orig/src/cpp/r/session/RStdCallbacks.cpp
25 ++++ rstudio-1.3.1093/src/cpp/r/session/RStdCallbacks.cpp
26 +@@ -19,7 +19,7 @@
27 +
28 + #include <boost/function.hpp>
29 + #include <boost/regex.hpp>
30 +-#include <boost/bind.hpp>
31 ++#include <boost/bind/bind.hpp>
32 +
33 + #include <r/RExec.hpp>
34 + #include <r/ROptions.hpp>
35 +@@ -58,6 +58,7 @@ __declspec(dllimport) SA_TYPE SaveAction
36 + }
37 +
38 + using namespace rstudio::core;
39 ++using namespace boost::placeholders;
40 +
41 + namespace rstudio {
42 + namespace r {
43 +--- rstudio-1.3.1093-orig/src/cpp/core/HtmlUtils.cpp.orig
44 ++++ rstudio-1.3.1093/src/cpp/core/HtmlUtils.cpp
45 +@@ -19,13 +19,15 @@
46 +
47 + #include <boost/format.hpp>
48 + #include <boost/algorithm/string/predicate.hpp>
49 +-#include <boost/bind.hpp>
50 ++#include <boost/bind/bind.hpp>
51 +
52 + #include <core/Base64.hpp>
53 + #include <core/FileSerializer.hpp>
54 + #include <core/RegexUtils.hpp>
55 +
56 + #include <core/http/Util.hpp>
57 ++
58 ++using namespace boost::placeholders;
59 +
60 + namespace rstudio {
61 + namespace core {
62 +--- rstudio-1.3.1093-orig/src/cpp/core/file_lock/FileLock.cpp.orig
63 ++++ rstudio-1.3.1093/src/cpp/core/file_lock/FileLock.cpp
64 +@@ -26,10 +26,12 @@
65 + #include <core/system/Environment.hpp>
66 +
67 + #include <boost/algorithm/string.hpp>
68 +-#include <boost/bind.hpp>
69 ++#include <boost/bind/bind.hpp>
70 +
71 + // borrowed from SessionConstants.hpp
72 + #define kRStudioSessionRoute "RSTUDIO_SESSION_ROUTE"
73 ++
74 ++using namespace boost::placeholders;
75 +
76 + namespace rstudio {
77 + namespace core {
78 +
79 \ No newline at end of file
80
81 diff --git a/sci-mathematics/rstudio/rstudio-1.3.1093.ebuild b/sci-mathematics/rstudio/rstudio-1.3.1093.ebuild
82 index 4fee0074c08..851ffef54c9 100644
83 --- a/sci-mathematics/rstudio/rstudio-1.3.1093.ebuild
84 +++ b/sci-mathematics/rstudio/rstudio-1.3.1093.ebuild
85 @@ -95,6 +95,7 @@ PATCHES=(
86 "${FILESDIR}"/${PN}-1.2.5042-boost-1.73.0.patch
87 "${FILESDIR}"/${PN}-1.3.1056-R-4.0.0.patch
88 "${FILESDIR}"/${PN}-1.3.1056-boost-1.74.0.patch
89 + "${FILESDIR}"/${PN}-1.3.1093-boost-1.76.patch
90 )
91
92 src_unpack() {
93 @@ -177,6 +178,7 @@ src_configure() {
94 -DRSTUDIO_TARGET=$(usex dedicated "Server" "$(usex server "Development" "Desktop")")
95 -DRSTUDIO_VERIFY_R_VERSION=FALSE
96 -DRSTUDIO_USE_SYSTEM_BOOST=TRUE
97 + -DRSTUDIO_BOOST_SIGNALS_VERSION=2
98 )
99
100 if use !dedicated; then