summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2020-02-16 09:31:11 -0500
committerGitHub <noreply@github.com>2020-02-16 08:31:11 -0600
commit8071369ffe693696320f9f70894ead35adae06f8 (patch)
tree4512c9817fe7a2b2066d4e18306f6a0893ef3d43
parentb9156895ec77c4f4858bcb84cbdfe731ceaef602 (diff)
downloadspack-8071369ffe693696320f9f70894ead35adae06f8.tar.gz
spack-8071369ffe693696320f9f70894ead35adae06f8.tar.bz2
spack-8071369ffe693696320f9f70894ead35adae06f8.tar.xz
spack-8071369ffe693696320f9f70894ead35adae06f8.zip
Use separate build directory for gzip (#14994)
* Use separate build directory for gzip At least on mac systems (perhaps because of a case sensitivity issue?) gzip fails to build inside the source tree: ``` config.status: linking /var/folders/fy/x2xtwh1n7fn0_0q2kk29xkv9vvmbqb/T/spack-stage/s3j/spack-stage-gzip-1.10-iatwtuk2l5xgwmuh4pwu5bf27yezpydj/spack-src/GNUmakefile to GNUmakefile config.status: executing depfiles commands ==> Executing phase: 'build' ==> [2020-02-14-09:32:45.502913] 'make' '-j12' 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. ``` * Simplify build directory and add gmake dependency
-rw-r--r--var/spack/repos/builtin/packages/gzip/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gzip/package.py b/var/spack/repos/builtin/packages/gzip/package.py
index 7a99424c3b..81295fab7a 100644
--- a/var/spack/repos/builtin/packages/gzip/package.py
+++ b/var/spack/repos/builtin/packages/gzip/package.py
@@ -13,3 +13,8 @@ class Gzip(AutotoolsPackage):
url = "https://ftp.gnu.org/gnu/gzip/gzip-1.10.tar.gz"
version('1.10', sha256='c91f74430bf7bc20402e1f657d0b252cb80aa66ba333a25704512af346633c68')
+
+ depends_on('gmake', type='build')
+
+ # Gzip makes a recursive symlink if built in-source
+ build_directory = 'spack-build'