summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/spack/setup-env.sh2
-rw-r--r--var/spack/packages/nettle/package.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index b2bcbaf6c7..b90846d28f 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -64,7 +64,7 @@ function spack {
done
# h and V flags don't require further output parsing.
- if [[ "$_sp_flags" =~ *h* || "$_sp_flags" =~ *V* ]]; then
+ if [[ (! -z "$_sp_flags") && ("$_sp_flags" =~ '.*h.*' || "$_sp_flags" =~ '.*V.*') ]]; then
command spack $_sp_flags "$@"
return
fi
diff --git a/var/spack/packages/nettle/package.py b/var/spack/packages/nettle/package.py
index 0f20bc06df..cd600b0b87 100644
--- a/var/spack/packages/nettle/package.py
+++ b/var/spack/packages/nettle/package.py
@@ -9,6 +9,8 @@ class Nettle(Package):
version('2.7', '2caa1bd667c35db71becb93c5d89737f')
+ depends_on('gmp')
+
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
make()