summaryrefslogtreecommitdiff
path: root/dev-util/breakpad/files/breakpad-2023.01.27-gentoo.patch
blob: 79d50e288989a003aa5586da57d716558d071feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
--- a/src/common/linux/libcurl_wrapper.h	2022-06-07 21:55:00.387396660 +0200
+++ b/src/common/linux/libcurl_wrapper.h	2022-06-07 21:55:18.450145751 +0200
@@ -36,7 +36,7 @@
 #include <map>
 
 #include "common/using_std_string.h"
-#include "third_party/curl/curl.h"
+#include <curl/curl.h>
 
 namespace google_breakpad {
 
--- a/src/common/linux/http_upload.cc	2022-06-07 21:53:55.505298529 +0200
+++ b/src/common/linux/http_upload.cc	2022-06-07 21:54:17.944986506 +0200
@@ -30,7 +30,7 @@
 
 #include <assert.h>
 #include <dlfcn.h>
-#include "third_party/curl/curl.h"
+#include <curl/curl.h>
 
 namespace {
 
--- a/src/processor/disassembler_x86.h	2022-06-08 08:41:45.569686249 +0200
+++ b/src/processor/disassembler_x86.h	2022-06-08 08:42:09.049377873 +0200
@@ -42,7 +42,7 @@
 #include "google_breakpad/common/breakpad_types.h"
 
 namespace libdis {
-#include "third_party/libdisasm/libdis.h"
+#include <libdis.h>
 }
 
 namespace google_breakpad {
--- a/Makefile.am	2022-06-08 08:51:35.221948155 +0200
+++ b/Makefile.am	2022-06-08 08:53:21.679551745 +0200
@@ -176,7 +176,6 @@
 
 lib_LIBRARIES += src/libbreakpad.a
 pkgconfig_DATA += breakpad.pc
-noinst_LIBRARIES += src/third_party/libdisasm/libdisasm.a
 
 ## Programs
 bin_PROGRAMS += \
@@ -944,7 +943,7 @@
 	src/processor/stackwalker_x86.o \
 	src/processor/symbolic_constants_win.o \
 	src/processor/tokenize.o \
-	src/third_party/libdisasm/libdisasm.a \
+	-ldisasm \
 	$(TEST_LIBS) \
 	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
 
@@ -967,7 +966,7 @@
 	$(AM_CPPFLAGS) $(TEST_CFLAGS)
 src_processor_disassembler_x86_unittest_LDADD = \
 	src/processor/disassembler_x86.o \
-	src/third_party/libdisasm/libdisasm.a \
+	-ldisasm \
 	$(TEST_LIBS) \
 	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
 
@@ -1074,7 +1073,7 @@
 	src/processor/stackwalker_x86.o \
 	src/processor/symbolic_constants_win.o \
 	src/processor/tokenize.o \
-	src/third_party/libdisasm/libdisasm.a \
+	-ldisasm \
 	$(TEST_LIBS) \
 	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
 
@@ -1104,7 +1103,7 @@
 src_processor_proc_maps_linux_unittest_LDADD = \
 	src/processor/logging.o \
 	src/processor/pathname_stripper.o \
-	src/third_party/libdisasm/libdisasm.a \
+	-ldisasm \
 	$(TEST_LIBS) \
 	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
 
@@ -1405,7 +1404,7 @@
 	src/processor/stackwalker_sparc.o \
 	src/processor/stackwalker_x86.o \
 	src/processor/tokenize.o \
-	src/third_party/libdisasm/libdisasm.a
+	-ldisasm
 
 src_processor_minidump_stackwalk_SOURCES = \
 	src/processor/minidump_stackwalk.cc
@@ -1448,7 +1448,7 @@
 	src/processor/stackwalker_x86.o \
 	src/processor/symbolic_constants_win.o \
 	src/processor/tokenize.o \
-	src/third_party/libdisasm/libdisasm.a
+	-ldisasm
 
 ## Additional files to be included in a source distribution
 ##
--- a/src/processor/exploitability_win.cc	2022-06-08 08:59:44.437471336 +0200
+++ b/src/processor/exploitability_win.cc	2022-06-08 09:00:04.061210421 +0200
@@ -43,7 +43,7 @@
 #include "processor/disassembler_x86.h"
 #include "processor/logging.h"
 
-#include "third_party/libdisasm/libdis.h"
+#include <libdis.h>
 
 namespace google_breakpad {
 
--- a/src/processor/disassembler_x86_unittest.cc	2022-06-08 10:30:23.370615114 +0200
+++ b/src/processor/disassembler_x86_unittest.cc	2022-06-08 10:30:44.003341412 +0200
@@ -30,7 +30,7 @@
 
 #include "breakpad_googletest_includes.h"
 #include "processor/disassembler_x86.h"
-#include "third_party/libdisasm/libdis.h"
+#include <libdis.h>
 
 namespace {
 
--- a/src/common/module.cc	2023-11-09 06:57:57.891443802 +0100
+++ b/src/common/module.cc	2023-11-09 06:58:16.688120866 +0100
@@ -42,6 +42,7 @@
 #include <iostream>
 #include <memory>
 #include <utility>
+#include <algorithm>
 
 namespace google_breakpad {