Skip to content

Commit 700c394

Browse files
passgatarnout
authored andcommitted
package/grpc: update the patches to be applied with fuzz 0
Commit 8f88a64 ("support/scripts/apply-patches.sh: set the maximum fuzz factor to 0") reduced the fuzz factor. Due to this change, grpc fails to build with output: Applying 0003-host-grpc-only-cpp-plugin.patch using patch: patching file CMakeLists.txt Hunk #2 succeeded at 567 (offset 8 lines). Hunk buildroot#3 succeeded at 580 (offset 7 lines). Hunk #4 succeeded at 1315 (offset 79 lines). Hunk buildroot#5 succeeded at 1368 (offset 79 lines). Hunk buildroot#6 FAILED at 1462. Hunk #7 succeeded at 2515 (offset 131 lines). Hunk #8 succeeded at 2631 (offset 107 lines). Hunk buildroot#9 succeeded at 3117 (offset 186 lines). Hunk buildroot#10 succeeded at 3202 (offset 198 lines). Hunk buildroot#11 succeeded at 3654 (offset 172 lines). Hunk #12 succeeded at 3909 (offset 184 lines). Hunk #13 succeeded at 4203 (offset 158 lines). Hunk buildroot#14 succeeded at 4263 (offset 158 lines). Hunk buildroot#15 succeeded at 4347 (offset 158 lines). Hunk #16 FAILED at 4281. Hunk #17 succeeded at 11110 (offset -143 lines). Hunk #18 succeeded at 11140 (offset -143 lines). Hunk #19 succeeded at 23153 (offset 3325 lines). Hunk buildroot#20 succeeded at 23250 (offset 3325 lines). 2 out of 20 hunks FAILED -- saving rejects to file CMakeLists.txt.rej This commit refreshes the package patch on the current package version. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
1 parent 1907ae8 commit 700c394

File tree

2 files changed

+31
-29
lines changed

2 files changed

+31
-29
lines changed

.checkpackageignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,6 @@ package/gpsd/S50gpsd Shellcheck lib_sysv.Indent lib_sysv.Variables
700700
package/gptfdisk/0001-gptcurses-partially-revert-Tweaks-for-building-on-th.patch lib_patch.Upstream
701701
package/graphite2/0001-don-t-install-a-libtool-file-with-static-library.patch lib_patch.Upstream
702702
package/grpc/0002-wrap_memcpy.cc-add-GPR_DISABLE_WRAPPED_MEMCPY.patch lib_patch.Upstream
703-
package/grpc/0003-host-grpc-only-cpp-plugin.patch lib_patch.Upstream
704703
package/grpc/0004-disable-unconditionally-downloading-api-repos.patch lib_patch.Upstream
705704
package/gstreamer1/gstd/0001-Don-t-require-gstd-check-user-xenv.sh-for-systemd-se.patch lib_patch.Upstream
706705
package/guile/0001-calculate-csqrt_manually.patch lib_patch.Upstream
Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From a1922eadfc87da3dd221ff631f94ddd4a8ee7049 Mon Sep 17 00:00:00 2001
1+
From 0f2c73b62bdc612f9d5cdd8e0c765995470d4f8b Mon Sep 17 00:00:00 2001
22
From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
33
Date: Tue, 25 May 2021 14:55:23 +0200
44
Subject: [PATCH] Add option to restrict building of (host-)grpc to
@@ -7,19 +7,19 @@ Subject: [PATCH] Add option to restrict building of (host-)grpc to
77
This avoids unnecessary dependencies on big packages like libabseil-cpp and
88
others.
99

