[packages/rstudio] - fix building with boost 1.73 - rel 4

baggins baggins at pld-linux.org
Wed Aug 12 09:37:34 CEST 2020


commit 86ba145496c68af27efdabcdd07054122d2cbe94
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Aug 12 09:37:12 2020 +0200

    - fix building with boost 1.73
    - rel 4

 rstudio-boost.patch | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 rstudio.spec        | 13 +++++++---
 2 files changed, 85 insertions(+), 3 deletions(-)
---
diff --git a/rstudio.spec b/rstudio.spec
index 708e401..e8647df 100644
--- a/rstudio.spec
+++ b/rstudio.spec
@@ -2,7 +2,7 @@ Summary:	IDE for R
 Summary(pl.UTF-8):	IDE dla R
 Name:		rstudio
 Version:	1.1.143
-Release:	3
+Release:	4
 License:	AGPL v3
 Group:		Development/Tools
 Source0:	https://github.com/rstudio/rstudio/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -15,8 +15,6 @@ Source3:	https://s3.amazonaws.com/rstudio-buildtools/gin-1.5.zip
 # Source3-md5:	2409168cc18bf5f341e107e6887fe359
 Source4:	https://s3.amazonaws.com/rstudio-buildtools/mathjax-26.zip
 # Source4-md5:	94fcab0aead8f730cd21e26dcb5a330d
-Source5:	https://s3.amazonaws.com/rstudio-buildtools/pandoc-1.12.4.2.zip
-# Source5-md5:	d0f7e3d23b42cb9d26d2783d659040cf
 Source6:	https://s3.amazonaws.com/rstudio-buildtools/libclang-3.5.zip
 # Source6-md5:	cf1a43d2d6203a765ef16d7b12382c8a
 Source7:	https://s3.amazonaws.com/rstudio-buildtools/libclang-builtin-headers.zip
@@ -124,6 +122,15 @@ mkdir -p dependencies/common/libclang/3.5/linux/x86_64
 ln -s %{_libdir}/libclang.so dependencies/common/libclang/3.5/linux/x86_64/libclang.so
 %endif
 
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \
+      src/cpp/desktop/rstudio-backtrace.sh.in \
+      src/cpp/session/postback/askpass-passthrough \
+      src/cpp/session/postback/rpostback-askpass \
+      src/cpp/session/postback/rpostback-editfile \
+      src/cpp/session/postback/rpostback-gitssh \
+      src/cpp/session/postback/rpostback-pdfviewer \
+      src/cpp/session/r-ldpath.in
+
 %build
 install -d build
 cd build
diff --git a/rstudio-boost.patch b/rstudio-boost.patch
index 9e08627..60a2203 100644
--- a/rstudio-boost.patch
+++ b/rstudio-boost.patch
@@ -721,3 +721,78 @@
  
           // get client identity
           core::system::user::UserIdentity userIdentity;
+--- rstudio-1.1.143/src/cpp/core/FilePath.cpp~	2020-08-12 00:57:08.000000000 +0200
++++ rstudio-1.1.143/src/cpp/core/FilePath.cpp	2020-08-12 00:57:57.852543328 +0200
+@@ -1020,7 +1020,7 @@
+       {
+          // NOTE: The path gets round-tripped through toString/fromString, would
+          //   be nice to have a direct constructor
+-         if (!iterationFunction(itr.level(),
++         if (!iterationFunction(itr.depth(),
+                                 FilePath(BOOST_FS_PATH2STR(itr->path()))))
+          {
+             // end the iteration if requested
+From ea8aa234b48331d34b8002fab58b4b393864e79b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?I=C3=B1aki=20=C3=9Acar?= <iucar at fedoraproject.org>
+Date: Sat, 30 May 2020 15:33:38 +0200
+Subject: [PATCH] boost-173-global-placeholders
+
+---
+ src/cpp/CMakeLists.txt                           | 1 +
+ src/cpp/core/system/PosixChildProcessTracker.cpp | 1 +
+ src/cpp/core/system/PosixOutputCapture.cpp       | 2 ++
+ src/cpp/core/system/PosixSystem.cpp              | 1 +
+ 4 files changed, 5 insertions(+)
+
+diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt
+index af79150..d049524 100644
+--- a/src/cpp/CMakeLists.txt
++++ b/src/cpp/CMakeLists.txt
+@@ -28,6 +28,7 @@ include("${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeGlobals.txt")
+ 
+ # global directives
+ add_definitions(-DBOOST_ENABLE_ASSERT_HANDLER)
++add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
+ 
+ # explicitly do not use new c++ 11 features for websocketpp
+ # they currently do not work with our source
+diff --git a/src/cpp/core/system/PosixChildProcessTracker.cpp b/src/cpp/core/system/PosixChildProcessTracker.cpp
+index 2ee1a81..976da4f 100644
+--- a/src/cpp/core/system/PosixChildProcessTracker.cpp
++++ b/src/cpp/core/system/PosixChildProcessTracker.cpp
+@@ -18,6 +18,7 @@
+ #include <sys/wait.h>
+ 
+ #include <boost/format.hpp>
++#include <boost/bind.hpp>
+ 
+ namespace rstudio {
+ namespace core {
+diff --git a/src/cpp/core/system/PosixOutputCapture.cpp b/src/cpp/core/system/PosixOutputCapture.cpp
+index e531e00..01dedd3 100644
+--- a/src/cpp/core/system/PosixOutputCapture.cpp
++++ b/src/cpp/core/system/PosixOutputCapture.cpp
+@@ -28,6 +28,8 @@
+ 
+ #include <core/system/System.hpp>
+ 
++#include <boost/bind.hpp>
++
+ namespace rstudio {
+ namespace core {
+ namespace system {
+diff --git a/src/cpp/core/system/PosixSystem.cpp b/src/cpp/core/system/PosixSystem.cpp
+index c25cb32..8dae263 100644
+--- a/src/cpp/core/system/PosixSystem.cpp
++++ b/src/cpp/core/system/PosixSystem.cpp
+@@ -23,6 +23,7 @@
+ 
+ #include <boost/foreach.hpp>
+ #include <boost/algorithm/string.hpp>
++#include <boost/bind.hpp>
+ 
+ #include <signal.h>
+ #include <fcntl.h>
+-- 
+2.25.2
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rstudio.git/commitdiff/86ba145496c68af27efdabcdd07054122d2cbe94



More information about the pld-cvs-commit mailing list