Date: Fri, 9 Oct 2020 07:49:59 +0000 (UTC) From: Matthias Fechner <mfechner@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r551750 - in head/net/rubygem-grpc: . files Message-ID: <202010090749.0997nxWp063267@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mfechner Date: Fri Oct 9 07:49:59 2020 New Revision: 551750 URL: https://svnweb.freebsd.org/changeset/ports/551750 Log: Update to 1.30.2. Pass maintainer to sunpoet. Submitted by: sunpoet Added: head/net/rubygem-grpc/files/patch-src_ruby_ext_grpc_rb__call__credentials.c (contents, props changed) Modified: head/net/rubygem-grpc/Makefile head/net/rubygem-grpc/distinfo head/net/rubygem-grpc/files/patch-src_ruby_lib_grpc.rb Modified: head/net/rubygem-grpc/Makefile ============================================================================== --- head/net/rubygem-grpc/Makefile Fri Oct 9 07:49:31 2020 (r551749) +++ head/net/rubygem-grpc/Makefile Fri Oct 9 07:49:59 2020 (r551750) @@ -1,11 +1,11 @@ # $FreeBSD$ PORTNAME= grpc -PORTVERSION= 1.24.0 +PORTVERSION= 1.30.2 CATEGORIES= net rubygems MASTER_SITES= RG -MAINTAINER= mfechner@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Ruby implementation of gRPC LICENSE= BSD3CLAUSE @@ -13,22 +13,21 @@ LICENSE= BSD3CLAUSE LIB_DEPENDS= libcares.so:dns/c-ares \ libgrpc.so:devel/grpc RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \ - rubygem-googleapis-common-protos-types>=1.0<2.0:devel/rubygem-googleapis-common-protos-types \ - rubygem-google-protobuf>=3.8<4.0:devel/rubygem-google-protobuf + rubygem-google-protobuf>=3.12<4:devel/rubygem-google-protobuf \ + rubygem-googleapis-common-protos-types>=1.0<2:devel/rubygem-googleapis-common-protos-types -MAKE_JOBS_UNSAFE= yes - USES= gem gmake pkgconfig USE_RUBY= yes +MAKE_JOBS_UNSAFE= yes + post-extract: - @${RM} -r ${WRKSRC}/include ${WRKSRC}/third_party ${WRKSRC}/src/boringssl \ - ${WRKSRC}/src/core ${WRKSRC}/Makefile ${WRKSRC}/.yardopts ${WRKSRC}/etc + @${RM} ${WRKSRC}/Makefile ${WRKSRC}/.yardopts + @${RM} -r ${WRKSRC}/etc ${WRKSRC}/include ${WRKSRC}/third_party ${WRKSRC}/src/boringssl ${WRKSRC}/src/core post-patch: - @${REINPLACE_CMD} 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/src/ruby/lib/grpc.rb - @${REINPLACE_CMD} -E '/s\.files = /s;, "(Makefile|etc|include|third_party|src/boringssl|src/core)[^"]*"\.freeze;;g' \ - ${WRKSRC}/grpc.gemspec - @${REINPLACE_CMD} -e '/s\.files = /s;"\.yardopts"\.freeze, ;;' ${WRKSRC}/grpc.gemspec + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/ruby/lib/grpc.rb + @${REINPLACE_CMD} -Ee '/s\.files = /s;, "(Makefile|etc|include|third_party|src/boringssl|src/core)[^"]*"\.freeze;;g' ${WRKSRC}/${GEMSPEC} + @${REINPLACE_CMD} -e '/s\.files = /s|"\.yardopts"\.freeze, ||' ${WRKSRC}/${GEMSPEC} .include <bsd.port.mk> Modified: head/net/rubygem-grpc/distinfo ============================================================================== --- head/net/rubygem-grpc/distinfo Fri Oct 9 07:49:31 2020 (r551749) +++ head/net/rubygem-grpc/distinfo Fri Oct 9 07:49:59 2020 (r551750) @@ -1,3 +1,3 @@ -TIMESTAMP = 1574430162 -SHA256 (rubygem/grpc-1.24.0.gem) = eed268d73e455ed82df7e9a76a9575d11d3c1c139a95a227254b9286939c91a3 -SIZE (rubygem/grpc-1.24.0.gem) = 3264000 +TIMESTAMP = 1596962194 +SHA256 (rubygem/grpc-1.30.2.gem) = 85fa136f37dd9ee06e0e4ba73d09bd59d83b10a7fb38178b21f684a78ea34fe7 +SIZE (rubygem/grpc-1.30.2.gem) = 3876864 Added: head/net/rubygem-grpc/files/patch-src_ruby_ext_grpc_rb__call__credentials.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/rubygem-grpc/files/patch-src_ruby_ext_grpc_rb__call__credentials.c Fri Oct 9 07:49:59 2020 (r551750) @@ -0,0 +1,11 @@ +--- src/ruby/ext/grpc/rb_call_credentials.c.orig 2020-08-23 16:28:28 UTC ++++ src/ruby/ext/grpc/rb_call_credentials.c +@@ -233,7 +233,7 @@ static VALUE grpc_rb_call_credentials_init(VALUE self, + // TODO(yihuazhang): Expose min_security_level via the Ruby API so that + // applications can decide what minimum security level their plugins require. + creds = grpc_metadata_credentials_create_from_plugin( +- plugin, GRPC_PRIVACY_AND_INTEGRITY, NULL); ++ plugin, NULL); + if (creds == NULL) { + rb_raise(rb_eRuntimeError, "could not create a credentials, not sure why"); + return Qnil; Modified: head/net/rubygem-grpc/files/patch-src_ruby_lib_grpc.rb ============================================================================== --- head/net/rubygem-grpc/files/patch-src_ruby_lib_grpc.rb Fri Oct 9 07:49:31 2020 (r551749) +++ head/net/rubygem-grpc/files/patch-src_ruby_lib_grpc.rb Fri Oct 9 07:49:59 2020 (r551750) @@ -1,4 +1,4 @@ ---- src/ruby/lib/grpc.rb.orig 2017-12-31 07:02:12 UTC +--- src/ruby/lib/grpc.rb.orig 2020-09-23 17:48:57 UTC +++ src/ruby/lib/grpc.rb @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and @@ -8,4 +8,4 @@ +ssl_roots_path = '%%LOCALBASE%%/etc/ssl/cert.pem' require_relative 'grpc/errors' - require_relative 'grpc/grpc' + require_relative 'grpc/structs'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010090749.0997nxWp063267>