git: 658240560637 - main - science/py-tensorflow: Fix build with protobuf 3.17.3
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Jul 21 18:15:17 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=65824056063718696f10c0a2f08d5c0bd6a9d737
commit 65824056063718696f10c0a2f08d5c0bd6a9d737
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-07-21 17:59:48 +0000
Commit: Po-Chuan Hsieh <sunpoet at 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) {
More information about the dev-commits-ports-all
mailing list