Fix Spark build on Debian 9.
@@ -33,7 +33,8 @@ class bigtop_toolchain::renv {
]
}
/(Ubuntu|Debian)/: {
- if (versioncmp($operatingsystemmajrelease, '18.04') <= 0) {
+ if (($operatingsystem == 'Ubuntu' and versioncmp($operatingsystemmajrelease, '18.04') <= 0) or
+ ($operatingsystem == 'Debian' and versioncmp($operatingsystemmajrelease, '10') < 0)) {
$pkgs = [
"r-base-dev",
"libcairo2-dev",
@@ -59,7 +60,8 @@ class bigtop_toolchain::renv {
# Upgrade R version to 3.6.3 to build Spark 3.0.1 on Ubuntu 16.04 and 18.04
#
# Then Install required R packages dependency
- if ($operatingsystem == 'Ubuntu' and versioncmp($operatingsystemmajrelease, '18.04') <= 0) {
+ if (($operatingsystem == 'Ubuntu' and versioncmp($operatingsystemmajrelease, '18.04') <= 0) or
+ ($operatingsystem == 'Debian' and versioncmp($operatingsystemmajrelease, '10') < 0)) {
$url = "http://cran.r-project.org/src/base/R-3/"
$rfile = "R-3.6.3.tar.gz"
$rdir = "R-3.6.3"
