pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/go-protobuf
Module Name: pkgsrc
Committed By: minskim
Date: Tue Sep 11 18:27:08 UTC 2018
Modified Files:
pkgsrc/devel/go-protobuf: Makefile PLIST buildlink3.mk distinfo
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/go-protobuf/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/go-protobuf/PLIST \
pkgsrc/devel/go-protobuf/buildlink3.mk
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/go-protobuf/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/go-protobuf/Makefile
diff -u pkgsrc/devel/go-protobuf/Makefile:1.10 pkgsrc/devel/go-protobuf/Makefile:1.11
--- pkgsrc/devel/go-protobuf/Makefile:1.10 Tue Jun 12 17:50:25 2018
+++ pkgsrc/devel/go-protobuf/Makefile Tue Sep 11 18:27:08 2018
@@ -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
-CHECK_RELRO_SKIP+= bin/protoc-gen-go
+REPLACE_SH+= conformance/conformance.sh conformance/test.sh \
+ regenerate.sh
-pre-install:
- ${RM} -f ${WRKSRC}/pkg/${GO_PLATFORM}/github.com/golang/protobuf/proto/testdata.a
+CHECK_RELRO_SKIP+= bin/protoc-gen-go
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/go-protobuf/PLIST
diff -u pkgsrc/devel/go-protobuf/PLIST:1.2 pkgsrc/devel/go-protobuf/PLIST:1.3
--- pkgsrc/devel/go-protobuf/PLIST:1.2 Sun Mar 11 19:45:21 2018
+++ pkgsrc/devel/go-protobuf/PLIST Tue Sep 11 18:27:08 2018
@@ -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/pkg/${GO_PLATFORM}/github.com/gola
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/pro
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/pty
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/pty
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
Index: pkgsrc/devel/go-protobuf/buildlink3.mk
diff -u pkgsrc/devel/go-protobuf/buildlink3.mk:1.2 pkgsrc/devel/go-protobuf/buildlink3.mk:1.3
--- pkgsrc/devel/go-protobuf/buildlink3.mk:1.2 Sun Jan 7 13:04:02 2018
+++ pkgsrc/devel/go-protobuf/buildlink3.mk Tue Sep 11 18:27:08 2018
@@ -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 @@ GO_PROTOBUF_BUILDLINK3_MK:=
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
Index: pkgsrc/devel/go-protobuf/distinfo
diff -u pkgsrc/devel/go-protobuf/distinfo:1.1 pkgsrc/devel/go-protobuf/distinfo:1.2
--- pkgsrc/devel/go-protobuf/distinfo:1.1 Sun Sep 11 08:02:30 2016
+++ pkgsrc/devel/go-protobuf/distinfo Tue Sep 11 18:27:08 2018
@@ -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