Fix R-devel build on OpenSUSE
More details: https://stat.ethz.ch/pipermail/r-devel/2023-February/082304.html https://stat.ethz.ch/pipermail/r-devel/2023-February/082315.html
This commit is contained in:
parent
dd1a91547f
commit
e57ed87fae
1 changed files with 39 additions and 0 deletions
|
|
@ -64,6 +64,14 @@ fetch_r_source() {
|
|||
rm /tmp/R-${1}.tar.gz
|
||||
}
|
||||
|
||||
patch_r() {
|
||||
cd /tmp/R-${1}
|
||||
|
||||
if [ -f "/patches/R-${1}.patch" ]; then
|
||||
patch -p1 < "/patches/R-${1}.patch"
|
||||
fi
|
||||
}
|
||||
|
||||
# compile_r() - $1 as r version
|
||||
compile_r() {
|
||||
cd /tmp/R-${1}
|
||||
|
|
@ -207,6 +215,7 @@ _version_is_less_than() {
|
|||
###### RUN R COMPILE PROCEDURE ######
|
||||
set_up_environment
|
||||
fetch_r_source $R_VERSION
|
||||
patch_r $R_VERSION
|
||||
compile_r $R_VERSION
|
||||
package_r $R_VERSION
|
||||
archive_r
|
||||
|
|
|
|||
Loading…
Reference in a new issue