Upgrade to Protobuf 3.5.1 and Protoc 3.5.1-1. (#3921)

protoc-3.5.0-linux-x86_64 introduced GLIBC_2.14 dependency and broke
gRPC release process (https://github.com/google/protobuf/issues/4138).
3.5.1-1 is the proper re-build.
This commit is contained in:
Kun Zhang 2018-01-05 16:40:20 -08:00 committed by GitHub
parent 5aed252105
commit 86d64122e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 22 additions and 22 deletions

View File

@ -5,7 +5,7 @@ language: java
env: env:
global: global:
- GRADLE_OPTS=-Xmx512m - GRADLE_OPTS=-Xmx512m
- PROTOBUF_VERSION=3.5.0 - PROTOBUF_VERSION=3.5.1
- LDFLAGS=-L/tmp/protobuf/lib - LDFLAGS=-L/tmp/protobuf/lib
- CXXFLAGS=-I/tmp/protobuf/include - CXXFLAGS=-I/tmp/protobuf/include
- LD_LIBRARY_PATH=/tmp/protobuf/lib - LD_LIBRARY_PATH=/tmp/protobuf/lib

View File

@ -33,7 +33,7 @@ For Linux, Mac and MinGW:
``` ```
$ git clone https://github.com/google/protobuf.git $ git clone https://github.com/google/protobuf.git
$ cd protobuf $ cd protobuf
$ git checkout v3.5.0 $ git checkout v3.5.1
$ ./autogen.sh $ ./autogen.sh
$ ./configure $ ./configure
$ make $ make
@ -72,16 +72,16 @@ When building on Windows and VC++, you need to specify project properties for
Gradle to find protobuf: Gradle to find protobuf:
``` ```
.\gradlew install ^ .\gradlew install ^
-PvcProtobufInclude=C:\path\to\protobuf-3.5.0\src ^ -PvcProtobufInclude=C:\path\to\protobuf-3.5.1\src ^
-PvcProtobufLibs=C:\path\to\protobuf-3.5.0\vsprojects\Release ^ -PvcProtobufLibs=C:\path\to\protobuf-3.5.1\vsprojects\Release ^
-PtargetArch=x86_32 -PtargetArch=x86_32
``` ```
Since specifying those properties every build is bothersome, you can instead Since specifying those properties every build is bothersome, you can instead
create ``<project-root>\gradle.properties`` with contents like: create ``<project-root>\gradle.properties`` with contents like:
``` ```
vcProtobufInclude=C:\\path\\to\\protobuf-3.5.0\\src vcProtobufInclude=C:\\path\\to\\protobuf-3.5.1\\src
vcProtobufLibs=C:\\path\\to\\protobuf-3.5.0\\vsprojects\\Release vcProtobufLibs=C:\\path\\to\\protobuf-3.5.1\\vsprojects\\Release
targetArch=x86_32 targetArch=x86_32
``` ```

View File

@ -85,7 +85,7 @@ For protobuf-based codegen integrated with the Maven build system, you can use
<artifactId>protobuf-maven-plugin</artifactId> <artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.0</version> <version>0.5.0</version>
<configuration> <configuration>
<protocArtifact>com.google.protobuf:protoc:3.5.0:exe:${os.detected.classifier}</protocArtifact> <protocArtifact>com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId> <pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.8.0:exe:${os.detected.classifier}</pluginArtifact> <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.8.0:exe:${os.detected.classifier}</pluginArtifact>
</configuration> </configuration>
@ -123,7 +123,7 @@ buildscript {
protobuf { protobuf {
protoc { protoc {
artifact = "com.google.protobuf:protoc:3.5.0" artifact = "com.google.protobuf:protoc:3.5.1-1"
} }
plugins { plugins {
grpc { grpc {

View File

@ -30,7 +30,7 @@ android {
protobuf { protobuf {
protoc { protoc {
artifact = 'com.google.protobuf:protoc:3.5.0' artifact = 'com.google.protobuf:protoc:3.5.1-1'
} }
plugins { plugins {
grpc { grpc {

View File

@ -98,8 +98,8 @@ subprojects {
nettyVersion = '4.1.17.Final' nettyVersion = '4.1.17.Final'
guavaVersion = '19.0' guavaVersion = '19.0'
protobufVersion = '3.5.0' protobufVersion = '3.5.1'
protocVersion = protobufVersion protocVersion = '3.5.1-1'
protobufNanoVersion = '3.0.0-alpha-5' protobufNanoVersion = '3.0.0-alpha-5'
configureProtoCompilation = { configureProtoCompilation = {

View File

@ -7,7 +7,7 @@
set -exu -o pipefail set -exu -o pipefail
export GRADLE_OPTS=-Xmx512m export GRADLE_OPTS=-Xmx512m
export PROTOBUF_VERSION=3.5.0 export PROTOBUF_VERSION=3.5.1
export LDFLAGS=-L/tmp/protobuf/lib export LDFLAGS=-L/tmp/protobuf/lib
export CXXFLAGS=-I/tmp/protobuf/include export CXXFLAGS=-I/tmp/protobuf/include
export LD_LIBRARY_PATH=/tmp/protobuf/lib export LD_LIBRARY_PATH=/tmp/protobuf/lib

View File

@ -1,4 +1,4 @@
set PROTOBUF_VER=3.5.0 set PROTOBUF_VER=3.5.1
set CMAKE_NAME=cmake-3.3.2-win32-x86 set CMAKE_NAME=cmake-3.3.2-win32-x86
if not exist "protobuf-%PROTOBUF_VER%\cmake\build\Release\" ( if not exist "protobuf-%PROTOBUF_VER%\cmake\build\Release\" (

View File

@ -2,7 +2,7 @@ FROM protoc-artifacts:latest
RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \ RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \
git fetch && \ git fetch && \
git checkout v3.5.0 && \ git checkout v3.5.1 && \
./autogen.sh && \ ./autogen.sh && \
CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \ CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \
make clean && make -j$(nproc) && make -j$(nproc) install"' make clean && make -j$(nproc) && make -j$(nproc) install"'

View File

@ -28,7 +28,7 @@ android {
protobuf { protobuf {
protoc { protoc {
artifact = 'com.google.protobuf:protoc:3.5.0' artifact = 'com.google.protobuf:protoc:3.5.1-1'
} }
plugins { plugins {
javalite { javalite {

View File

@ -25,7 +25,7 @@ android {
protobuf { protobuf {
protoc { protoc {
artifact = 'com.google.protobuf:protoc:3.5.0' artifact = 'com.google.protobuf:protoc:3.5.1-1'
} }
plugins { plugins {
javalite { javalite {

View File

@ -37,7 +37,7 @@ dependencies {
protobuf { protobuf {
protoc { protoc {
artifact = 'com.google.protobuf:protoc:3.5.0' artifact = 'com.google.protobuf:protoc:3.5.1-1'
} }
plugins { plugins {
grpc { grpc {

View File

@ -67,7 +67,7 @@
<artifactId>protobuf-maven-plugin</artifactId> <artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.0</version> <version>0.5.0</version>
<configuration> <configuration>
<protocArtifact>com.google.protobuf:protoc:3.5.0:exe:${os.detected.classifier}</protocArtifact> <protocArtifact>com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId> <pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
</configuration> </configuration>

View File

@ -139,8 +139,8 @@ def com_google_protobuf():
native.http_archive( native.http_archive(
name = "com_google_protobuf", name = "com_google_protobuf",
sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30", sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30",
strip_prefix = "protobuf-3.5.0", strip_prefix = "protobuf-3.5.1",
urls = ["https://github.com/google/protobuf/archive/v3.5.0.zip"], urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"],
) )
def com_google_protobuf_java(): def com_google_protobuf_java():
@ -149,8 +149,8 @@ def com_google_protobuf_java():
native.http_archive( native.http_archive(
name = "com_google_protobuf_java", name = "com_google_protobuf_java",
sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30", sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30",
strip_prefix = "protobuf-3.5.0", strip_prefix = "protobuf-3.5.1",
urls = ["https://github.com/google/protobuf/archive/v3.5.0.zip"], urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"],
) )
def com_google_protobuf_nano_protobuf_javanano(): def com_google_protobuf_nano_protobuf_javanano():