-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[breakpad] update to 2023.01.27 #34273
Conversation
c5aae52
to
f98d6c7
Compare
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.
Has the new patch been submitted upstream?
f98d6c7
to
b462494
Compare
@BillyONeal the code has been completely reworked upstream to remove the usage of mkstemp and fix multiple compilation issues. However no newer tagged release with this refactor exists. |
98936ee
to
e20274e
Compare
Pushed to fix another compilation error in the tools feature, zlib is now required to build it |
e20274e
to
0c20456
Compare
ports/breakpad/CMakeLists.txt
Outdated
@@ -1,7 +1,9 @@ | |||
cmake_minimum_required(VERSION 3.8) | |||
project(breakpad CXX) | |||
|
|||
set(CMAKE_CXX_STANDARD 11) | |||
include(CMakeFindDependencyMacro) |
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.
This goes in the installed config, not in Breakpad's cmakelists.txt
(CMakeLists.txt
says find_package(args args args REQUIRED)
, and it installs a breakpad-config.cmake
or similar that says find_dependency(the same args args args but not required)
. This makes sure after find_package(breakpad REQUIRED)
in a downstream dependency, the target ZLIB::ZLIB
exists so that the target dump_syms
depends on targets that actually exist. The port zyre
is an example (although what it does with vcpkg-cmake-wrapper.cmake
would not be had that port not been authored 4 years ago :) ))
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've tried to add this based on other port files. Let me know if I got it right.
0c20456
to
6029909
Compare
@liamwhite Please merge this PR to master. :) |
66546fe
to
d2ef324
Compare
d2ef324
to
e8b71cf
Compare
I asked for help from other maintainers. |
It turns out, the file in question got picked up with a GLOB, so it shouldn't have been listed with that target at all. |
src/common/linux/crc32.cc | ||
src/common/linux/dump_symbols.cc | ||
src/common/linux/elf_symbols_to_module.cc | ||
src/common/linux/elfutils.cc | ||
src/common/linux/file_id.cc | ||
src/common/linux/linux_libc_support.cc | ||
src/common/linux/memory_mapped_file.cc | ||
src/common/linux/safe_readlink.cc |
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.
These are already in libbreakpad_client from line 64 and therefore don't also need to be added to dump_syms.
* [breakpad] update to 2023.01.27 * Fix the CMakeFindDependencyMacro part. * Attach zlib to where the glob happens, and remove duplicate cpp files from dump_syms. * Zlib is an unconditional dependency on Linux --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Fixes #34264
./vcpkg x-add-version --all
and committing the result.