Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2021 18:15:15 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 658240560637 - main - science/py-tensorflow: Fix build with protobuf 3.17.3
Message-ID:  <202107211815.16LIFFTC045437@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=65824056063718696f10c0a2f08d5c0bd6a9d737

commit 65824056063718696f10c0a2f08d5c0bd6a9d737
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-07-21 17:59:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-07-21 18:12:13 +0000

    science/py-tensorflow: Fix build with protobuf 3.17.3
---
 science/py-tensorflow/files/patch-protobuf | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/science/py-tensorflow/files/patch-protobuf b/science/py-tensorflow/files/patch-protobuf
new file mode 100644
index 000000000000..de3cd9510b53
--- /dev/null
+++ b/science/py-tensorflow/files/patch-protobuf
@@ -0,0 +1,22 @@
+--- tensorflow/core/kernels/example_parsing_ops.cc.orig	2021-01-04 20:18:42 UTC
++++ tensorflow/core/kernels/example_parsing_ops.cc
+@@ -859,7 +859,7 @@ class DecodeJSONExampleOp : public OpKernel {
+           json_example, &binary_examples->flat<string>()(i));
+       OP_REQUIRES(ctx, status.ok(),
+                   errors::InvalidArgument("Error while parsing JSON: ",
+-                                          string(status.error_message())));
++                                          string(status.message())));
+     }
+   }
+ 
+--- tensorflow/core/profiler/rpc/client/dump_tpu_profile.cc.orig	2021-01-04 20:18:42 UTC
++++ tensorflow/core/profiler/rpc/client/dump_tpu_profile.cc
+@@ -102,7 +102,7 @@ Status DumpOpProfileToLogDirectory(StringPiece run_dir
+   if (!status.ok()) {
+     return errors::Internal(
+         "Failed to convert op profile to json. Skipping... ",
+-        string(status.error_message()));
++        string(status.message()));
+   }
+   TF_RETURN_IF_ERROR(WriteStringToFile(Env::Default(), path, json));
+   if (os) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107211815.16LIFFTC045437>