From ccc7ed0af9c9f7f0a5c503f97ce41bfaa0ca1631 Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Mon, 8 Mar 2021 16:53:12 -0600 Subject: 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. --- lib/spack/spack/build_systems/r.py | 1 + 1 file changed, 1 insertion(+) 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' ] -- cgit v1.2.3-60-g2f50