Date: Wed, 13 Dec 2017 14:40:01 +0000 (UTC) From: "Vanilla I. Shu" <vanilla@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456207 - in head/devel/grpc: . files Message-ID: <201712131440.vBDEe11x005563@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vanilla Date: Wed Dec 13 14:40:01 2017 New Revision: 456207 URL: https://svnweb.freebsd.org/changeset/ports/456207 Log: Update to 1.8.0. Added: head/devel/grpc/files/patch-src_core_lib_security_credentials_jwt_jwt__verifier.cc (contents, props changed) head/devel/grpc/files/patch-src_core_tsi_ssl__transport__security.cc (contents, props changed) Deleted: head/devel/grpc/files/patch-src_core_lib_security_credentials_jwt_jwt__verifier.c head/devel/grpc/files/patch-src_core_tsi_ssl__transport__security.c Modified: head/devel/grpc/Makefile head/devel/grpc/distinfo head/devel/grpc/files/patch-CMakeLists.txt Modified: head/devel/grpc/Makefile ============================================================================== --- head/devel/grpc/Makefile Wed Dec 13 12:18:43 2017 (r456206) +++ head/devel/grpc/Makefile Wed Dec 13 14:40:01 2017 (r456207) @@ -2,9 +2,8 @@ # $FreeBSD$ PORTNAME= grpc -PORTVERSION= 1.7.3 +PORTVERSION= 1.8.0 DISTVERSIONPREFIX= v -PORTREVISION= 1 CATEGORIES= devel MAINTAINER= vanilla@FreeBSD.org Modified: head/devel/grpc/distinfo ============================================================================== --- head/devel/grpc/distinfo Wed Dec 13 12:18:43 2017 (r456206) +++ head/devel/grpc/distinfo Wed Dec 13 14:40:01 2017 (r456207) @@ -1,5 +1,5 @@ -TIMESTAMP = 1512612110 -SHA256 (grpc-grpc-v1.7.3_GH0.tar.gz) = e31107f5ee6970525a2b48dd6392613a32d7eeb69c6151cde8f64272c179c866 -SIZE (grpc-grpc-v1.7.3_GH0.tar.gz) = 4728599 +TIMESTAMP = 1513174933 +SHA256 (grpc-grpc-v1.8.0_GH0.tar.gz) = 7d1c646c2012bdd0af275215c3fc882c598a1eb664c1012a49a81e4faf27a504 +SIZE (grpc-grpc-v1.8.0_GH0.tar.gz) = 4636987 SHA256 (google-benchmark-v1.3.0_GH0.tar.gz) = f19559475a592cbd5ac48b61f6b9cedf87f0b6775d1443de54cfe8f53940b28d SIZE (google-benchmark-v1.3.0_GH0.tar.gz) = 105485 Modified: head/devel/grpc/files/patch-CMakeLists.txt ============================================================================== --- head/devel/grpc/files/patch-CMakeLists.txt Wed Dec 13 12:18:43 2017 (r456206) +++ head/devel/grpc/files/patch-CMakeLists.txt Wed Dec 13 14:40:01 2017 (r456207) @@ -1,4 +1,4 @@ ---- CMakeLists.txt.orig 2017-10-26 19:11:22 UTC +--- CMakeLists.txt.orig 2017-12-13 01:39:01 UTC +++ CMakeLists.txt @@ -144,7 +144,8 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "mo set(gRPC_INSTALL FALSE) @@ -10,39 +10,39 @@ if(TARGET c-ares::cares) set(_gRPC_CARES_LIBRARIES c-ares::cares) endif() -@@ -828,6 +829,7 @@ add_library(gpr - src/core/lib/support/tmpfile_windows.c - src/core/lib/support/wrap_memcpy.c +@@ -829,6 +830,7 @@ add_library(gpr + src/core/lib/support/tmpfile_windows.cc + src/core/lib/support/wrap_memcpy.cc ) +set_target_properties(gpr PROPERTIES VERSION ${PACKAGE_VERSION} SOVERSION 1) if(WIN32 AND MSVC) set_target_properties(gpr PROPERTIES COMPILE_PDB_NAME "gpr" -@@ -1220,6 +1222,7 @@ add_library(grpc - src/core/ext/filters/workarounds/workaround_utils.c - src/core/plugin_registry/grpc_plugin_registry.c +@@ -1209,6 +1211,7 @@ add_library(grpc + src/core/ext/filters/workarounds/workaround_utils.cc + src/core/plugin_registry/grpc_plugin_registry.cc ) +set_target_properties(grpc PROPERTIES VERSION ${PACKAGE_VERSION} SOVERSION 1) if(WIN32 AND MSVC) set_target_properties(grpc PROPERTIES COMPILE_PDB_NAME "grpc" -@@ -1533,6 +1536,7 @@ add_library(grpc_cronet - src/core/ext/filters/load_reporting/server_load_reporting_plugin.c - src/core/plugin_registry/grpc_cronet_plugin_registry.c +@@ -1523,6 +1526,7 @@ add_library(grpc_cronet + src/core/ext/filters/load_reporting/server_load_reporting_plugin.cc + src/core/plugin_registry/grpc_cronet_plugin_registry.cc ) +set_target_properties(grpc_cronet PROPERTIES VERSION ${PACKAGE_VERSION} SOVERSION 1) if(WIN32 AND MSVC) set_target_properties(grpc_cronet PROPERTIES COMPILE_PDB_NAME "grpc_cronet" -@@ -2383,6 +2387,7 @@ add_library(grpc_unsecure - src/core/ext/filters/workarounds/workaround_utils.c - src/core/plugin_registry/grpc_unsecure_plugin_registry.c +@@ -2390,6 +2394,7 @@ target_include_directories(grpc_unsecure + PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares + PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include ) +set_target_properties(grpc_unsecure PROPERTIES VERSION ${PACKAGE_VERSION} SOVERSION 1) - if(WIN32 AND MSVC) - set_target_properties(grpc_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_unsecure" -@@ -2598,6 +2603,7 @@ add_library(grpc++ + target_link_libraries(grpc_unsecure + ${_gRPC_BASELIB_LIBRARIES} +@@ -2580,6 +2585,7 @@ add_library(grpc++ src/cpp/util/time_cc.cc src/cpp/codegen/codegen_init.cc ) @@ -50,7 +50,7 @@ if(WIN32 AND MSVC) set_target_properties(grpc++ PROPERTIES COMPILE_PDB_NAME "grpc++" -@@ -3097,6 +3103,7 @@ add_library(grpc++_cronet +@@ -3066,6 +3072,7 @@ add_library(grpc++_cronet third_party/nanopb/pb_decode.c third_party/nanopb/pb_encode.c ) @@ -58,7 +58,7 @@ if(WIN32 AND MSVC) set_target_properties(grpc++_cronet PROPERTIES COMPILE_PDB_NAME "grpc++_cronet" -@@ -3297,6 +3304,7 @@ add_library(grpc++_error_details +@@ -3266,6 +3273,7 @@ add_library(grpc++_error_details ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.grpc.pb.h src/cpp/util/error_details.cc ) @@ -66,7 +66,7 @@ if(WIN32 AND MSVC) set_target_properties(grpc++_error_details PROPERTIES COMPILE_PDB_NAME "grpc++_error_details" -@@ -3423,6 +3431,7 @@ add_library(grpc++_reflection +@@ -3392,6 +3400,7 @@ add_library(grpc++_reflection ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h ) @@ -74,7 +74,7 @@ if(WIN32 AND MSVC) set_target_properties(grpc++_reflection PROPERTIES COMPILE_PDB_NAME "grpc++_reflection" -@@ -3846,6 +3855,7 @@ add_library(grpc++_unsecure +@@ -3815,6 +3824,7 @@ add_library(grpc++_unsecure src/cpp/util/time_cc.cc src/cpp/codegen/codegen_init.cc ) @@ -82,7 +82,7 @@ if(WIN32 AND MSVC) set_target_properties(grpc++_unsecure PROPERTIES COMPILE_PDB_NAME "grpc++_unsecure" -@@ -4159,6 +4169,7 @@ add_library(grpc_plugin_support +@@ -4128,6 +4138,7 @@ add_library(grpc_plugin_support src/compiler/python_generator.cc src/compiler/ruby_generator.cc ) @@ -90,7 +90,7 @@ if(WIN32 AND MSVC) set_target_properties(grpc_plugin_support PROPERTIES COMPILE_PDB_NAME "grpc_plugin_support" -@@ -4668,6 +4679,7 @@ endif (gRPC_BUILD_TESTS) +@@ -4637,6 +4648,7 @@ endif (gRPC_BUILD_TESTS) add_library(grpc_csharp_ext SHARED src/csharp/ext/grpc_csharp_ext.c ) @@ -98,7 +98,7 @@ if(WIN32 AND MSVC) set_target_properties(grpc_csharp_ext PROPERTIES COMPILE_PDB_NAME "grpc_csharp_ext" -@@ -10740,7 +10752,6 @@ add_executable(grpc_cpp_plugin +@@ -10696,7 +10708,6 @@ add_executable(grpc_cpp_plugin src/compiler/cpp_plugin.cc ) Added: head/devel/grpc/files/patch-src_core_lib_security_credentials_jwt_jwt__verifier.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/grpc/files/patch-src_core_lib_security_credentials_jwt_jwt__verifier.cc Wed Dec 13 14:40:01 2017 (r456207) @@ -0,0 +1,11 @@ +--- src/core/lib/security/credentials/jwt/jwt_verifier.cc.orig 2017-12-13 01:39:01 UTC ++++ src/core/lib/security/credentials/jwt/jwt_verifier.cc +@@ -466,7 +466,7 @@ static BIGNUM* bignum_from_base64(grpc_e + return result; + } + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + + // Provide compatibility across OpenSSL 1.02 and 1.1. + static int RSA_set0_key(RSA* r, BIGNUM* n, BIGNUM* e, BIGNUM* d) { Added: head/devel/grpc/files/patch-src_core_tsi_ssl__transport__security.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/grpc/files/patch-src_core_tsi_ssl__transport__security.cc Wed Dec 13 14:40:01 2017 (r456207) @@ -0,0 +1,26 @@ +--- src/core/tsi/ssl_transport_security.cc.orig 2017-12-13 01:39:01 UTC ++++ src/core/tsi/ssl_transport_security.cc +@@ -19,7 +19,7 @@ + #include "src/core/tsi/ssl_transport_security.h" + + #include <grpc/support/port_platform.h> +- ++#include <sys/socket.h> + #include <limits.h> + #include <string.h> + +@@ -56,11 +56,10 @@ extern "C" { + #define TSI_SSL_MAX_PROTECTED_FRAME_SIZE_UPPER_BOUND 16384 + #define TSI_SSL_MAX_PROTECTED_FRAME_SIZE_LOWER_BOUND 1024 + +-/* Putting a macro like this and littering the source file with #if is really +- bad practice. +- TODO(jboeuf): refactor all the #if / #endif in a separate module. */ +-#ifndef TSI_OPENSSL_ALPN_SUPPORT ++#if OPENSSL_VERSION_NUMBER >= 0x10002000L + #define TSI_OPENSSL_ALPN_SUPPORT 1 ++#else ++#define TSI_OPENSSL_ALPN_SUPPORT 0 + #endif + + /* TODO(jboeuf): I have not found a way to get this number dynamically from the
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712131440.vBDEe11x005563>