pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/protobuf



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed May 29 14:48:12 UTC 2019

Modified Files:
        pkgsrc/devel/protobuf: Makefile PLIST distinfo
Added Files:
        pkgsrc/devel/protobuf/patches: patch-src_Makefile.in

Log Message:
protobuf: updated to 3.8.0

Protocol Buffers v3.8.0
C++
Use std::atomic in case of myriad2 platform
Always declare enums to be int-sized
Added DebugString() and ShortDebugString() methods on MessageLite
Specialized different parse loop control flows
Make hasbits potentially in register. The or's start forming an obstacle because it's a read modify store on the same mem address on each iteration.
Move to an internal MACRO for parser validity checks.
Improve map parsing performance.
Make MergePartialFromCodedStream non virtual. This allows direct calls, potential inlining and is also a code health improvement
Add an overall limit to parse_context to prevent reading past it. This allows to remove a annoying level of indirection.
Fix a mistake, we shouldn't verify map key/value strings for utf8 in opt mode for proto2.
Further improvements to cut binary size.
Prepare to make MergePartialFromCodedStream non-virtual.
A report on some interesting behavior change in python (caused by b/27494216) made me realize there is a check that needs to be done in case the parse ended on a end group tag.
Add a note of caution to the comments around skip in CodedOutputStream.
Simplify end check.
Add overload for ParseMessage for MessageLite/Message types. If the explicit type is not known inlining won't help de-virtualizing the virtual call.
Reduce linker input. It turns out that ParseMessage is not inlined, producing template instantiations that are used only once and save nothing but cost more.
Improve the parser.
[c++17] Changed proto2::RepeatedPtrField iterators to no longer derive from the deprecated std::iterator class.
Change the default value of case_insensitive_enum_parsing to false for JsonStringToMessage.
Add a warning if a field name doesn't match the style guide.
Fix TextFormat not round-trip correctly when float value is max float.
Added locationed info for some errors at compiler
Python reserved keywords are now working with getattr()/setattr() for most descriptors.
Added AllowUnknownField() in text_format
Append '_' to C++ reserved keywords for message, enum, extension
Fix MSVC warning C4244 in protobuf's parse_context.h.
Updating Iterators to be compatible with C++17 in MSVC.
Use capability annotation in mutex.h
Fix "UndefinedBehaviorSanitizer: cfi-bad-type"
CriticalSectionLock class as a lightweight replacement for std::mutex on Windows platforms.
Removed vestigial wire_format_lite_inl.h


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/protobuf/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/protobuf/PLIST
cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/protobuf/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/protobuf/patches/patch-src_Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/protobuf/Makefile
diff -u pkgsrc/devel/protobuf/Makefile:1.19 pkgsrc/devel/protobuf/Makefile:1.20
--- pkgsrc/devel/protobuf/Makefile:1.19 Mon Apr  1 12:36:41 2019
+++ pkgsrc/devel/protobuf/Makefile      Wed May 29 14:48:12 2019
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2019/04/01 12:36:41 adam Exp $
+# $NetBSD: Makefile,v 1.20 2019/05/29 14:48:12 adam Exp $
 
-DISTNAME=      protobuf-cpp-3.7.1
+DISTNAME=      protobuf-cpp-3.8.0
 PKGNAME=       ${DISTNAME:S/-cpp//}
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=google/}

Index: pkgsrc/devel/protobuf/PLIST
diff -u pkgsrc/devel/protobuf/PLIST:1.11 pkgsrc/devel/protobuf/PLIST:1.12
--- pkgsrc/devel/protobuf/PLIST:1.11    Thu Mar 21 21:26:23 2019
+++ pkgsrc/devel/protobuf/PLIST Wed May 29 14:48:12 2019
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2019/03/21 21:26:23 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2019/05/29 14:48:12 adam Exp $
 bin/protoc
 include/google/protobuf/any.h
 include/google/protobuf/any.pb.h
@@ -87,6 +87,7 @@ include/google/protobuf/stubs/fastmem.h
 include/google/protobuf/stubs/hash.h
 include/google/protobuf/stubs/logging.h
 include/google/protobuf/stubs/macros.h
+include/google/protobuf/stubs/map_util.h
 include/google/protobuf/stubs/mutex.h
 include/google/protobuf/stubs/once.h
 include/google/protobuf/stubs/platform_macros.h
