From 5d420544833360b437663ac29b3f010fb89d0f93 Mon Sep 17 00:00:00 2001 From: Olivier Cessenat Date: Fri, 16 Apr 2021 09:17:40 +0200 Subject: [PATCH] octave-optim: more precise dependency constraints (#22909) --- var/spack/repos/builtin/packages/octave-optim/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/octave-optim/package.py b/var/spack/repos/builtin/packages/octave-optim/package.py index 15da59784a..52865115ba 100644 --- a/var/spack/repos/builtin/packages/octave-optim/package.py +++ b/var/spack/repos/builtin/packages/octave-optim/package.py @@ -16,4 +16,6 @@ class OctaveOptim(OctavePackage, SourceforgePackage): version('1.5.2', sha256='7b36033c5581559dc3e7616f97d402bc44dde0dfd74c0e3afdf47d452a76dddf') depends_on('octave-struct@1.0.12:') - extends('octave@3.6.0:') + depends_on('octave-statistics@1.4.0:') + extends('octave@3.6.0:', when='@:1.5.2') + extends('octave@4.0.0:', when='@1.6.1:')