pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/go-protobuf devel/go-protobuf: Update to 1.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/542aa8484df2
branches:  trunk
changeset: 385105:542aa8484df2
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Sep 11 18:27:08 2018 +0000

description:
devel/go-protobuf: Update to 1.2.0

Notable changes:

- add DiscardUnknown function
- The serialization logic (for both Marshal and Unmarshal) has been
  optimized. Testing inside Google demonstrate that the new
  implementation is about 1.3x to 2.1x faster.
- Unknown fields in proto3 are now preserved.
- JSON marshal and unmarshal now check for proto2 required field.
- GetExtension returns the raw bytes if the ExtensionDesc does not
  have type information.
- Invalid UTF-8 in string types are rejected during marshal and
  unmarshal.
- Fields of bad wire types are treated as unknown fields instead of an
  error.
- The protoc-gen-go generator supports the paths=source_relative
  option.
- Unknown fields in map entries are now ignored instead of causing an
  unmarshal error.
- The "import public" feature is now implemented using Go type
  aliases.
- jsonpb.Unmarshal correctly handles escaped strings for some of the
  well-known types
- jsonpb.Unmarshal correctly returns an error when trying to marshal a
  scalar enum into repeated enums.
- jsonpb.Unmarshal correctly handles string versions of numeric
  primitives
- jsonpb.Unmarshal correctly handles enum values in maps
- fixes a performance regression where nested maps led to quadratic
  behavior
- reverts strict UTF-8 validation for proto2 string fields
- makes UTF-8 validation errors for proto3 string fields non-fatal

diffstat:

 devel/go-protobuf/Makefile      |   19 +++---
 devel/go-protobuf/PLIST         |  101 ++++++++++++++++++++++++++++-----------
 devel/go-protobuf/buildlink3.mk |    4 +-
 devel/go-protobuf/distinfo      |   10 +-
 4 files changed, 90 insertions(+), 44 deletions(-)

diffs (251 lines):

diff -r 0a5e1273b118 -r 542aa8484df2 devel/go-protobuf/Makefile
--- a/devel/go-protobuf/Makefile        Tue Sep 11 17:45:17 2018 +0000
+++ b/devel/go-protobuf/Makefile        Tue Sep 11 18:27:08 2018 +0000
@@ -1,25 +1,26 @@
-# $NetBSD: Makefile,v 1.10 2018/06/12 17:50:25 bsiegert Exp $
+# $NetBSD: Makefile,v 1.11 2018/09/11 18:27:08 minskim Exp $
 
-DISTNAME=              go-protobuf-20160829
-PKGREVISION=           7
+DISTNAME=              go-protobuf-1.2.0
 CATEGORIES=            devel
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=golang/}
 GITHUB_PROJECT=                protobuf
-GITHUB_TAG=            1f49d83
+GITHUB_TAG=            v${PKGVERSION_NOREV}
 
 HOMEPAGE=              http://godoc.org/${GO_SRCPATH}
 COMMENT=               Go support for Google protocol buffers
 LICENSE=               modified-bsd
 
+GO_DIST_BASE=          ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
 GO_SRCPATH=            github.com/golang/protobuf
-GO_DIST_BASE=          ${GITHUB_PROJECT}-${GITHUB_TAG}*
 
-REPLACE_SH+=           ptypes/regen.sh
+.for godir in descriptor jsonpb proto protoc-gen-go ptypes
+GO_BUILD_PATTERN+=     ${GO_SRCPATH}/${godir}/...
+.endfor
+
+REPLACE_SH+=           conformance/conformance.sh conformance/test.sh \
+                       regenerate.sh
 
 CHECK_RELRO_SKIP+=     bin/protoc-gen-go
 
-pre-install:
-       ${RM} -f ${WRKSRC}/pkg/${GO_PLATFORM}/github.com/golang/protobuf/proto/testdata.a
-
 .include "../../lang/go/go-package.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0a5e1273b118 -r 542aa8484df2 devel/go-protobuf/PLIST
--- a/devel/go-protobuf/PLIST   Tue Sep 11 17:45:17 2018 +0000
+++ b/devel/go-protobuf/PLIST   Tue Sep 11 18:27:08 2018 +0000
@@ -1,11 +1,14 @@
-@comment $NetBSD: PLIST,v 1.2 2018/03/11 19:45:21 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/09/11 18:27:08 minskim Exp $
 bin/protoc-gen-go
+gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/descriptor.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/jsonpb.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/jsonpb/jsonpb_test_proto.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/proto.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/proto/proto3_proto.a
+gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/proto/test_proto.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/protoc-gen-go/descriptor.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/protoc-gen-go/generator.a
+gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/protoc-gen-go/grpc.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/protoc-gen-go/plugin.a
 gopkg/pkg/${GO_PLATFORM}/github.com/golang/protobuf/ptypes.a
@@ -18,32 +21,39 @@
 gopkg/src/github.com/golang/protobuf/AUTHORS
 gopkg/src/github.com/golang/protobuf/CONTRIBUTORS
 gopkg/src/github.com/golang/protobuf/LICENSE