@@ -112,7 +113,6 @@ include/google/protobuf/util/type_resolv
 include/google/protobuf/util/type_resolver_util.h
 include/google/protobuf/wire_format.h
 include/google/protobuf/wire_format_lite.h
-include/google/protobuf/wire_format_lite_inl.h
 include/google/protobuf/wrappers.pb.h
 include/google/protobuf/wrappers.proto
 lib/libprotobuf-lite.la

Index: pkgsrc/devel/protobuf/distinfo
diff -u pkgsrc/devel/protobuf/distinfo:1.24 pkgsrc/devel/protobuf/distinfo:1.25
--- pkgsrc/devel/protobuf/distinfo:1.24 Mon Apr  1 12:36:41 2019
+++ pkgsrc/devel/protobuf/distinfo      Wed May 29 14:48:12 2019
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.24 2019/04/01 12:36:41 adam Exp $
+$NetBSD: distinfo,v 1.25 2019/05/29 14:48:12 adam Exp $
 
-SHA1 (protobuf-cpp-3.7.1.tar.gz) = 4d2ff527eefec9ab76a9fc09ccd35a2e012f7000
-RMD160 (protobuf-cpp-3.7.1.tar.gz) = 8404be8dc319ab26522c6894170acdd657ccdc59
-SHA512 (protobuf-cpp-3.7.1.tar.gz) = 6e6873f83dc6e8cf565874c428799b0dd86f7eb83130d7eec26225f640560bb74e1604fda16ffd507e0416567236831922fbd9f5354308abee945b5b83ca153e
-Size (protobuf-cpp-3.7.1.tar.gz) = 4554569 bytes
+SHA1 (protobuf-cpp-3.8.0.tar.gz) = a2204357cc9b843b963768650aa6713a418f8e5d
+RMD160 (protobuf-cpp-3.8.0.tar.gz) = 6fdecbb2ac2be899f97a8a94c126913071cab6e5
+SHA512 (protobuf-cpp-3.8.0.tar.gz) = 483969d5a837e966455c9952bb09b92eebf070736a9b39b16ee05c3e0756fd0a8c179f892bca41ac05f8440ceb93a45ec84235b86bc8e89695334c2186116624
+Size (protobuf-cpp-3.8.0.tar.gz) = 4545607 bytes
 SHA1 (patch-configure) = 22a1fc4e701b348772b3e2e4c68aad3b97032cc5
+SHA1 (patch-src_Makefile.in) = 92ae2daf459590d0b1c8fbc50b21f80abb52a0b4
 SHA1 (patch-src_google_protobuf_testing_zcgunzip.cc) = 7bd71bfa3b93f52add0d27fbdba5b8154173b8bf
 SHA1 (patch-src_google_protobuf_testing_zcgzip.cc) = e681eca4f267ad1135e0dbc6a1b2ba91492f40b4
 SHA1 (patch-third__party_googletest_googlemock_configure) = fe3b812e819130d87d99316144507d2454461cd1

Added files:

Index: pkgsrc/devel/protobuf/patches/patch-src_Makefile.in
diff -u /dev/null pkgsrc/devel/protobuf/patches/patch-src_Makefile.in:1.1
--- /dev/null   Wed May 29 14:48:12 2019
+++ pkgsrc/devel/protobuf/patches/patch-src_Makefile.in Wed May 29 14:48:12 2019
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2019/05/29 14:48:12 adam Exp $
+
+Install map_util.h which is needed to build py-protobuf.
+https://github.com/protocolbuffers/protobuf/issues/6186
+
+--- src/Makefile.in.orig       2019-05-29 10:28:06.000000000 +0000
++++ src/Makefile.in
+@@ -1263,6 +1263,7 @@ nobase_include_HEADERS = \
+   google/protobuf/stubs/hash.h                                   \
+   google/protobuf/stubs/logging.h                                \
+   google/protobuf/stubs/macros.h                                 \
++  google/protobuf/stubs/map_util.h                               \
+   google/protobuf/stubs/mutex.h                                  \
+   google/protobuf/stubs/once.h                                   \
+   google/protobuf/stubs/platform_macros.h                        \



Home | Main Index | Thread Index | Old Index