Skip to content

Don't discard deps based on conditional requirements#50194

Merged
haampie merged 1 commit intospack:developfrom
alalazo:bugfix/conditional-deps-input-analysis
Apr 25, 2025
Merged

Don't discard deps based on conditional requirements#50194
haampie merged 1 commit intospack:developfrom
alalazo:bugfix/conditional-deps-input-analysis

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Apr 24, 2025

fixes #50167

If a requirement cannot be met on the current platform, and is conditional, the valid search space is restricted to the complement of the conditional.

Therefore, consider only unconditional requirement to discard possible dependencies.

@spackbot-app spackbot-app bot added core PR affects Spack core functionality dependencies new-version tests General test capability(ies) labels Apr 24, 2025
@alalazo alalazo added the bugfix Something wasn't working, here's a fix label Apr 24, 2025
@alalazo alalazo force-pushed the bugfix/conditional-deps-input-analysis branch from f48892d to f7bacd8 Compare April 24, 2025 09:21
fixes spack#50167

If a requirement cannot be met on the current platform,
and is conditional, the valid search space is restricted
to the complement of the conditional.

Therefore, consider only unconditional requirement to
discard possible dependencies.

Signed-off-by: Massimiliano Culpo <[email protected]>
@alalazo alalazo force-pushed the bugfix/conditional-deps-input-analysis branch from f7bacd8 to 59f3b85 Compare April 24, 2025 09:21
@haampie haampie merged commit 3df5a85 into spack:develop Apr 25, 2025
36 checks passed
@alalazo alalazo deleted the bugfix/conditional-deps-input-analysis branch April 25, 2025 07:51
danielsjensen1 added a commit to danielsjensen1/spack that referenced this pull request Apr 26, 2025
* develop: (752 commits)
  mesa: add v23.3.3 and use py-packaging while python>=3.12 (spack#49121)
  gcc: add v15.1.0 (spack#50212)
  draco: add v7.20.0 (spack#49996)
  sgpp: update dependencies and variants (spack#49384)
  input_analysis.py: fix conditional requirements (spack#50194)
  boost: add 1.88.0 (spack#50158)
  mapl: add v2.55.1 (spack#50201)
  mepo: add v2.3.2 (spack#50202)
  py-repligit: add v0.1.1 (spack#50204)
  [package updates] Bump version of cp2k and sirius (spack#50141)
  petsc4py: update ldshared.patch for v3.20.1, and skip for v3.23.1+ (spack#50170)
  namd: add v3.0.1 (spack#50192)
  geomodel: depend on c (spack#49781)
  CompilerAdaptor: add support for opt_flags/debug_flags (spack#50126)
  Add ls alias to spack {compiler, external} (spack#50189)
  covfie: depend on c (spack#50190)
  lua-sol2: add v3.5.0 (spack#49970)
  crtm-fix: fix directory logic (spack#50172)
  py-build: add v1.2.2 (spack#50148)
  py-pillow: fix build (spack#50177)
  ...
teaguesterling pushed a commit to teaguesterling/spack that referenced this pull request May 20, 2025
Fixes a logic bug where a -> b was assumed to imply not a -> not b
in conditional requirements.

Signed-off-by: Massimiliano Culpo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something wasn't working, here's a fix core PR affects Spack core functionality dependencies new-version tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler fails to concretize spec unless concretizing together with dependency

2 participants