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
Make wxWindow::GetContentScaleFactor() work for GTK3 #1517
Make wxWindow::GetContentScaleFactor() work for GTK3 #1517
Conversation
This is a partial backport of f95fd11.
I'm not sure if we really need to add the new function to |
The obvious I see the last stanza attempts to handle a similar case:
But I don't understand how that can actually work - if it's the last match in this file which wins for a given symbol then that Poking with
So I'm very confused. Is I tried to RTFM but the |
A related question - if a new symbol is versioned, what should I do when backporting the patch to the Debian package? If I leave the version on, it's versioned as |
Version wxWindow::GetContentScaleFactor() as WXU_3.0.5.
I found https://sourceware.org/binutils/docs/ld/VERSION.html#VERSION which seems to be where the man page is meaning to point to. That doesn't seem to say what happens when a symbol matches more than one pattern, except for indicating that
But given this works for existing cases, I guess I'll just copy that and not worry about how or why. |
To answer your question (better late than never...): I think that the version script file is read from top to bottom and so Thanks again! |
Right, but that can't also be true for the |
You're right, and this page confirms it. I'd like to quote it here because this information is really valuable and I don't want to lose it if this page disappears, so here is the relevant excerpt: This is the result:
I've also learned that we could use |
Ah yes, that blog entry is much more helpful.
Yes, though the
But then it also warns against using wildcards in the way wx currently does:
(AIUI all wx's specs are implicitly global.) |
First of all, I have no idea why, but d0ab581 didn't result in this PR being closed. Second, I've checked the output of nm and using demangled symbol names in the version script results in exactly the same version info in the libraries, so I've committed ebb046f which removes the wildcards. Thanks for looking into this! |
I can answer that - see https://help.github.com/en/articles/closing-issues-using-keywords (my emphasis):
So essentially only merging to master will auto-close, because that's the default branch. |
This is a partial backport of f95fd11.