-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Concretizer chooses build dep that doesn't satisfy all packages #27835
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingconcretizationtriageThe issue needs to be prioritizedThe issue needs to be prioritized
Description
Steps to reproduce
The py-jupyter-server package contains the following constraint:
depends_on('[email protected]:1', type=('build', 'run'), when='@1.10.2:')However, this should actually be:
depends_on('[email protected]:0', type=('build', 'run'))If you make this change, you'll be able to reproduce the following issue.
Error message
With the package on its own, the concretizer chooses the right thing:
$ spack spec py-jupyter-server
...
[email protected]%[email protected] arch=darwin-catalina-ivybridge
...
^[email protected]%[email protected] arch=darwin-catalina-ivybridgeHowever, with a package that depends on both, you get an invalid solve:
$ spack spec py-cinemasci
...
^[email protected]%[email protected] arch=darwin-catalina-ivybridge
...
^[email protected]%[email protected] arch=darwin-catalina-ivybridgeThis prevents GitLab CI from building correctly in #27798.
Information on your system
- Spack: 0.17.0-445-f81d84dfc6
- Python: 3.8.12
- Platform: darwin-catalina-ivybridge
- Concretizer: clingo
General information
- I have run
spack debug reportand reported the version of Spack/Python/Platform - I have searched the issues of this repo and believe this is not a duplicate
- I have run the failing commands in debug mode and reported the output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingconcretizationtriageThe issue needs to be prioritizedThe issue needs to be prioritized