summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2022-05-25 15:48:05 -0400
committerGitHub <noreply@github.com>2022-05-25 12:48:05 -0700
commit14d4203722daf3abd56a2b6c880214a1338e289f (patch)
tree65cd5375273a16a535a9a349c02978e467161145
parent1bc742c13ee89e7b48602a5a022e6bbfd7b231ee (diff)
downloadspack-14d4203722daf3abd56a2b6c880214a1338e289f.tar.gz
spack-14d4203722daf3abd56a2b6c880214a1338e289f.tar.bz2
spack-14d4203722daf3abd56a2b6c880214a1338e289f.tar.xz
spack-14d4203722daf3abd56a2b6c880214a1338e289f.zip
sed: fix recursive symlink (#30849)
Use `spack build` as build dir to avoid recursive link error. ``` config.status: linking /var/folders/fy/x2xtwh1n7fn0_0q2kk29xkv9vvmbqb/T/s3j/spack-stage/spack-stage-sed-4.8-wraqsot6ofzvr3vrgusx4mj4mya5xfux/spack-src/GNUmakefile to GNUmakefile config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile ==> sed: Executing phase: 'build' ==> [2022-05-25-14:15:51.310333] 'make' '-j8' 'V=1' make: GNUmakefile: Too many levels of symbolic links make: stat: GNUmakefile: Too many levels of symbolic links make: *** No rule to make target `GNUmakefile'. Stop. ```
-rw-r--r--var/spack/repos/builtin/packages/sed/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sed/package.py b/var/spack/repos/builtin/packages/sed/package.py
index 12f190e604..cd57901c74 100644
--- a/var/spack/repos/builtin/packages/sed/package.py
+++ b/var/spack/repos/builtin/packages/sed/package.py
@@ -16,6 +16,9 @@ class Sed(AutotoolsPackage, GNUMirrorPackage):
version('4.8', sha256='f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633')
version('4.2.2', sha256='f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7')
+ # Avoid symlinking GNUMakefile to GNUMakefile
+ build_directory = 'spack-build'
+
executables = ['^sed$']
def url_for_version(self, version):