View | Details | Raw Unified | Return to bug 276574 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/grpc151/Makefile (+56 lines)
Added Link Here
1
PORTNAME=	grpc
2
PORTVERSION=	1.51.0
3
DISTVERSIONPREFIX=	v
4
PORTREVISION=	0
5
CATEGORIES=	devel
6
PKGNAMESUFFIX=	151
7
8
MAINTAINER=	mfechner@FreeBSD.org
9
COMMENT=	HTTP/2-based RPC framework
10
WWW=		https://grpc.io/
11
12
LICENSE=	BSD3CLAUSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
LIB_DEPENDS=	libabsl_base.so:devel/abseil \
16
		libbenchmark.so:devel/benchmark \
17
		libcares.so:dns/c-ares \
18
		libgflags.so:devel/gflags \
19
		libprotobuf.so:devel/protobuf \
20
		libre2.so:devel/re2
21
22
USES=		cmake compiler:c++17-lang cpe localbase:ldflags pkgconfig ssl
23
24
USE_GITHUB=	yes
25
26
CMAKE_ARGS=	-DCMAKE_CXX_STANDARD=17 \
27
		-DgRPC_ABSL_PROVIDER=package \
28
		-DgRPC_BENCHMARK_PROVIDER=package \
29
		-DgRPC_CARES_PROVIDER=package \
30
		-DgRPC_GFLAGS_PROVIDER=package \
31
		-DgRPC_PROTOBUF_PROVIDER=package \
32
		-DgRPC_RE2_PROVIDER=package \
33
		-DgRPC_SSL_PROVIDER=package \
34
		-DgRPC_ZLIB_PROVIDER=package
35
CMAKE_ON=	BUILD_SHARED_LIBS
36
LDFLAGS+=	-labsl_hash -labsl_raw_hash_set
37
USE_LDCONFIG=	yes
38
39
PLIST_SUB=	SHLIB_MAJOR=${PORTVERSION:R} \
40
		SHLIB_MINOR=${PORTVERSION:E}
41
42
CONFLICTS_INSTALL=	grpc130 grpc134 grpc
43
44
.include <bsd.port.pre.mk>
45
46
post-patch:
47
# Clean up bundled libraries
48
	@${RM} -r ${WRKSRC}/third_party/abseil-cpp/
49
	@${RM} -r ${WRKSRC}/third_party/benchmark/
50
	@${RM} -r ${WRKSRC}/third_party/boringssl-with-bazel/
51
	@${RM} -r ${WRKSRC}/third_party/cares/
52
	@${RM} -r ${WRKSRC}/third_party/protobuf/
53
	@${RM} -r ${WRKSRC}/third_party/re2/
54
	@${RM} -r ${WRKSRC}/third_party/zlib/
