Repository navigation
[graf] Patch libAsimage: fp.h is now part of math.h #18240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want to maintain a copy of libpng?
This is not the sustainable fix I think. Wouldn't be the right fix to make sure
libpngis installed on the system, so it doesn't fall back to this builtin libpng?https://github.com/root-project/root/blob/master/cmake/modules/SearchInstalledSoftware.cmake#L453
Maybe @ktf was building ROOT 6.34 on macOS? There, it forced the builtin libpng, but only until I fixed that recently:
I don't think we want to maintain a builtin
libpngon the long term, especially if it starts to not compile with new compilers anymore.In fact, if we really want to be transparent about builtins to our users and make it possible to disable them explicitly, we have to introduce new flags:
builtin_pngbuiltin_gifbuiltin_tiffbuiltin_jpegThen, looking for these dependencies would also benefit from the
fail-on-missingmechanism.The absence of these flag has already confused the Conda people, and they add their own patches to enforce disabling of these builtins:
https://github.com/conda-forge/root-feedstock/blob/main/recipe/0001-Enforce-fail-on-missing-with-afterimage-dependencies.patch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fully agree that the builtins should not be enforced. I can confirm I am building 6.32 on macOS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! That's what I suspected. Ok, let me backport #18074 then to 6.34 and 6.32, and then you should be able to build without problem as long as you have libpng installed on your system and
find_package(PNG)succeeds.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to do the backport for me. We already have a vendored ROOT in ALICE and I can simply add one more patch.