mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
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:
parent
8757e30fa6
commit
45e97bb0e4
2 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
|
@ -81,6 +81,8 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
patch -p0 < $CWD/extern.patch
|
||||
|
||||
CFLAG="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
12
academic/R/extern.patch
Normal file
12
academic/R/extern.patch
Normal 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 */
|
||||
|
Loading…
Reference in a new issue