-gopkg/src/github.com/golang/protobuf/Make.protobuf
 gopkg/src/github.com/golang/protobuf/Makefile
 gopkg/src/github.com/golang/protobuf/README.md
-gopkg/src/github.com/golang/protobuf/_conformance/Makefile
-gopkg/src/github.com/golang/protobuf/_conformance/conformance.go
-gopkg/src/github.com/golang/protobuf/_conformance/conformance_proto/conformance.pb.go
-gopkg/src/github.com/golang/protobuf/_conformance/conformance_proto/conformance.proto
+gopkg/src/github.com/golang/protobuf/conformance/Makefile
+gopkg/src/github.com/golang/protobuf/conformance/conformance.go
+gopkg/src/github.com/golang/protobuf/conformance/conformance.sh
+gopkg/src/github.com/golang/protobuf/conformance/failure_list_go.txt
+gopkg/src/github.com/golang/protobuf/conformance/internal/conformance_proto/conformance.pb.go
+gopkg/src/github.com/golang/protobuf/conformance/internal/conformance_proto/conformance.proto
+gopkg/src/github.com/golang/protobuf/conformance/test.sh
+gopkg/src/github.com/golang/protobuf/descriptor/descriptor.go
+gopkg/src/github.com/golang/protobuf/descriptor/descriptor_test.go
 gopkg/src/github.com/golang/protobuf/jsonpb/jsonpb.go
 gopkg/src/github.com/golang/protobuf/jsonpb/jsonpb_test.go
-gopkg/src/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/Makefile
 gopkg/src/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/more_test_objects.pb.go
 gopkg/src/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/more_test_objects.proto
 gopkg/src/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/test_objects.pb.go
 gopkg/src/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/test_objects.proto
-gopkg/src/github.com/golang/protobuf/proto/Makefile
 gopkg/src/github.com/golang/protobuf/proto/all_test.go
 gopkg/src/github.com/golang/protobuf/proto/any_test.go
 gopkg/src/github.com/golang/protobuf/proto/clone.go
 gopkg/src/github.com/golang/protobuf/proto/clone_test.go
 gopkg/src/github.com/golang/protobuf/proto/decode.go
+gopkg/src/github.com/golang/protobuf/proto/decode_test.go
+gopkg/src/github.com/golang/protobuf/proto/discard.go
+gopkg/src/github.com/golang/protobuf/proto/discard_test.go
 gopkg/src/github.com/golang/protobuf/proto/encode.go
+gopkg/src/github.com/golang/protobuf/proto/encode_test.go
 gopkg/src/github.com/golang/protobuf/proto/equal.go
 gopkg/src/github.com/golang/protobuf/proto/equal_test.go
 gopkg/src/github.com/golang/protobuf/proto/extensions.go
 gopkg/src/github.com/golang/protobuf/proto/extensions_test.go
 gopkg/src/github.com/golang/protobuf/proto/lib.go
+gopkg/src/github.com/golang/protobuf/proto/map_test.go
 gopkg/src/github.com/golang/protobuf/proto/message_set.go
 gopkg/src/github.com/golang/protobuf/proto/message_set_test.go
 gopkg/src/github.com/golang/protobuf/proto/pointer_reflect.go
@@ -54,45 +64,80 @@
 gopkg/src/github.com/golang/protobuf/proto/proto3_test.go
 gopkg/src/github.com/golang/protobuf/proto/size2_test.go
 gopkg/src/github.com/golang/protobuf/proto/size_test.go
-gopkg/src/github.com/golang/protobuf/proto/testdata/Makefile
-gopkg/src/github.com/golang/protobuf/proto/testdata/golden_test.go
-gopkg/src/github.com/golang/protobuf/proto/testdata/test.pb.go
-gopkg/src/github.com/golang/protobuf/proto/testdata/test.proto
+gopkg/src/github.com/golang/protobuf/proto/table_marshal.go
+gopkg/src/github.com/golang/protobuf/proto/table_merge.go
+gopkg/src/github.com/golang/protobuf/proto/table_unmarshal.go
+gopkg/src/github.com/golang/protobuf/proto/test_proto/test.pb.go
+gopkg/src/github.com/golang/protobuf/proto/test_proto/test.proto
 gopkg/src/github.com/golang/protobuf/proto/text.go
 gopkg/src/github.com/golang/protobuf/proto/text_parser.go
 gopkg/src/github.com/golang/protobuf/proto/text_parser_test.go
 gopkg/src/github.com/golang/protobuf/proto/text_test.go
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/Makefile
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/descriptor/Makefile
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/doc.go
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/generator/Makefile
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/generator/generator.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap_test.go
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/generator/name_test.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/golden_test.go
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/grpc/grpc.go
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/link_grpc.go
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/main.go
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/plugin/Makefile
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.golden
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/Makefile
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base.proto
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/deprecated/deprecated.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/deprecated/deprecated.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base/extension_base.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base/extension_base.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra/extension_extra.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra/extension_extra.proto
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_test.go
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user.proto
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/grpc.proto
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imp.pb.go.golden
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imp.proto
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imp2.proto
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imp3.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user/extension_user.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user/extension_user.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/grpc/grpc.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/grpc/grpc.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/a.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/a.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/b.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/b.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/a.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/a.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/b.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/b.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/import_public_test.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt/m.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt/m.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m1.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m2.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m3.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m4.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m1.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m2.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m1.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m2.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_all.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_all.proto
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/main_test.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi1.pb.go
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi1.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi2.pb.go
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi2.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi3.pb.go
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi3.proto
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go.golden
 gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.proto
-gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/proto3.proto
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/proto3/proto3.pb.go
+gopkg/src/github.com/golang/protobuf/protoc-gen-go/testdata/proto3/proto3.proto
 gopkg/src/github.com/golang/protobuf/ptypes/any.go
 gopkg/src/github.com/golang/protobuf/ptypes/any/any.pb.go
 gopkg/src/github.com/golang/protobuf/ptypes/any/any.proto
@@ -104,7 +149,6 @@
 gopkg/src/github.com/golang/protobuf/ptypes/duration_test.go
 gopkg/src/github.com/golang/protobuf/ptypes/empty/empty.pb.go
 gopkg/src/github.com/golang/protobuf/ptypes/empty/empty.proto
-gopkg/src/github.com/golang/protobuf/ptypes/regen.sh
 gopkg/src/github.com/golang/protobuf/ptypes/struct/struct.pb.go
 gopkg/src/github.com/golang/protobuf/ptypes/struct/struct.proto
 gopkg/src/github.com/golang/protobuf/ptypes/timestamp.go
@@ -113,3 +157,4 @@
 gopkg/src/github.com/golang/protobuf/ptypes/timestamp_test.go
 gopkg/src/github.com/golang/protobuf/ptypes/wrappers/wrappers.pb.go
 gopkg/src/github.com/golang/protobuf/ptypes/wrappers/wrappers.proto
+gopkg/src/github.com/golang/protobuf/regenerate.sh
diff -r 0a5e1273b118 -r 542aa8484df2 devel/go-protobuf/buildlink3.mk
--- a/devel/go-protobuf/buildlink3.mk   Tue Sep 11 17:45:17 2018 +0000
+++ b/devel/go-protobuf/buildlink3.mk   Tue Sep 11 18:27:08 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2018/01/07 13:04:02 rillig Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2018/09/11 18:27:08 minskim Exp $
 
 BUILDLINK_TREE+=       go-protobuf
 
@@ -8,7 +8,7 @@
 BUILDLINK_CONTENTS_FILTER.go-protobuf= ${EGREP} gopkg/
 BUILDLINK_DEPMETHOD.go-protobuf?=      build
 
-BUILDLINK_API_DEPENDS.go-protobuf+=    go-protobuf>=20160829
+BUILDLINK_API_DEPENDS.go-protobuf+=    go-protobuf>=1.2.0
 BUILDLINK_PKGSRCDIR.go-protobuf?=      ../../devel/go-protobuf
 .endif # GO_PROTOBUF_BUILDLINK3_MK
 
diff -r 0a5e1273b118 -r 542aa8484df2 devel/go-protobuf/distinfo
--- a/devel/go-protobuf/distinfo        Tue Sep 11 17:45:17 2018 +0000
+++ b/devel/go-protobuf/distinfo        Tue Sep 11 18:27:08 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2016/09/11 08:02:30 bsiegert Exp $
+$NetBSD: distinfo,v 1.2 2018/09/11 18:27:08 minskim Exp $
 
-SHA1 (go-protobuf-20160829-1f49d83.tar.gz) = 5a408b2784f9ea5144e1fda9b624a4459099521b
-RMD160 (go-protobuf-20160829-1f49d83.tar.gz) = fc382af2a7f13792140005bbffab7ded0a935655
-SHA512 (go-protobuf-20160829-1f49d83.tar.gz) = 6281846f0395df8411bf8548f83ebdf3c571acc888ef9a06fefd66e96345502f698728b7f9c03969c23af4ebca9374d3d285fa6bf2c0bc970efd8bbef5969e1e
-Size (go-protobuf-20160829-1f49d83.tar.gz) = 240139 bytes
+SHA1 (go-protobuf-1.2.0.tar.gz) = ec7e07d7e4d2e3ed7f66a9e04b50810090d9d20a
+RMD160 (go-protobuf-1.2.0.tar.gz) = fdacc40a0c7463d46d088ab46dfc81ee99226ebf
+SHA512 (go-protobuf-1.2.0.tar.gz) = a0f596ee96f7501ee47da75ea234c1e29c0abb2c3fda731acd601a55880502ae90d70f6d3da9c9a35e493fd1bcb69971c062e16b1e49a0996137950dac2effac
+Size (go-protobuf-1.2.0.tar.gz) = 332565 bytes



Home | Main Index | Thread Index | Old Index