]> git.pld-linux.org Git - packages/rstudio.git/blame - boost1.75.patch
upstream patch to fix build with boost >= 1.75
[packages/rstudio.git] / boost1.75.patch
CommitLineData
c53a063a
JP
1From 0c6a7374b04827f5db97ed9b4f71c9ff14442c6c Mon Sep 17 00:00:00 2001
2From: Jan Marvin Garbuszus <jan.garbuszus@ruhr-uni-bochum.de>
3Date: Sun, 13 Dec 2020 15:09:23 +0100
4Subject: [PATCH] fix building with boost 1.75
5
6---
7 src/cpp/CMakeLists.txt | 1 -
8 src/cpp/core/HtmlUtils.cpp | 3 +++
9 src/cpp/core/file_lock/FileLock.cpp | 3 +++
10 src/cpp/r/session/RStdCallbacks.cpp | 2 ++
11 4 files changed, 8 insertions(+), 1 deletion(-)
12
13diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt
14index 18a951fb832..fb16f75b320 100644
15--- a/src/cpp/CMakeLists.txt
16+++ b/src/cpp/CMakeLists.txt
17@@ -35,7 +35,6 @@ include("${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeGlobals.txt")
18
19 # global directives
20 add_definitions(-DBOOST_ENABLE_ASSERT_HANDLER)
21-add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
22
23 # test directory
24 set(TESTS_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/tests/cpp" CACHE STRING "Test includes")
25diff --git a/src/cpp/core/HtmlUtils.cpp b/src/cpp/core/HtmlUtils.cpp
26index c0ffb19f427..ddd28a008ea 100644
27--- a/src/cpp/core/HtmlUtils.cpp
28+++ b/src/cpp/core/HtmlUtils.cpp
29@@ -19,6 +19,7 @@
30 #include <boost/format.hpp>
31 #include <boost/foreach.hpp>
32 #include <boost/algorithm/string/predicate.hpp>
33+#include <boost/bind/bind.hpp>
34
35 #include <core/Base64.hpp>
36 #include <core/FileSerializer.hpp>
37@@ -26,6 +27,8 @@
38
39 #include <core/http/Util.hpp>
40
41+using namespace boost::placeholders;
42+
43 namespace rstudio {
44 namespace core {
45 namespace html_utils {
46diff --git a/src/cpp/core/file_lock/FileLock.cpp b/src/cpp/core/file_lock/FileLock.cpp
47index 4495ca02c89..11e444acbe0 100644
48--- a/src/cpp/core/file_lock/FileLock.cpp
49+++ b/src/cpp/core/file_lock/FileLock.cpp
50@@ -27,7 +27,10 @@
51 #include <core/http/SocketUtils.hpp>
52
53 #include <boost/algorithm/string.hpp>
54+#include <boost/bind/bind.hpp>
55
56+using namespace boost::placeholders;
57+
58 namespace rstudio {
59 namespace core {
60
61--- rstudio-1.1.143/src/cpp/r/session/RSession.cpp.orig 2017-04-12 00:42:14.000000000 +0200
62+++ rstudio-1.1.143/src/cpp/r/session/RSession.cpp 2021-08-11 09:52:23.269455446 +0200
63@@ -18,6 +18,7 @@
64
65 #include <iostream>
66
67+#include <boost/bind/bind.hpp>
68 #include <boost/regex.hpp>
69 #include <boost/algorithm/string/predicate.hpp>
70 #include <boost/algorithm/string/replace.hpp>
71@@ -74,6 +74,8 @@
72 // constants for graphics scratch subdirectory
73 #define kGraphicsPath "graphics"
74
75+using namespace boost::placeholders;
76+
77 using namespace rstudio::core ;
78
79 namespace rstudio {
This page took 0.066218 seconds and 4 git commands to generate.