-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[WPE][GTK] Remove pkg-config use from FindLibBacktrace.cmake #21294
Conversation
EWS run on previous version of this PR (hash 29d445a) |
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.
Some distributions are applying the patch from ianlancetaylor/libbacktrace#92 to add a .pc
file to their libbacktrace packages. I would rather keep a few lines in a .cmake
module file.
Also your commit log does not explain why using pkg-config is an issue. Now, whether we want ENABLE_LIBBACKTRACE=ON
by default or not, that's a different discussion.
What if upstream eventually merges a pkg-config with a different name, say Shame there is no response from upstream in that issue. If Ian was willing to add the pkg-config file, then we wouldn't need to debate this.... |
It looks like this broke a couple API tests. I will figure out how to disable or skip them. |
So, I'm pretty sure we should not depend on a pkg-config file that does not exist upstream. Let's keep that. Do you want me to split this into two pull requests, or is it OK to land all together like this? |
Sure, we can re-add it later if/when upstream ships a
I would leave the option as At the very, very least we want this to be |
I'll edit this pull request tomorrow to only remove the pkg-config stuff and not change the visibility or default value of the build option. (That said, it was me who originally encouraged this to be enabled by default, because I didn't look closely enough into libbacktrace and didn't realize it doesn't have any releases.)
Honestly I have pretty low esteem for backtraces not generated by gdb, but I understand it's been difficult to add nicer core dump handling to the bots, and a libbacktrace backtrace is certainly a lot better than no backtrace. Still, this really seems primarily interesting for bots IMO. Developers should basically always be using gdb. |
29d445a
to
1abc212
Compare
EWS run on current version of this PR (hash 1abc212) |
To be clear: this package doesn't exist in Debian or Fedora, and lacking releases I have no interest in packaging it. So I expect all distros will turn this OFF. I regret suggesting that we should default it to ON. Oh well; we can always change that later, if desired. |
Thanks, that sounds good.
OTOH, building in support for libbacktrace does help lots when using GDB to get a backtrace is not an option. Sometimes we don't have access to the hardware where issues arise, or it's underpowered to run full debug builds, and then having a backtrace with symbols and line numbers is much better than not having anything. It's also useful for release builds with symbols which get deployed to devices, although there we have a overlap with the Breakpad support. |
Oh, I already did this. It's ready for review again. |
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.
r=me, thanks @mcatanzaro
https://bugs.webkit.org/show_bug.cgi?id=265813 Reviewed by Adrian Perez de Castro. libbacktrace upstream does not distribute a pkg-config file. Apparently some downstreams are doing this, but I'm not sure who, because this software is not packaged in major distros like Debian or Fedora. It's not likely to be, because it doesn't have any releases. Let's not attempt to use a downstream-only pkg-config file. If pkg-config support can be upstream, that would be great. * Source/cmake/FindLibBacktrace.cmake: Canonical link: https://commits.webkit.org/272292@main
1abc212
to
0ff5cc8
Compare
Committed 272292@main (0ff5cc8): https://commits.webkit.org/272292@main Reviewed commits have been landed. Closing PR #21294 and removing active labels. |
0ff5cc8
1abc212