summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2020-02-28 15:52:41 -0800
committerGitHub <noreply@github.com>2020-02-28 17:52:41 -0600
commit53f4db938ff3f2b2090569f7537480f4c69f1be5 (patch)
tree647ded364f3b4d1cf54064a2a7e302ff573c0416 /var
parentc10fb2a97451d9ac429da680bb3a419ab7f1d809 (diff)
downloadspack-53f4db938ff3f2b2090569f7537480f4c69f1be5.tar.gz
spack-53f4db938ff3f2b2090569f7537480f4c69f1be5.tar.bz2
spack-53f4db938ff3f2b2090569f7537480f4c69f1be5.tar.xz
spack-53f4db938ff3f2b2090569f7537480f4c69f1be5.zip
Update tree for v1.8.0 (#15272)
- add version info for v1.8.0 - v1.8.0 adds a new source file, `file.c`, which need to be included in our hardcoded list of objects to link. I discovered this while demonstrating "how easy it is to add a new package to Spack", only to scratch my head when it failed `spack install` but worked when I ran `make` in the stage dir. Finally looked at tree/package.py and it All Became Clear. Perhaps someone should rewrite this to use MakefilePackage, but the Makefile starts off with a bunch of twisty turny "uncomment these lines to run on this platform", so it might not be worth it.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/tree/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tree/package.py b/var/spack/repos/builtin/packages/tree/package.py
index c3823d313c..3f3e480969 100644
--- a/var/spack/repos/builtin/packages/tree/package.py
+++ b/var/spack/repos/builtin/packages/tree/package.py
@@ -18,6 +18,7 @@ class Tree(Package):
homepage = "http://mama.indstate.edu/users/ice/tree/"
url = "http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz"
+ version('1.8.0', sha256='715d5d4b434321ce74706d0dd067505bb60c5ea83b5f0b3655dae40aa6f9b7c2')
version('1.7.0', sha256='6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12')
def install(self, spec, prefix):
@@ -30,6 +31,10 @@ class Tree(Package):
'hash.o',
'color.o'
]
+ # version 1.8.0 added file.c
+ if spec.version >= Version('1.8.0'):
+ objs.append('file.o')
+
if (sys.platform == 'darwin'):
objs.append('strverscmp.o')