octopus: split netcdf-c and netcdf-fortran dependency#40685
Merged
michaelkuhn merged 1 commit intospack:developfrom Oct 27, 2023
Merged
octopus: split netcdf-c and netcdf-fortran dependency#40685michaelkuhn merged 1 commit intospack:developfrom
michaelkuhn merged 1 commit intospack:developfrom
Conversation
Member
|
I would guess the dependency currently on main, written as depends_on("netcdf-fortran ^netcdf-c+mpi", when="+netcdf")is not 'legal' or not compatible with some change in Spack's dependency solver. Splitting this into two separate lines (as done in this PR) such as: depends_on("netcdf-c+mpi", when="+netcdf")
depends_on("netcdf-fortran", when="+netcdf")should be equivalent, and works. |
fangohr
approved these changes
Oct 24, 2023
Member
fangohr
left a comment
There was a problem hiding this comment.
This is a bugfix: the version of the Octopus package currently in Spack does not build with the devel branch of Spack.
It would be good to merge this soon (certainly before the next spack release).
michaelkuhn
approved these changes
Oct 27, 2023
Member
michaelkuhn
left a comment
There was a problem hiding this comment.
I was able to reproduce the problem and confirm the PR fixes the problem.
victoria-cherkas
pushed a commit
to victoria-cherkas/spack
that referenced
this pull request
Oct 30, 2023
RikkiButler20
pushed a commit
to RikkiButler20/spack
that referenced
this pull request
Nov 2, 2023
gabrielctn
pushed a commit
to gabrielctn/spack
that referenced
this pull request
Nov 24, 2023
This was referenced Nov 29, 2023
mtaillefumier
pushed a commit
to mtaillefumier/spack
that referenced
this pull request
Dec 14, 2023
iamashwin99
added a commit
to fangohr/octopus-in-spack
that referenced
this pull request
Mar 17, 2024
Includes changes from : - spack/spack#41747 - spack/spack#41003 - spack/spack#41919 - spack/spack#40685 - Add hash for octopus 14 and Update BerkeleyGW dependency version in Octopus package #101 ( done at octopus: Support new version octopus@14 spack/spack#43160) push changes in Disable gdlib #90 (done at octopus: disable gdlib by default spack/spack#43161) - include new maintainer spack/spack#43163
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spack cant spec octopus with the latest develop:
This does work on the latest stable release.
@fangohr at fangohr/octopus-in-spack#96 found out by trial and error that it is due to the netcdf-c and netcdf-fortran dependency definition.
and the following works:
This MR splits the two dependencies and makes the spec command work.
I am not sure why this broke to begin with and if this is really the best solution. Perhaps someone from the spack team can help here?