qt: patch missing includes when +opengl %gcc@10:#19963
Merged
sethrj merged 3 commits intospack:developfrom Nov 18, 2020
Merged
Conversation
Closed
4 tasks
Contributor
|
Excellent, this looks like it might conflict with/replace/supplement #19948 which was also submitted very recently? |
Contributor
Author
|
I didn't encounter issues with jp2 (might be related to other variants) but the other parts are indeed solving the same problem. |
sethrj
approved these changes
Nov 18, 2020
Contributor
|
With the upstream bug report linked and the extended version range, I'm going to merge this before #19948 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
With gcc-10,
[email protected]+openglfails withThe offending file,
convert.cpp, is inqtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/util/convert/and the error is caused by a missing#include "stdint.h".This has been reported upstream and resolved in [email protected]. That bug report includes the patch included here to allows a specific qtlocation 3rd party plugin (which is only used when
+opengl) to compile with gcc-10.I tested that this patch applies cleanly against [email protected] through the most recent version, [email protected] at this time. The patch is set to apply for [email protected]:5.15 since 5.16 has the fix upstream. Before [email protected] other patches fail to apply (
qt5-12-configure.patchfails against [email protected]), and spack never gets to trying to apply this new patch. mapbox-gl-native was added in [email protected], so before then the patch should not apply. The conflict excludes potentially problematic compiles instead of addressing the hypothetical of someone running gcc-10 but wanting a specific older version of qt.I tested that [email protected] and [email protected] both build fine with [email protected] with this patch, but didn't explicitly build any versions in between (qt is a fairly big compile...).
Maintainer tag: @sethrj