]> git.pld-linux.org Git - packages/rstudio.git/commitdiff
- fix building with boost 1.53+ auto/th/rstudio-0.97.551-1
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 13 Jul 2013 20:26:34 +0000 (22:26 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 13 Jul 2013 20:26:34 +0000 (22:26 +0200)
- updated files

boost-1.53.patch [new file with mode: 0644]
rstudio.spec

diff --git a/boost-1.53.patch b/boost-1.53.patch
new file mode 100644 (file)
index 0000000..3d7ad40
--- /dev/null
@@ -0,0 +1,60 @@
+diff -ur rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/AsyncServer.hpp rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/AsyncServer.hpp
+--- rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/AsyncServer.hpp    2013-05-11 11:43:04.000000000 +0200
++++ rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/AsyncServer.hpp     2013-07-13 22:18:04.870033356 +0200
+@@ -264,7 +264,7 @@
+          
+          // convert to cannonical HttpConnection
+          boost::shared_ptr<AsyncConnection> pAsyncConnection =
+-             boost::shared_static_cast<AsyncConnection>(pConnection);
++             boost::dynamic_pointer_cast<AsyncConnection>(pConnection);
+          // call the appropriate handler to generate a response
+          std::string uri = pRequest->uri();
+diff -ur rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp
+--- rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp 2013-05-11 11:43:04.000000000 +0200
++++ rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp  2013-07-13 22:18:08.176727065 +0200
+@@ -87,7 +87,7 @@
+       boost::shared_ptr<AsyncClient<boost::asio::local::stream_protocol::socket> >
+                                     ptrShared = shared_from_this();
+-      return boost::shared_static_cast<LocalStreamAsyncClient>(ptrShared);
++      return boost::dynamic_pointer_cast<LocalStreamAsyncClient>(ptrShared);
+    }
+ private:
+diff -ur rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/TcpIpAsyncClient.hpp rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/TcpIpAsyncClient.hpp
+--- rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/TcpIpAsyncClient.hpp       2013-05-11 11:43:04.000000000 +0200
++++ rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/TcpIpAsyncClient.hpp        2013-07-13 22:18:08.960066805 +0200
+@@ -74,7 +74,7 @@
+       boost::shared_ptr<AsyncClient<boost::asio::ip::tcp::socket> > ptrShared
+                                                 = shared_from_this();
+-      return boost::shared_static_cast<TcpIpAsyncClient>(ptrShared);
++      return boost::dynamic_pointer_cast<TcpIpAsyncClient>(ptrShared);
+    }
+ private:
+diff -ur rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/TcpIpAsyncClientSsl.hpp rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/TcpIpAsyncClientSsl.hpp
+--- rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/TcpIpAsyncClientSsl.hpp    2013-05-11 11:43:04.000000000 +0200
++++ rstudio-rstudio-ca19c52/src/cpp/core/include/core/http/TcpIpAsyncClientSsl.hpp     2013-07-13 22:18:09.616738848 +0200
+@@ -109,7 +109,7 @@
+       boost::shared_ptr<AsyncClient<boost::asio::ssl::stream<boost::asio::ip::tcp::socket> > > ptrShared
+                                                  = shared_from_this();
+-      return boost::shared_static_cast<TcpIpAsyncClientSsl>(ptrShared);
++      return boost::dynamic_pointer_cast<TcpIpAsyncClientSsl>(ptrShared);
+    }
+    virtual bool isShutdownError(const boost::system::error_code& ec)
+diff -ur rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/session/http/SessionHttpConnectionListenerImpl.hpp rstudio-rstudio-ca19c52/src/cpp/session/http/SessionHttpConnectionListenerImpl.hpp
+--- rstudio-rstudio-ca19c52.orig/src/rstudio-rstudio-ca19c52/src/cpp/session/http/SessionHttpConnectionListenerImpl.hpp        2013-05-11 11:43:04.000000000 +0200
++++ rstudio-rstudio-ca19c52/src/cpp/session/http/SessionHttpConnectionListenerImpl.hpp 2013-07-13 22:18:10.206743669 +0200
+@@ -256,7 +256,7 @@
+    {
+       // convert to cannonical HttpConnection
+       boost::shared_ptr<HttpConnection> ptrHttpConnection =
+-            boost::shared_static_cast<HttpConnection>(ptrConnection);
++            boost::dynamic_pointer_cast<HttpConnection>(ptrConnection);
+       if (!authenticate(ptrHttpConnection))
+       {
index 000c6e6296fdb9bc6f31377a123ddfcdb2eeb894..4df58a9bbbc4029ba3c6c319548252ef22cd8f37 100644 (file)
@@ -15,6 +15,7 @@ Source3:      https://s3.amazonaws.com/rstudio-buildtools/mathjax-20.zip
 # Source3-md5: 480ede551eeffec08162a7a913eee906
 Source4:       https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip
 # Source4-md5: 0e03798b8e53096c4a906bde05e32378
+Patch0:                boost-1.53.patch
 URL:           http://rstudio.org/
 BuildRequires: QtWebKit-devel
 BuildRequires: QtXmlPatterns-devel
@@ -34,6 +35,7 @@ or Linux) or even over the web using RStudio Server.
 
 %prep
 %setup -q -n %{name}-%{name}-ca19c52
+%patch0 -p1
 mkdir -p src/gwt/lib/gwt
 mkdir -p src/gwt/lib/gin/1.5
 unzip -qq %{SOURCE1} -d src/gwt/lib/gwt
@@ -73,6 +75,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/%{name}
 %{_libdir}/%{name}/R
 %dir %{_libdir}/%{name}/bin
+%attr(755,root,root) %{_libdir}/%{name}/bin/diagnostics
 %attr(755,root,root) %{_libdir}/%{name}/bin/r*
 %dir %{_libdir}/%{name}/bin/postback
 %attr(755,root,root) %{_libdir}/%{name}/bin/postback/*
This page took 0.154241 seconds and 4 git commands to generate.