-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[qt5-base] no _debug lib suffixes on macOS (#14225) #21695
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
BillyONeal
merged 9 commits into
microsoft:master
from
autoantwort:qt5-base-no-absolute2
Dec 16, 2021
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
87a1c35
[qt5-base] no _debug lib suffixes on macOS (#14225)
autoantwort 586bdff
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal cb7d456
[qt5-base] patch qt5-base to remove _debug postfix on osx
autoantwort 55a3b9c
Apply suggestions from code review
autoantwort c42f145
[qt5-base] create link to _debug.pc file from .pc file without _debug
autoantwort 66c197a
Merge branch 'master' into qt5-base-no-absolute2
autoantwort d44174d
update version
autoantwort 40525d1
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal 33211b6
[qt5-base] create forward pkgconfig file
autoantwort 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
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.
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.
Symlinks do not survive binary caching. It may make sense to create a new pc file that just requires the other one?
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.
It is a hard link...
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.
OK, that survives binary caching but still seems like it may cause a lot of duplicate settings from pkgconfig to leak into others?
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.
What do you mean?
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.
More specifically on whether or not to have the file: I am unaware of any other case where the debug mode .pc file would have a different name than the release build .pc file. In general this seems extremely suspect and I would prefer to avoid any possible downstream issues coming from sometimes having this .pc and sometimes missing it.
If we can find a consumer that actually expects
_debug.pcfiles separate from the normal.pcfiles, then I'd be more amenable to consider this nonstandard behavior.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.
Ok, then I will simply rename the file instead of creating a copy
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.
All other Qt modules expect that:
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 think you need to find the pkg_config_output_name in the pri files somewhere or also patch
Requires:for the qt pkg-config files. The Qt5*_debug.pc stuff should never be used by downstream consumers. (and is probably also not expected.)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.
Hmm, if Qt is wanting it internally then I can see it being more trouble than value to try to patch it all the way out. Instead, I think we should then always provide both
.pcfilenames.I think it would also be better to create the "alternate" using pkg-config's existing mechanisms to forward instead of symlinks/copying. Something like:
It should be easy to just string match the "Version:" line from the existing file and include it in the forwarder.
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 have added this forwarding pkgconfig file now.