This commit is contained in:
Philipp A 2017-04-28 11:26:27 +02:00
parent 1acbf6804b
commit 50e8ab55fb
5 changed files with 56 additions and 15 deletions

View file

@ -1,20 +1,20 @@
pkgbase = rstudio-desktop
pkgdesc = Open source and enterprise-ready professional software for the R community
pkgver = 1.0.136
pkgrel = 2
pkgver = 1.0.143
pkgrel = 1
url = http://www.rstudio.com/
install = rstudio-desktop.install
arch = i686
arch = x86_64
license = AGPL
makedepends = cmake>=2.8
makedepends = boost>=1.50
makedepends = boost>=1.63
makedepends = java-environment
makedepends = apache-ant
makedepends = openssl
makedepends = pam
depends = r>=2.11.1
depends = boost-libs>=1.50
depends = boost-libs>=1.63
depends = pango
depends = shared-mime-info
depends = mathjax
@ -32,16 +32,18 @@ pkgbase = rstudio-desktop
conflicts = rstudio-desktop-preview-bin
noextract = core-dictionaries.zip
noextract = gin-1.5.zip
source = rstudio-1.0.136.tar.gz::https://github.com/rstudio/rstudio/tarball/v1.0.136
source = rstudio-1.0.143.tar.gz::https://github.com/rstudio/rstudio/tarball/v1.0.143
source = https://s3.amazonaws.com/rstudio-buildtools/gin-1.5.zip
source = https://s3.amazonaws.com/rstudio-buildtools/gwt-2.7.0.zip
source = https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip
source = qdatastream.patch
sha256sums = 171fca1211582294b1c43be5cece1d67125f71dc34ea84f2db874d3611a49a83
source = rroutines-style.patch
source = socketproxy-openssl.patch
sha256sums = 8d597da85b007e2cdbd5c5e7e0005907c7672c2f6dd87c8481c27032f6e57705
sha256sums = f561f4eb5d5fe1cff95c881e6aed53a86e9f0de8a52863295a8600375f96ab94
sha256sums = aa65061b73836190410720bea422eb8e787680d7bc0c2b244ae6c9a0d24747b3
sha256sums = 4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494
sha256sums = 3147f02fe9fb557c7dee4d332db9626da4ac4b563ad3d00fc68c6f955afd0a41
sha256sums = b953527f46320d64425f7de257f774d7f354199b7c6a71f126ed467b6e6dd52b
sha256sums = 65b9f9b1f159bbfbcb1544f444e210e58549c0d1c0c6421cf750ce3517088134
pkgname = rstudio-desktop

7
.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
/src/
/pkg/
/*.pkg.tar.xz
/rstudio-*.tar.gz
/gin-*.zip
/gwt-*.zip
/core-dictionaries.zip

View file

@ -2,35 +2,39 @@
# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
# Maintainer: Philipp A. <flying-sheep@web.de>
pkgname=rstudio-desktop
pkgver=1.0.136
pkgver=1.0.143
_gwtver=2.7.0
_ginver=1.5
_clangver=3.6.1
pkgrel=2
pkgrel=1
pkgdesc="Open source and enterprise-ready professional software for the R community"
arch=('i686' 'x86_64')
url="http://www.rstudio.com/"
license=('AGPL')
depends=(
'r>=2.11.1' 'boost-libs>=1.50'
'r>=2.11.1' 'boost-libs>=1.63'
pango shared-mime-info mathjax pandoc clang
qt5-base qt5-declarative qt5-location qt5-sensors qt5-svg qt5-webkit qt5-xmlpatterns
)
makedepends=('cmake>=2.8' 'boost>=1.50' java-environment apache-ant openssl pam)
makedepends=('cmake>=2.8' 'boost>=1.63' java-environment apache-ant openssl pam)
conflicts=('rstudio-desktop-bin' 'rstudio-desktop-git' 'rstudio-desktop-preview-bin')
install=rstudio-desktop.install
source=("rstudio-$pkgver.tar.gz::https://github.com/rstudio/rstudio/tarball/v$pkgver"
"https://s3.amazonaws.com/rstudio-buildtools/gin-$_ginver.zip"
"https://s3.amazonaws.com/rstudio-buildtools/gwt-$_gwtver.zip"
"https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip"
"qdatastream.patch")
"rroutines-style.patch"
"socketproxy-openssl.patch"
)
noextract=('core-dictionaries.zip'
"gin-$_ginver.zip")
sha256sums=('171fca1211582294b1c43be5cece1d67125f71dc34ea84f2db874d3611a49a83'
sha256sums=('8d597da85b007e2cdbd5c5e7e0005907c7672c2f6dd87c8481c27032f6e57705'
'f561f4eb5d5fe1cff95c881e6aed53a86e9f0de8a52863295a8600375f96ab94'
'aa65061b73836190410720bea422eb8e787680d7bc0c2b244ae6c9a0d24747b3'
'4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494'
'3147f02fe9fb557c7dee4d332db9626da4ac4b563ad3d00fc68c6f955afd0a41')
'b953527f46320d64425f7de257f774d7f354199b7c6a71f126ed467b6e6dd52b'
'65b9f9b1f159bbfbcb1544f444e210e58549c0d1c0c6421cf750ce3517088134'
)
_pkgname=rstudio
@ -41,6 +45,12 @@ prepare() {
build() {
cd "$srcdir/$_pkgname-$_pkgname-"*
patch -p 1 -i "$srcdir/rroutines-style.patch"
# problem with openssl-1.1.0. fixed in rstudio-1.1.x:
# https://github.com/rstudio/rstudio/pull/1063/commits/e8c9a7783f3ff44dea2e2464b4bf2904325c72cd
# replicating upstream patch
patch -p 1 -i "$srcdir/socketproxy-openssl.patch"
install -d src/gwt/lib/{gin/$_ginver,gwt/$_gwtver}
cp -r "$srcdir/gin-$_ginver/"* "src/gwt/lib/gin/$_ginver"

10
rroutines-style.patch Normal file
View file

@ -0,0 +1,10 @@
--- a/src/cpp/r/RRoutines.cpp
+++ b/src/cpp/r/RRoutines.cpp
@@ -59,7 +59,6 @@
nullMethodDef.fun = NULL ;
nullMethodDef.numArgs = 0 ;
nullMethodDef.types = NULL;
- nullMethodDef.styles = NULL;
s_cMethods.push_back(nullMethodDef);
pCMethods = &s_cMethods[0];
}

12
socketproxy-openssl.patch Normal file
View file

@ -0,0 +1,12 @@
--- a/src/cpp/core/http/SocketProxy.cpp
+++ b/src/cpp/core/http/SocketProxy.cpp
@@ -148,8 +148,7 @@
#ifndef _WIN32
bool isSslShutdownError(const core::Error& error)
{
- return error.code().category() == boost::asio::error::get_ssl_category() &&
- error.code().value() == ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ);
+ return error.code() == boost::asio::ssl::error::stream_truncated;
}
#else
bool isSslShutdownError(const core::Error& error)