diff --git a/var/spack/repos/builtin/packages/scotch/package.py b/var/spack/repos/builtin/packages/scotch/package.py index 58bbcd8383..9673fba5e2 100644 --- a/var/spack/repos/builtin/packages/scotch/package.py +++ b/var/spack/repos/builtin/packages/scotch/package.py @@ -50,7 +50,7 @@ class Scotch(Package): variant('metis', default=True, description='Build metis and parmetis wrapper libraries') - depends_on('flex', type='build') + depends_on('flex@:2.6.1', type='build') depends_on('bison', type='build') depends_on('mpi', when='+mpi') depends_on('zlib', when='+compression')