Skip to content

votca-csg doesn't concertize  #13831

@junghans

Description

@junghans
$ spack spec votca-csg
Input spec
--------------------------------
votca-csg

Concretized
--------------------------------
==> Error: An unsatisfiable version constraint has been detected for spec:

    votca-tools


while trying to concretize the partial spec:

    votca-csg@1.5.1%gcc@9.2.0 build_type=RelWithDebInfo arch=linux-gentoo2-ivybridge
        ^cmake@3.15.5%gcc@9.2.0~doc+ncurses+openssl+ownlibs~qt arch=linux-gentoo2-ivybridge
            ^ncurses
                ^pkgconfig
            ^openssl
                ^perl@5.14.0:
                    ^gdbm
                        ^readline
                ^zlib@1.2.11%gcc@9.2.0+optimize+pic+shared arch=linux-gentoo2-ivybridge
        ^gromacs@2019.4%gcc@9.2.0 build_type=RelWithDebInfo ~cuda~double~double_precision~mdrun_only~mpi+openmp~plumed+rdtscp+shared simd=auto arch=linux-gentoo2-ivybridge
            ^fftw@3.3.8%gcc@9.2.0+mpi~openmp~pfft_patches precision=double,float arch=linux-gentoo2-ivybridge
                ^mpi
        ^hdf5@1.10.5%gcc@9.2.0~cxx~debug~fortran~hl~mpi+pic+shared~szip~threadsafe arch=linux-gentoo2-ivybridge
        ^votca-tools


votca-csg requires votca-tools version , but spec asked for 

Remove all version before 1.5.1 helps:

diff --git a/var/spack/repos/builtin/packages/votca-csg/package.py b/var/spack/repos/builtin/packages/votca-csg/package.py
index feadf4081..5a2f47bf0 100644
--- a/var/spack/repos/builtin/packages/votca-csg/package.py
+++ b/var/spack/repos/builtin/packages/votca-csg/package.py
@@ -21,12 +21,9 @@ class VotcaCsg(CMakePackage):

     version('develop', branch='master')
     version('1.5.1', sha256='7fca1261bd267bf38d2edd26259730fed3126c0c3fd91fb81940dbe17bb568fd')
-    version('1.5', sha256='160387cdc51f87dd20ff2e2eed97086beee415d48f3c92f4199f6109068c8ff4')
-    version('1.4.1', sha256='41dccaecadd0165c011bec36a113629e27745a5a133d1a042efe4356acdb5450')
-    version('1.4', sha256='c13e7febd792de8c3d426203f089bd4d33b8067f9db5e8840e4579c88b61146e')

     depends_on("cmake@2.8:", type='build')
-    for v in ["1.4", "1.4.1", "1.5", "1.5.1", "develop"]:
+    for v in ["1.5.1", "develop"]:
         depends_on('votca-tools@%s' % v, when="@%s" % v)
     depends_on("gromacs~mpi@5.1:")
     depends_on("hdf5~mpi")

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions