summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/r/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/r/package.py b/var/spack/repos/builtin/packages/r/package.py
index b165645524..7aa60e37ba 100644
--- a/var/spack/repos/builtin/packages/r/package.py
+++ b/var/spack/repos/builtin/packages/r/package.py
@@ -107,8 +107,6 @@ class R(AutotoolsPackage):
url = "https://cloud.r-project.org/src/base"
return url + "/R-%s/R-%s.tar.gz" % (version.up_to(1), version)
- filter_compiler_wrappers("Makeconf", relative_root=os.path.join("rlib", "R", "etc"))
-
@property
def etcdir(self):
return join_path(prefix, "rlib", "R", "etc")
@@ -187,6 +185,9 @@ class R(AutotoolsPackage):
dst_makeconf = join_path(self.etcdir, "Makeconf.spack")
install(src_makeconf, dst_makeconf)
+ # To respect order of execution, we should filter after we made the copy above
+ filter_compiler_wrappers("Makeconf", relative_root=os.path.join("rlib", "R", "etc"))
+
# ========================================================================
# Set up environment to make install easy for R extensions.
# ========================================================================