Skip to content

root: make rootcint and genreflex available again#437927

Merged
veprbl merged 2 commits intoNixOS:masterfrom
guitargeek:root_apfelgrid_fix
Oct 31, 2025
Merged

root: make rootcint and genreflex available again#437927
veprbl merged 2 commits intoNixOS:masterfrom
guitargeek:root_apfelgrid_fix

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

@guitargeek guitargeek commented Aug 28, 2025

The mechanism to install these binaries as hard links to rootcling was quite fragile. This commit suggests to just build them as separate CMake targets instead.

This fixes the compilation of applgrid, apfelgrid, and xfitter reported in #424032 (comment)

FYI @veprbl

Upstream commit to ROOT:

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Aug 28, 2025
@nix-owners nix-owners bot requested a review from veprbl August 28, 2025 14:31
Copy link
Copy Markdown
Member

@veprbl veprbl 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 looking into this. Would be nice to see this adopted upstream.

@@ -135,6 +135,8 @@ stdenv.mkDerivation rec {
hash = "sha256-D7LZWJnGF9DtKcM8EF3KILU81cqTcZolW+HMe3fmXTw=";
revert = true;
})
# Will also be integrated to ROOT 6.38.00
./Build-rootcint-and-genreflex-as-separate-targets.patch
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please use fetchpatch2, it should be fine to refer to a commit within unmerged upstream PR by sha.

+
+# To inherit the dependencies from rootcling
+add_dependencies(genreflex rootcling)
+add_dependencies(rootcint rootcint)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There was a comment about this upstream. We can fetchpatch updated version instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah cool! Yes that's true. Sorry I forgot about the upstream PR, I'll follow up there

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The upstream commit has been merged!

But sorry, fetchpatch can't be used, because of merge conflicts in the commit when trying to apply it to the 6.36 release.

The mechanism to install these binaries as hard links to `rootcling`
was quite fragile. This commit suggests to just build them as separate
CMake targets instead.

This fixes the compilation of `applgrid, `apfelgrid`, and `xfitter`
reported in NixOS#424032 (comment)
This commit is analogous to 4ae54c3, which did the same change to
`gfal2`.
@guitargeek
Copy link
Copy Markdown
Contributor Author

@veprbl, the upstream commit to ROOT was now merged. Locally, I can build applgrid, apfelgrid, and xfitter again with this PR, which also includes the required minimum CMake version patch to xfitter.

Is this PR okay for you now? Thanks for reviewing!

@nixpkgs-ci nixpkgs-ci bot removed the 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. label Oct 22, 2025
@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Oct 22, 2025
@guitargeek
Copy link
Copy Markdown
Contributor Author

@veprbl, can this be merged? Thanks!

@veprbl veprbl added this pull request to the merge queue Oct 31, 2025
Merged via the queue into NixOS:master with commit 2935c65 Oct 31, 2025
31 of 32 checks passed
@guitargeek guitargeek deleted the root_apfelgrid_fix branch November 1, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants