Skip to content

openmolcas: fix cmake4 compatibility#449828

Merged
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
markuskowa:fix-molcas
Oct 9, 2025
Merged

openmolcas: fix cmake4 compatibility#449828
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
markuskowa:fix-molcas

Conversation

@markuskowa
Copy link
Member

@markuskowa markuskowa commented Oct 8, 2025

Fix build

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Oct 8, 2025
Copy link
Member

@Sigmanificient Sigmanificient left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, it looks like a fix is already available upstream: Molcas/OpenMolcas@2e3e53d. Can you fetch parts of that commit?

@markuskowa
Copy link
Member Author

Hi, it looks like a fix is already available upstream: Molcas/OpenMolcas@2e3e53d. Can you fetch parts of this commit instead of vendoring?

The upstream fix you cite only applies to the top-level CMake file. The patch applied here fixes the subpackages, that are configured independently. Our "vendored" patch is needed either way.

@markuskowa markuskowa requested a review from sheepforce October 8, 2025 09:15
@Sigmanificient
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 449828
Commit: 5a3f654ccdc8d67b8952c5fbdf306f9a4a49f938 (subsequent changes)
Merge: 0d1a8d0eb3d7f0f405a20d74a4a27831075b3eab

Logs: https://github.com/Sigmanificient/nixpkgs-review-gha/actions/runs/18339430722


x86_64-linux

✅ 1 package built:
  • openmolcas

aarch64-linux

✅ 1 package built:
  • openmolcas

x86_64-darwin

No rebuilds


aarch64-darwin

No rebuilds

Copy link
Member

@sheepforce sheepforce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the QCMaquis build. I assume this will be workaround we will be carrying around for a very long time, as QCMaquis revisions in OpenMolcas haven't been updated for a very long time ...

@sheepforce
Copy link
Member

The patch applied here fixes the subpackages, that are configured independently. Our "vendored" patch is needed either way.

Yes, the patch is required. OpenMolcas builds two subprojects of external code in place and one can not propagate all top level CMake flags to the subprojects. The patch is required anyway to fix the subprojects BLAS+LAPACK detection and now in addition also to fix CMake.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 8, 2025
@markuskowa
Copy link
Member Author

@Sigmanificient are we good to merge this now?

@SuperSandro2000 SuperSandro2000 added this pull request to the merge queue Oct 9, 2025
Merged via the queue into NixOS:master with commit 4bf6ce7 Oct 9, 2025
34 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants