Repository: spack/spack

Issue:
Installation issue: r-htmltools
### Steps to reproduce the issue

Installing `r-htmltools` from a clean clone fails with the error
```
$ spack install r-htmltools
...
==> Installing r-htmltools-0.5.2-pgipdb3eiibfku3grgn4zm5qkfgqgxu5
==> No binary for r-htmltools-0.5.2-pgipdb3eiibfku3grgn4zm5qkfgqgxu5 found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/7d/7dc7d50436e5a82a5801f85bcd2f572a06a98b4027d71aa17b4854ec9b2767fb.tar.gz
==> No patches needed for r-htmltools
==> r-htmltools: Executing phase: 'install'
==> Error: ProcessError: Command exited with status 1:
    '$spack/opt/spack/linux-fedora32-haswell/gcc-11.2.0/r-4.1.1-up7j3kivm3fksnex4btu3qgchw6lr3fh/bin/R' '--vanilla' 'CMD' 'INSTALL' '--library=$spack/opt/spack/linux-fedora32-haswell/gcc-11.2.0/r-htmltools-0.5.2-pgipdb3eiibfku3grgn4zm5qkfgqgxu5/rlib/R/library' '$spack-stage/spack-stage-r-htmltools-0.5.2-pgipdb3eiibfku3grgn4zm5qkfgqgxu5/spack-src'

1 error found in build log:
     33    $spack/lib/spack/env/gcc/gcc -I"/tmp/spack/opt/spack/linux-fedora32-haswell/gcc-11.2.0/r-4.1.1-up7j3kivm
           3fksnex4btu3qgchw6lr3fh/rlib/R/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2  -c init.c -o init.o
     34    $spack/lib/spack/env/gcc/gcc -I"/tmp/spack/opt/spack/linux-fedora32-haswell/gcc-11.2.0/r-4.1.1-up7j3kivm
           3fksnex4btu3qgchw6lr3fh/rlib/R/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2  -c template.c -o te
           mplate.o
     35    $spack/lib/spack/env/gcc/gcc -shared -L$spack/opt/spack/linux-fedora32-haswell/gcc-11.2.0/r-4.1.1-up
           7j3kivm3fksnex4btu3qgchw6lr3fh/rlib/R/lib -L$spack/opt/spack/linux-fedora32-haswell/gcc-11.2.0/r-4.1.1-u
           p7j3kivm3fksnex4btu3qgchw6lr3fh/rlib/R/lib -Wl,-rpath,$spack/opt/spack/linux-fedora32-haswell/gcc-11.2.0
           /r-4.1.1-up7j3kivm3fksnex4btu3qgchw6lr3fh/rlib/R/lib -o htmltools.so init.o template.o -L$spack/opt/spac
           k/linux-fedora32-haswell/gcc-11.2.0/r-4.1.1-up7j3kivm3fksnex4btu3qgchw6lr3fh/rlib/R/lib -lR
     36    installing to $spack/opt/spack/linux-fedora32-haswell/gcc-11.2.0/r-htmltools-0.5.2-pgipdb3eiibfku3grgn4z
           m5qkfgqgxu5/rlib/R/library/00LOCK-spack-src/00new/htmltools/libs
     37    ** R
     38    ** byte-compile and prepare package for lazy loading
  >> 39    Error: object 'faststack' is not exported by 'namespace:fastmap'
     40    Execution halted
     41    ERROR: lazy loading failed for package 'htmltools'
```



### Information on your system

* **Spack:** 0.17.0-603-a94b4eef79
* **Python:** 3.8.10
* **Platform:** linux-fedora32-haswell
* **Concretizer:** clingo

### Additional information

maintainer: @glennpj

### General information

- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform
- [X] I have run `spack maintainers <name-of-the-package>` and **@mentioned** any maintainers
- [X] I have uploaded the build log and environment files
- [X] I have searched the issues of this repo and believe this is not a duplicate


Discussion:

Resolving patch:
diff --git a/var/spack/repos/builtin/packages/r-fastmap/package.py b/var/spack/repos/builtin/packages/r-fastmap/package.py
--- a/var/spack/repos/builtin/packages/r-fastmap/package.py
+++ b/var/spack/repos/builtin/packages/r-fastmap/package.py
@@ -20,4 +20,5 @@ class RFastmap(RPackage):
     url      = "https://cloud.r-project.org/src/contrib/fastmap_1.0.1.tar.gz"
     list_url = "https://cloud.r-project.org/src/contrib/Archive/fastmap"
 
+    version('1.1.0', sha256='9113e526b4c096302cfeae660a06de2c4c82ae4e2d3d6ef53af6de812d4c822b')
     version('1.0.1', sha256='4778b05dfebd356f8df980dfeff3b973a72bca14898f870e5c40c1d84db9faec')
diff --git a/var/spack/repos/builtin/packages/r-htmltools/package.py b/var/spack/repos/builtin/packages/r-htmltools/package.py
--- a/var/spack/repos/builtin/packages/r-htmltools/package.py
+++ b/var/spack/repos/builtin/packages/r-htmltools/package.py
@@ -25,5 +25,5 @@ class RHtmltools(RPackage):
     depends_on('r-base64enc', when='@0.5.1:', type=('build', 'run'))
     depends_on('r-rlang@0.4.10:', when='@0.5.2:', type=('build', 'run'))
     depends_on('r-rlang', when='@0.5.1:', type=('build', 'run'))
-    depends_on('r-fastmap', when='@0.5.2:', type=('build', 'run'))
+    depends_on('r-fastmap@1.1.0:', when='@0.5.2:', type=('build', 'run'))
     depends_on('r-rcpp', when=' @:0.3.6', type=('build', 'run'))


Test patch: