academic/R: Add patch.

This will enable rstudio-desktop to be built.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2015-06-17 15:58:14 +07:00
parent 8757e30fa6
commit 45e97bb0e4
2 changed files with 16 additions and 2 deletions

View file

@ -25,7 +25,7 @@
PRGNAM=R
VERSION=${VERSION:-3.2.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ "${R_SHLIB:-yes}" = "yes" ]; then
@ -79,7 +79,9 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p0 < $CWD/extern.patch
CFLAG="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \

12
academic/R/extern.patch Normal file
View file

@ -0,0 +1,12 @@
--- src/include/Rinterface.h (revision 66251)
+++ src/include/Rinterface.h (working copy)
@@ -84,7 +84,7 @@
void fpu_setup(Rboolean);
/* in unix/system.c */
-int R_running_as_main_program;
+extern int R_running_as_main_program;
#ifdef CSTACK_DEFNS
/* duplicating Defn.h */