55
56
.include <bsd.port.post.mk>
(-)b/devel/grpc151/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1706040570
2
SHA256 (grpc-grpc-v1.51.0_GH0.tar.gz) = 7f42363711eb483a0501239fd5522467b31d8fe98d70d7867c6ca7b52440d828
3
SIZE (grpc-grpc-v1.51.0_GH0.tar.gz) = 8550201
(-)b/devel/grpc151/files/patch-CMake (+11 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2024-01-23 21:49:54.888293000 +0100
2
+++ CMakeLists.txt	2024-01-23 21:54:06.966768000 +0100
3
@@ -229,7 +229,7 @@
4
 
5
 # Add c++14 flags
6
 if (NOT DEFINED CMAKE_CXX_STANDARD)
7
-  set(CMAKE_CXX_STANDARD 14)
8
+  set(CMAKE_CXX_STANDARD 17)
9
 else()
10
   if (CMAKE_CXX_STANDARD LESS 14)
11
     message(FATAL_ERROR "CMAKE_CXX_STANDARD is less than 14, please specify at least SET(CMAKE_CXX_STANDARD 14)")
(-)b/devel/grpc151/files/patch-protobuf (+55 lines)
Added Link Here
1
--- src/compiler/config_protobuf.h.orig	2021-11-16 23:39:48 UTC
2
+++ src/compiler/config_protobuf.h
3
@@ -50,7 +50,7 @@
4
 #endif
5
 
6
 #ifndef GRPC_CUSTOM_CSHARP_GETCLASSNAME
7
-#include <google/protobuf/compiler/csharp/csharp_names.h>
8
+#include <google/protobuf/compiler/csharp/names.h>
9
 #define GRPC_CUSTOM_CSHARP_GETCLASSNAME \
10
   ::google::protobuf::compiler::csharp::GetClassName
11
 #define GRPC_CUSTOM_CSHARP_GETFILENAMESPACE \
12
--- src/compiler/objective_c_generator.cc.orig	2021-11-16 23:39:48 UTC
13
+++ src/compiler/objective_c_generator.cc
14
@@ -22,7 +22,7 @@
15
 #include <set>
16
 #include <sstream>
17
 
18
-#include <google/protobuf/compiler/objectivec/objectivec_helpers.h>
19
+#include <google/protobuf/compiler/objectivec/names.h>
20
 
21
 #include "src/compiler/config.h"
22
 #include "src/compiler/objective_c_generator_helpers.h"
23
--- src/compiler/objective_c_generator_helpers.h.orig	2021-11-16 23:39:48 UTC
24
+++ src/compiler/objective_c_generator_helpers.h
25
@@ -21,7 +21,7 @@
26
 
27
 #include <map>
28
 
29
-#include <google/protobuf/compiler/objectivec/objectivec_helpers.h>
30
+#include <google/protobuf/compiler/objectivec/names.h>
31
 
32
 #include "src/compiler/config.h"
33
 #include "src/compiler/generator_helpers.h"
34
--- src/compiler/objective_c_plugin.cc.orig	2021-11-16 23:39:48 UTC
35
+++ src/compiler/objective_c_plugin.cc
36
@@ -20,7 +20,7 @@
37
 
38
 #include <memory>
39
 
40
-#include <google/protobuf/compiler/objectivec/objectivec_helpers.h>
41
+#include <google/protobuf/compiler/objectivec/names.h>
42
 
43
 #include "src/compiler/config.h"
44
 #include "src/compiler/objective_c_generator.h"
45
--- include/grpcpp/impl/codegen/config_protobuf.h.orig	2021-11-16 23:39:48 UTC
46
+++ include/grpcpp/impl/codegen/config_protobuf.h
47
@@ -69,7 +69,7 @@
48
 #include <google/protobuf/util/json_util.h>
49
 #include <google/protobuf/util/type_resolver_util.h>
50
 #define GRPC_CUSTOM_JSONUTIL ::google::protobuf::util
51
-#define GRPC_CUSTOM_UTIL_STATUS ::google::protobuf::util::Status
52
+#define GRPC_CUSTOM_UTIL_STATUS ::absl::Status
53
 #endif
54
 
55
 namespace grpc {
(-)b/devel/grpc151/pkg-descr (+5 lines)
Added Link Here
1
gRPC is a modern, open source, high-performance remote procedure call (RPC)
2
framework that can run anywhere, enables client and server applications to
3
communicate transparently, and simplifies the building of connected systems.
4
5
See also: https://github.com/grpc/grpc
(-)b/devel/grpc151/pkg-plist (+322 lines)
Added Link Here
1
bin/grpc_cpp_plugin
2
bin/grpc_csharp_plugin
3
bin/grpc_node_plugin
4
bin/grpc_objective_c_plugin
5
bin/grpc_php_plugin
6
bin/grpc_python_plugin
7
bin/grpc_ruby_plugin
8
include/grpc++/alarm.h
9
include/grpc++/channel.h
10
include/grpc++/client_context.h
11
include/grpc++/completion_queue.h
12
include/grpc++/create_channel.h
13
include/grpc++/create_channel_posix.h
14
include/grpc++/ext/health_check_service_server_builder_option.h
15
include/grpc++/ext/proto_server_reflection_plugin.h
16
include/grpc++/generic/async_generic_service.h
17
include/grpc++/generic/generic_stub.h
18
include/grpc++/grpc++.h
19
include/grpc++/health_check_service_interface.h
20
include/grpc++/impl/call.h
21
include/grpc++/impl/channel_argument_option.h
22
include/grpc++/impl/client_unary_call.h
23
include/grpc++/impl/codegen/async_stream.h
24
include/grpc++/impl/codegen/async_unary_call.h
25
include/grpc++/impl/codegen/byte_buffer.h
26
include/grpc++/impl/codegen/call.h
27
include/grpc++/impl/codegen/call_hook.h
28
include/grpc++/impl/codegen/channel_interface.h
29
include/grpc++/impl/codegen/client_context.h
30
include/grpc++/impl/codegen/client_unary_call.h
31
include/grpc++/impl/codegen/completion_queue.h
32
include/grpc++/impl/codegen/completion_queue_tag.h
33
include/grpc++/impl/codegen/config.h
34
include/grpc++/impl/codegen/config_protobuf.h
35
include/grpc++/impl/codegen/core_codegen.h
36
include/grpc++/impl/codegen/core_codegen_interface.h
37
include/grpc++/impl/codegen/create_auth_context.h
38
include/grpc++/impl/codegen/grpc_library.h
39
include/grpc++/impl/codegen/metadata_map.h
40
include/grpc++/impl/codegen/method_handler_impl.h
41
include/grpc++/impl/codegen/proto_utils.h
42
include/grpc++/impl/codegen/rpc_method.h
43
include/grpc++/impl/codegen/rpc_service_method.h
44
include/grpc++/impl/codegen/security/auth_context.h
45
include/grpc++/impl/codegen/serialization_traits.h
46
include/grpc++/impl/codegen/server_context.h
47
include/grpc++/impl/codegen/server_interface.h
48
include/grpc++/impl/codegen/service_type.h
49
include/grpc++/impl/codegen/slice.h
50
include/grpc++/impl/codegen/status.h
51
include/grpc++/impl/codegen/status_code_enum.h
52
include/grpc++/impl/codegen/string_ref.h
53
include/grpc++/impl/codegen/stub_options.h
54
include/grpc++/impl/codegen/sync_stream.h
55
include/grpc++/impl/codegen/time.h
56
include/grpc++/impl/grpc_library.h
57
include/grpc++/impl/method_handler_impl.h
58
include/grpc++/impl/rpc_method.h
59
include/grpc++/impl/rpc_service_method.h
60
include/grpc++/impl/serialization_traits.h
61
include/grpc++/impl/server_builder_option.h
62
include/grpc++/impl/server_builder_plugin.h
63
include/grpc++/impl/server_initializer.h
64
include/grpc++/impl/service_type.h
65
include/grpc/event_engine/memory_request.h
66
include/grpc/event_engine/slice.h
67
include/grpc/event_engine/slice_buffer.h
68
include/grpcpp/ext/call_metric_recorder.h
69
include/grpcpp/impl/call_hook.h
70
include/grpcpp/impl/call_op_set.h
71
include/grpcpp/impl/call_op_set_interface.h
72
include/grpcpp/impl/channel_interface.h
73
include/grpcpp/security/tls_certificate_verifier.h
74
include/grpcpp/support/callback_common.h
75
include/grpcpp/version_info.h
76
include/grpc++/resource_quota.h
77
include/grpc++/security/auth_context.h
78
include/grpc++/security/auth_metadata_processor.h
79
include/grpc++/security/credentials.h
80
include/grpc++/security/server_credentials.h
81
include/grpc++/server.h
82
include/grpc++/server_builder.h
83
include/grpc++/server_context.h
84
include/grpc++/server_posix.h
85
include/grpc++/support/async_stream.h
86
include/grpc++/support/async_unary_call.h
87
include/grpc++/support/byte_buffer.h
88
include/grpc++/support/channel_arguments.h
89
include/grpc++/support/config.h
90
include/grpc++/support/error_details.h
91
include/grpc++/support/slice.h
92
include/grpc++/support/status.h
93
include/grpc++/support/status_code_enum.h
94
include/grpc++/support/string_ref.h
95
include/grpc++/support/stub_options.h
96
include/grpc++/support/sync_stream.h
97
include/grpc++/support/time.h
98
include/grpc/byte_buffer.h
99
include/grpc/byte_buffer_reader.h
100
include/grpc/census.h
101
include/grpc/compression.h
102
include/grpc/event_engine/endpoint_config.h
103
include/grpc/event_engine/event_engine.h
104
include/grpc/event_engine/internal/memory_allocator_impl.h
105
include/grpc/event_engine/memory_allocator.h
106
include/grpc/event_engine/port.h
107
include/grpc/fork.h
108
include/grpc/grpc.h
109
include/grpc/grpc_posix.h
110
include/grpc/grpc_security.h
111
include/grpc/grpc_security_constants.h
112
include/grpc/impl/codegen/atm.h
113
include/grpc/impl/codegen/atm_gcc_atomic.h
114
include/grpc/impl/codegen/atm_gcc_sync.h
115
include/grpc/impl/codegen/atm_windows.h
116
include/grpc/impl/codegen/byte_buffer.h
117
include/grpc/impl/codegen/byte_buffer_reader.h
118
include/grpc/impl/codegen/compression_types.h
119
include/grpc/impl/codegen/connectivity_state.h
120
include/grpc/impl/codegen/fork.h
121
include/grpc/impl/codegen/gpr_slice.h
122
include/grpc/impl/codegen/gpr_types.h
123
include/grpc/impl/codegen/grpc_types.h
124
include/grpc/impl/codegen/log.h
125
include/grpc/impl/codegen/port_platform.h
126
include/grpc/impl/codegen/propagation_bits.h
127
include/grpc/impl/codegen/slice.h
128
include/grpc/impl/codegen/status.h
129
include/grpc/impl/codegen/sync.h
130
include/grpc/impl/codegen/sync_abseil.h
131
include/grpc/impl/codegen/sync_custom.h
132
include/grpc/impl/codegen/sync_generic.h
133
include/grpc/impl/codegen/sync_posix.h
134
include/grpc/impl/codegen/sync_windows.h
135
include/grpc/load_reporting.h
136
include/grpc/slice.h
137
include/grpc/slice_buffer.h
138
include/grpc/status.h
139
include/grpc/support/alloc.h
140
include/grpc/support/atm.h
141
include/grpc/support/atm_gcc_atomic.h
142
include/grpc/support/atm_gcc_sync.h
143
include/grpc/support/atm_windows.h
144
include/grpc/support/cpu.h
145
include/grpc/support/log.h
146
include/grpc/support/log_windows.h
147
include/grpc/support/port_platform.h
148
include/grpc/support/string_util.h
149
include/grpc/support/sync.h
150
include/grpc/support/sync_abseil.h
151
include/grpc/support/sync_custom.h
152
include/grpc/support/sync_generic.h
153
include/grpc/support/sync_posix.h
154
include/grpc/support/sync_windows.h
155
include/grpc/support/thd_id.h
156
include/grpc/support/time.h
157
include/grpc/support/workaround_list.h
158
include/grpcpp/alarm.h
159
include/grpcpp/channel.h
160
include/grpcpp/client_context.h
161
include/grpcpp/completion_queue.h
162
include/grpcpp/create_channel.h
163
include/grpcpp/create_channel_binder.h
164
include/grpcpp/create_channel_posix.h
165
include/grpcpp/ext/channelz_service_plugin.h
166
include/grpcpp/ext/health_check_service_server_builder_option.h
167
include/grpcpp/ext/proto_server_reflection_plugin.h
168
include/grpcpp/generic/async_generic_service.h
169
include/grpcpp/generic/generic_stub.h
170
include/grpcpp/grpcpp.h
171
include/grpcpp/health_check_service_interface.h
172
include/grpcpp/impl/call.h
173
include/grpcpp/impl/channel_argument_option.h
174
include/grpcpp/impl/client_unary_call.h
175
include/grpcpp/impl/codegen/async_generic_service.h
176
include/grpcpp/impl/codegen/async_stream.h
177
include/grpcpp/impl/codegen/async_unary_call.h
178
include/grpcpp/impl/codegen/byte_buffer.h
179
include/grpcpp/impl/codegen/call.h
180
include/grpcpp/impl/codegen/call_hook.h
181
include/grpcpp/impl/codegen/call_op_set.h
182
include/grpcpp/impl/codegen/call_op_set_interface.h
183
include/grpcpp/impl/codegen/callback_common.h
184
include/grpcpp/impl/codegen/channel_interface.h
185
include/grpcpp/impl/codegen/client_callback.h
186
include/grpcpp/impl/codegen/client_context.h
187
include/grpcpp/impl/codegen/client_interceptor.h
188
include/grpcpp/impl/codegen/client_unary_call.h
189
include/grpcpp/impl/codegen/completion_queue.h
190
include/grpcpp/impl/codegen/completion_queue_tag.h
191
include/grpcpp/impl/codegen/config.h
192
include/grpcpp/impl/codegen/config_protobuf.h
193
include/grpcpp/impl/codegen/core_codegen.h
194
include/grpcpp/impl/codegen/core_codegen_interface.h
195
include/grpcpp/impl/codegen/create_auth_context.h
196
include/grpcpp/impl/codegen/delegating_channel.h
197
include/grpcpp/impl/codegen/grpc_library.h
198
include/grpcpp/impl/codegen/intercepted_channel.h
199
include/grpcpp/impl/codegen/interceptor.h
200
include/grpcpp/impl/codegen/interceptor_common.h
201
include/grpcpp/impl/codegen/message_allocator.h
202
include/grpcpp/impl/codegen/metadata_map.h
203
include/grpcpp/impl/codegen/method_handler.h
204
include/grpcpp/impl/codegen/method_handler_impl.h
205
include/grpcpp/impl/codegen/proto_buffer_reader.h
206
include/grpcpp/impl/codegen/proto_buffer_writer.h
207
include/grpcpp/impl/codegen/proto_utils.h
208
include/grpcpp/impl/codegen/rpc_method.h
209
include/grpcpp/impl/codegen/rpc_service_method.h
210
include/grpcpp/impl/codegen/security/auth_context.h
211
include/grpcpp/impl/codegen/serialization_traits.h
212
include/grpcpp/impl/codegen/server_callback.h
213
include/grpcpp/impl/codegen/server_callback_handlers.h
214
include/grpcpp/impl/codegen/server_context.h
215
include/grpcpp/impl/codegen/server_interceptor.h
216
include/grpcpp/impl/codegen/server_interface.h
217
include/grpcpp/impl/codegen/service_type.h
218
include/grpcpp/impl/codegen/slice.h
219
include/grpcpp/impl/codegen/status.h
220
include/grpcpp/impl/codegen/status_code_enum.h
221
include/grpcpp/impl/codegen/string_ref.h
222
include/grpcpp/impl/codegen/stub_options.h
223
include/grpcpp/impl/codegen/sync.h
224
include/grpcpp/impl/codegen/sync_stream.h
225
include/grpcpp/impl/codegen/time.h
226
include/grpcpp/impl/grpc_library.h
227
include/grpcpp/impl/method_handler_impl.h
228
include/grpcpp/impl/rpc_method.h
229
include/grpcpp/impl/rpc_service_method.h
230
include/grpcpp/impl/serialization_traits.h
231
include/grpcpp/impl/server_builder_option.h
232
include/grpcpp/impl/server_builder_plugin.h
233
include/grpcpp/impl/server_initializer.h
234
include/grpcpp/impl/service_type.h
235
include/grpcpp/resource_quota.h
236
include/grpcpp/security/alts_context.h
237
include/grpcpp/security/alts_util.h
238
include/grpcpp/security/auth_context.h
239
include/grpcpp/security/auth_metadata_processor.h
240
include/grpcpp/security/authorization_policy_provider.h
241
include/grpcpp/security/binder_credentials.h
242
include/grpcpp/security/binder_security_policy.h
243
include/grpcpp/security/credentials.h
244
include/grpcpp/security/server_credentials.h
245
include/grpcpp/security/tls_certificate_provider.h
246
include/grpcpp/security/tls_credentials_options.h
247
include/grpcpp/server.h
248
include/grpcpp/server_builder.h
249
include/grpcpp/server_context.h
250
include/grpcpp/server_posix.h
251
include/grpcpp/support/async_stream.h
252
include/grpcpp/support/async_unary_call.h
253
include/grpcpp/support/byte_buffer.h
254
include/grpcpp/support/channel_arguments.h
255
include/grpcpp/support/client_callback.h
256
include/grpcpp/support/client_interceptor.h
257
include/grpcpp/support/config.h
258
include/grpcpp/support/error_details.h
259
include/grpcpp/support/interceptor.h
260
include/grpcpp/support/message_allocator.h
261
include/grpcpp/support/method_handler.h
262
include/grpcpp/support/proto_buffer_reader.h
263
include/grpcpp/support/proto_buffer_writer.h
264
include/grpcpp/support/server_callback.h
265
include/grpcpp/support/server_interceptor.h
266
include/grpcpp/support/slice.h
267
include/grpcpp/support/status.h
268
include/grpcpp/support/status_code_enum.h
269
include/grpcpp/support/string_ref.h
270
include/grpcpp/support/stub_options.h
271
include/grpcpp/support/sync_stream.h
272
include/grpcpp/support/time.h
273
include/grpcpp/support/validate_service_config.h
274
include/grpcpp/xds_server_builder.h
275
lib/cmake/grpc/gRPCConfig.cmake
276
lib/cmake/grpc/gRPCConfigVersion.cmake
277
lib/cmake/grpc/gRPCTargets-%%CMAKE_BUILD_TYPE%%.cmake
278
lib/cmake/grpc/gRPCTargets.cmake
279
lib/cmake/grpc/modules/Findc-ares.cmake
280
lib/cmake/grpc/modules/Findre2.cmake
281
lib/libaddress_sorting.so
282
lib/libaddress_sorting.so.29
283
lib/libaddress_sorting.so.29.0.0
284
lib/libgpr.so
285
lib/libgpr.so.29
286
lib/libgpr.so.29.0.0
287
lib/libgrpc++.so
288
lib/libgrpc++.so.%%SHLIB_MAJOR%%
289
lib/libgrpc++.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
290
lib/libgrpc++_alts.so
291
lib/libgrpc++_alts.so.%%SHLIB_MAJOR%%
292
lib/libgrpc++_alts.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
293
lib/libgrpc++_error_details.so
294
lib/libgrpc++_error_details.so.%%SHLIB_MAJOR%%
295
lib/libgrpc++_error_details.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
296
lib/libgrpc++_reflection.so
297
lib/libgrpc++_reflection.so.%%SHLIB_MAJOR%%
298
lib/libgrpc++_reflection.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
299
lib/libgrpc++_unsecure.so
300
lib/libgrpc++_unsecure.so.%%SHLIB_MAJOR%%
301
lib/libgrpc++_unsecure.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
302
lib/libgrpc.so
303
lib/libgrpc.so.29
304
lib/libgrpc.so.29.0.0
305
lib/libgrpc_plugin_support.so
306
lib/libgrpc_plugin_support.so.%%SHLIB_MAJOR%%
307
lib/libgrpc_plugin_support.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
308
lib/libgrpc_unsecure.so
309
lib/libgrpc_unsecure.so.29
310
lib/libgrpc_unsecure.so.29.0.0
311
lib/libgrpcpp_channelz.so
312
lib/libgrpcpp_channelz.so.%%SHLIB_MAJOR%%
313
lib/libgrpcpp_channelz.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
314
lib/libupb.so
315
lib/libupb.so.29
316
lib/libupb.so.29.0.0
317
libdata/pkgconfig/gpr.pc
318
libdata/pkgconfig/grpc++.pc
319
libdata/pkgconfig/grpc++_unsecure.pc
320
libdata/pkgconfig/grpc.pc
321
libdata/pkgconfig/grpc_unsecure.pc
322
%%DATADIR%%/roots.pem

Return to bug 276574