summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-03-08 16:53:12 -0600
committerGitHub <noreply@github.com>2021-03-08 15:53:12 -0700
commitccc7ed0af9c9f7f0a5c503f97ce41bfaa0ca1631 (patch)
treee382520541e083455dc0a2466fdaf7f7c3ad08c4 /lib
parent68d5f348e5d00cb673bd2ffb4abffc108a2f1e39 (diff)
downloadspack-ccc7ed0af9c9f7f0a5c503f97ce41bfaa0ca1631.tar.gz
spack-ccc7ed0af9c9f7f0a5c503f97ce41bfaa0ca1631.tar.bz2
spack-ccc7ed0af9c9f7f0a5c503f97ce41bfaa0ca1631.tar.xz
spack-ccc7ed0af9c9f7f0a5c503f97ce41bfaa0ca1631.zip
Add `--vanilla` flag to r build system (#22166)
Unlike the other commands of the `R CMD` interface, the `INSTALL` command will read `Renviron` files. This can potentially break builds of r- packages, depending on what is set in the `Renviron` file. This PR adds the `--vanilla` flag to ensure that neither `Rprofile` nor `Renviron` files are read during Spack builds of r- packages.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/r.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/r.py b/lib/spack/spack/build_systems/r.py
index f8553c476b..ac57672a39 100644
--- a/lib/spack/spack/build_systems/r.py
+++ b/lib/spack/spack/build_systems/r.py
@@ -84,6 +84,7 @@ class RPackage(PackageBase):
config_vars = self.configure_vars()
args = [
+ '--vanilla',
'CMD',
'INSTALL'
]