10-
Upstream-status: not accepted (see https://github.com/grpc/grpc/issues/25322)
10+
Upstream: not accepted (see https://github.com/grpc/grpc/issues/25322)
1111

1212
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
1313
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
1414

1515
Updated for 1.48.0:
1616
Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
1717
---
18-
CMakeLists.txt | 43 +++++++++++++++++++++++++++++++++++--------
19-
1 file changed, 35 insertions(+), 8 deletions(-)
18+
CMakeLists.txt | 39 +++++++++++++++++++++++++++++++++++----
19+
1 file changed, 35 insertions(+), 4 deletions(-)
2020

2121
diff --git a/CMakeLists.txt b/CMakeLists.txt
22-
index d3963b074b..51cef83141 100644
22+
index 0dcae6b1aee5..57b3963a43b0 100644
2323
--- a/CMakeLists.txt
2424
+++ b/CMakeLists.txt
2525
@@ -49,12 +49,16 @@ option(gRPC_BUILD_TESTS "Build tests" OFF)
@@ -39,7 +39,7 @@ index d3963b074b..51cef83141 100644
3939
set(gRPC_INSTALL ${gRPC_INSTALL_default} CACHE BOOL
4040
"Generate installation target")
4141

42-
@@ -555,6 +559,8 @@ add_custom_target(plugins
42+
@@ -563,6 +567,8 @@ add_custom_target(plugins
4343
DEPENDS ${_gRPC_PLUGIN_LIST}
4444
)
4545

@@ -48,7 +48,7 @@ index d3963b074b..51cef83141 100644
4848
add_custom_target(tools_c
4949
DEPENDS
5050
)
51-
@@ -567,6 +573,8 @@ add_custom_target(tools_cxx
51+
@@ -574,6 +580,8 @@ add_custom_target(tools_cxx
5252
add_custom_target(tools
5353
DEPENDS tools_c tools_cxx)
5454

@@ -57,15 +57,15 @@ index d3963b074b..51cef83141 100644
5757
protobuf_generate_grpc_cpp_with_import_path_correction(
5858
src/proto/grpc/channelz/channelz.proto src/proto/grpc/channelz/channelz.proto
5959
)
60-
@@ -1228,6 +1236,7 @@ if(gRPC_BUILD_TESTS)
60+
@@ -1307,6 +1315,7 @@ if(gRPC_BUILD_TESTS)
6161
DEPENDS buildtests_c buildtests_cxx)
6262
endif()
6363

6464
+if (NOT gRPC_BUILD_PLUGIN_SUPPORT_ONLY)
6565

6666
add_library(address_sorting
6767
third_party/address_sorting/address_sorting.c
68-
@@ -1280,6 +1289,8 @@ if(gRPC_INSTALL)
68+
@@ -1359,6 +1368,8 @@ if(gRPC_INSTALL)
6969
)
7070
endif()
7171

@@ -74,16 +74,16 @@ index d3963b074b..51cef83141 100644
7474
if(gRPC_BUILD_TESTS)
7575

7676
add_library(end2end_tests
77-
@@ -1451,6 +1462,8 @@ endforeach()
77+
@@ -1512,6 +1523,8 @@ target_link_libraries(end2end_tests
7878

7979
endif()
8080

8181
+if(NOT gRPC_BUILD_PLUGIN_SUPPORT_ONLY)
8282
+
8383
add_library(gpr
84-
src/core/ext/upb-generated/google/protobuf/any.upb.c
85-
src/core/ext/upb-generated/google/rpc/status.upb.c
86-
@@ -2373,6 +2386,8 @@ if(gRPC_INSTALL)
84+
src/core/lib/gpr/alloc.cc
85+
src/core/lib/gpr/atm.cc
86+
@@ -2504,6 +2517,8 @@ if(gRPC_INSTALL)
8787
)
8888
endif()
8989

@@ -92,7 +92,7 @@ index d3963b074b..51cef83141 100644
9292
if(gRPC_BUILD_TESTS)
9393

9494
add_library(grpc_test_util
95-
@@ -2511,6 +2526,8 @@ endif()
95+
@@ -2618,6 +2633,8 @@ endif()
9696

9797
endif()
9898

@@ -101,7 +101,7 @@ index d3963b074b..51cef83141 100644
101101
add_library(grpc_unsecure
102102
src/core/ext/filters/census/grpc_context.cc
103103
src/core/ext/filters/channel_idle/channel_idle_filter.cc
104-
@@ -2916,6 +2933,8 @@ if(gRPC_INSTALL)
104+
@@ -3102,6 +3119,8 @@ if(gRPC_INSTALL)
105105
)
106106
endif()
107107

@@ -110,7 +110,7 @@ index d3963b074b..51cef83141 100644
110110
if(gRPC_BUILD_TESTS)
111111

112112
if(gRPC_BUILD_CODEGEN)
113-
@@ -2987,6 +3006,8 @@ endif()
113+
@@ -3185,6 +3204,8 @@ endif()
114114

115115
endif()
116116

@@ -119,15 +119,15 @@ index d3963b074b..51cef83141 100644
119119
add_library(grpc++
120120
src/core/ext/transport/binder/client/binder_connector.cc
121121
src/core/ext/transport/binder/client/channel_create.cc
122-
@@ -3463,6 +3484,7 @@ if(gRPC_INSTALL)
122+
@@ -3635,6 +3656,7 @@ if(gRPC_INSTALL)
123123
)
124124
endif()
125125

126126
+endif() # gRPC_BUILD_PLUGIN_SUPPORT_ONLY
127127

128128
if(gRPC_BUILD_CODEGEN)
129129
add_library(grpc++_reflection
130-
@@ -3705,6 +3727,8 @@ target_link_libraries(grpc++_test_util
130+
@@ -3889,6 +3911,8 @@ target_link_libraries(grpc++_test_util
131131

132132
endif()
133133

@@ -136,15 +136,15 @@ index d3963b074b..51cef83141 100644
136136
add_library(grpc++_unsecure
137137
src/cpp/client/channel_cc.cc
138138
src/cpp/client/client_callback.cc
139-
@@ -4023,6 +4047,7 @@ if(gRPC_INSTALL)
139+
@@ -4181,6 +4205,7 @@ if(gRPC_INSTALL)
140140
)
141141
endif()
142142

143143
+endif() # gRPC_BUILD_PLUGIN_SUPPORT_ONLY
144144

145145
add_library(grpc_plugin_support
146146
src/compiler/cpp_generator.cc
147-
@@ -4082,7 +4107,7 @@ foreach(_hdr
147+
@@ -4240,7 +4265,7 @@ foreach(_hdr
148148
endforeach()
149149

150150

@@ -153,7 +153,7 @@ index d3963b074b..51cef83141 100644
153153
install(TARGETS grpc_plugin_support EXPORT gRPCTargets
154154
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
155155
BUNDLE DESTINATION ${gRPC_INSTALL_BINDIR}
156-
@@ -4166,6 +4191,8 @@ endif()
156+
@@ -4324,6 +4349,8 @@ endif()
157157

158158
endif()
159159

@@ -162,16 +162,16 @@ index d3963b074b..51cef83141 100644
162162
add_library(upb
163163
third_party/upb/third_party/utf8_range/naive.c
164164
third_party/upb/third_party/utf8_range/range2-neon.c
165-
@@ -4256,6 +4283,8 @@ target_link_libraries(gen_hpack_tables
166-
gpr
167-
)
165+
@@ -4393,6 +4420,8 @@ if(gRPC_INSTALL)
166+
)
167+
endif()
168168

169169
+endif() # gRPC_BUILD_PLUGIN_SUPPORT_ONLY
170170
+
171171

172172
if(gRPC_BUILD_TESTS)
173173

174-
@@ -11228,7 +11257,7 @@ target_link_libraries(grpc_cli
174+
@@ -11085,7 +11114,7 @@ target_link_libraries(grpc_completion_queue_test
175175

176176

177177
endif()
@@ -180,7 +180,7 @@ index d3963b074b..51cef83141 100644
180180

181181
add_executable(grpc_cpp_plugin
182182
src/compiler/cpp_plugin.cc
183-
@@ -11258,7 +11287,7 @@ target_link_libraries(grpc_cpp_plugin
183+
@@ -11115,7 +11144,7 @@ target_link_libraries(grpc_cpp_plugin
184184

185185

186186

@@ -189,7 +189,7 @@ index d3963b074b..51cef83141 100644
189189
install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
190190
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
191191
BUNDLE DESTINATION ${gRPC_INSTALL_BINDIR}
192-
@@ -19803,7 +19832,7 @@ endif()
192+
@@ -23128,7 +23157,7 @@ endif()
193193

194194

195195

@@ -198,9 +198,12 @@ index d3963b074b..51cef83141 100644
198198

199199
if(gRPC_INSTALL)
200200
install(EXPORT gRPCTargets
201-
@@ -19900,3 +19929,5 @@ generate_pkgconfig(
201+
@@ -23225,3 +23254,5 @@ generate_pkgconfig(
202202
"-lgrpc++_unsecure"
203203
""
204204
"grpc++_unsecure.pc")
205205
+
206206
+endif() # gRPC_BUILD_PLUGIN_SUPPORT_ONLY
207+
--
208+
2.43.0
209+

0 commit comments

Comments
 (0)