Hello community, here is the log from the commit of package tensorflow for openSUSE:Leap:15.2 checked in at 2020-03-23 07:13:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/tensorflow (Old) and /work/SRC/openSUSE:Leap:15.2/.tensorflow.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tensorflow" Mon Mar 23 07:13:22 2020 rev:3 rq:786743 version:1.15.2 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/tensorflow/tensorflow.changes 2020-03-06 12:40:45.922738532 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.tensorflow.new.3160/tensorflow.changes 2020-03-23 07:13:44.786493232 +0100 @@ -1,0 +2,63 @@ +Tue Mar 17 09:29:31 UTC 2020 - Simon Lees <[email protected]> + +- Suppress library-without-ldconfig-* in rpmlintrc as it seems + intentional and is currently causing builds to fail + +------------------------------------------------------------------- +Mon Mar 16 15:00:51 UTC 2020 - Christian Goll <[email protected]> + +- fixed mpi and hpc builds, added file + * fix-mpi-build.patch + +------------------------------------------------------------------- +Thu Mar 12 10:50:38 UTC 2020 - Christian Goll <[email protected]> + +- Fixed python3.8 build and logging with the the two patches + * Fix-build-failures-for-python-3.8.patch which fixes the build + * Fix-TensorFlow-on-Python-3.8-logger-issue.patch which fixes the logging + +------------------------------------------------------------------- +Wed Mar 11 10:12:39 UTC 2020 - Christian Goll <[email protected]> + +- updated to latest stable v1 version 1.15.2 which fixes + CVE-2019-16778 (bsc#1159338) +- Highlights of this version are: + * MKL-DNN contraction kernels on by default + * Fixes a security vulnerability where converting a Python string + to a tf.float16 value produces a segmentation fault (CVE-2020-5215) + see RELEASE.md for full changelog +- updated following sources: + * tensorflow-1.15.2.tar.gz + * bazel-toolchains.tar.gz + * eigen.tar.gz + * gemmlowp.zip + * google-cloud-cpp.tar.gz + * license.rst.txt + * rules_closure.tar.gz +- added following patches: + * removed-docker-tools.patch to remove docker build during package build + * right-json-location.patch to make syslibs point to json + * tensorflow-make_aws_sdk_work_on_aarch64.patch + * fix-lite.patch + * json-feature-name.patch +- removed follwing sources + * abseil-pypi-v0.2.2.tar.gz + * aws-sdk-cpp-1.3.15.tar.gz + * boring_ssl.tar.gz + * double_conversion.zip + * fft.tgz + * flatbuffers_v1.9.0.tar.gz + * gast-0.2.0.tar.gz + * google-flatbuffers-1.10.0~pre.tar.gz + * google-nsync-1.20.1.tar.gz + * python-license.txt + * unicode-org-icu.tar.gz +- removed following patches: + * fix_mvapich_mpi_bzl.patch + * grpc-namespace-corrections.patch + * remove-keras.patch + * tensorflow-fix_lite.patch + * support-new-bazel.patch + + +------------------------------------------------------------------- Old: ---- 816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz abseil-pypi-v0.2.2.tar.gz aws-sdk-cpp-1.3.15.tar.gz boring_ssl.tar.gz double_conversion.zip fft.tgz fix_mvapich_mpi_bzl.patch flatbuffers_v1.9.0.tar.gz gast-0.2.0.tar.gz google-flatbuffers-1.10.0~pre.tar.gz google-nsync-1.20.1.tar.gz grpc-namespace-corrections.patch json-cpp-1.8.4.tar.gz nsync_1.20.0.tar.gz python-license.txt remove-keras.patch support-new-bazel.patch tensorflow-1.13.2.tar.gz tensorflow-fix_lite.patch tensorflow-make_aws_sdk_work_on_aarch64.patch unicode-org-icu.tar.gz New: ---- Fix-TensorFlow-on-Python-3.8-logger-issue.patch Fix-build-failures-for-python-3.8.patch fft2d.tgz fix-lite.patch fix-mpi-build.patch functools32-3.2.3-2.tar.gz gast-0.2.2.tar.gz json-feature-name.patch kissfft.tar.gz llvm.tar.gz mkl-dnn.tar.gz pybind11-v2.3.0.tar.gz removed-docker-tools.patch right-json-location.patch tensorflow-1.15.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tensorflow.spec ++++++ ++++ 636 lines (skipped) ++++ between /work/SRC/openSUSE:Leap:15.2/tensorflow/tensorflow.spec ++++ and /work/SRC/openSUSE:Leap:15.2/.tensorflow.new.3160/tensorflow.spec ++++++ Fix-TensorFlow-on-Python-3.8-logger-issue.patch ++++++ >From 0cdd66245dc10cdb255c55e617c1b2852579bd11 Mon Sep 17 00:00:00 2001 From: Yong Tang <[email protected]> Date: Sun, 3 Nov 2019 19:52:04 +0000 Subject: [PATCH 3/3] Fix TensorFlow on Python 3.8 logger issue This fix tries to address the issue raised in 33799 where running tensorflow on python 3.8 (Ubuntu 18.04) raised the following error: ``` TypeError: _logger_find_caller() takes from 0 to 1 positional arguments but 2 were given ``` The issue was that findCaller changed in Python 3.8 This PR fixes the issue. This PR fixes 33799 Signed-off-by: Yong Tang <[email protected]> --- tensorflow/python/platform/tf_logging.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/platform/tf_logging.py b/tensorflow/python/platform/tf_logging.py index 86a4957c9d..a397393e7f 100644 --- a/tensorflow/python/platform/tf_logging.py +++ b/tensorflow/python/platform/tf_logging.py @@ -57,9 +57,18 @@ def _get_caller(offset=3): f = f.f_back return None, None - # The definition of `findCaller` changed in Python 3.2 -if _sys.version_info.major >= 3 and _sys.version_info.minor >= 2: +if _sys.version_info.major >= 3 and _sys.version_info.minor >= 8: + def _logger_find_caller(stack_info=False, stacklevel=1): # pylint: disable=g-wrong-blank-lines + code, frame = _get_caller(4) + sinfo = None + if stack_info: + sinfo = '\n'.join(_traceback.format_stack()) + if code: + return (code.co_filename, frame.f_lineno, code.co_name, sinfo) + else: + return '(unknown file)', 0, '(unknown function)', sinfo +elif _sys.version_info.major >= 3 and _sys.version_info.minor >= 2: def _logger_find_caller(stack_info=False): # pylint: disable=g-wrong-blank-lines code, frame = _get_caller(4) sinfo = None -- 2.25.0 ++++++ Fix-build-failures-for-python-3.8.patch ++++++ >From e68924c64bdbca01a014e883951953fd73be814f Mon Sep 17 00:00:00 2001 From: Yong Tang <[email protected]> Date: Mon, 21 Oct 2019 14:39:33 +0000 Subject: [PATCH 2/2] Fix build failures for python 3.8 This fix tries to address the issue raised in 33543 where tensorflow build on python 3.8 failed. This fix fixed the issue as was suggested in 33543 and pip builds finished successfully. NOTE: tensorflow depends on h5py which does not have python 3.8 support yet, as such a release version of tensorflow for python 3.8 may have to wait for h5py first. Signed-off-by: Yong Tang <[email protected]> --- tensorflow/python/eager/pywrap_tfe_src.cc | 4 ++-- tensorflow/python/lib/core/bfloat16.cc | 2 +- tensorflow/python/lib/core/ndarray_tensor_bridge.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tensorflow/python/eager/pywrap_tfe_src.cc b/tensorflow/python/eager/pywrap_tfe_src.cc index ba9d8a36b0..5456245421 100644 --- a/tensorflow/python/eager/pywrap_tfe_src.cc +++ b/tensorflow/python/eager/pywrap_tfe_src.cc @@ -1319,7 +1319,7 @@ static PyTypeObject TFE_Py_Tape_Type = { sizeof(TFE_Py_Tape), /* tp_basicsize */ 0, /* tp_itemsize */ &TFE_Py_Tape_Delete, /* tp_dealloc */ - nullptr, /* tp_print */ + 0, /* tp_print */ nullptr, /* tp_getattr */ nullptr, /* tp_setattr */ nullptr, /* tp_reserved */ @@ -1353,7 +1353,7 @@ static PyTypeObject TFE_Py_ForwardAccumulator_Type = { sizeof(TFE_Py_ForwardAccumulator), /* tp_basicsize */ 0, /* tp_itemsize */ &TFE_Py_ForwardAccumulatorDelete, /* tp_dealloc */ - nullptr, /* tp_print */ + 0, /* tp_print */ nullptr, /* tp_getattr */ nullptr, /* tp_setattr */ nullptr, /* tp_reserved */ diff --git a/tensorflow/python/lib/core/bfloat16.cc b/tensorflow/python/lib/core/bfloat16.cc index fde3a83770..54be76375c 100644 --- a/tensorflow/python/lib/core/bfloat16.cc +++ b/tensorflow/python/lib/core/bfloat16.cc @@ -317,7 +317,7 @@ PyTypeObject PyBfloat16_Type = { sizeof(PyBfloat16), // tp_basicsize 0, // tp_itemsize nullptr, // tp_dealloc - nullptr, // tp_print + 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare / tp_reserved diff --git a/tensorflow/python/lib/core/ndarray_tensor_bridge.cc b/tensorflow/python/lib/core/ndarray_tensor_bridge.cc index 16f6934186..03ff77100d 100644 --- a/tensorflow/python/lib/core/ndarray_tensor_bridge.cc +++ b/tensorflow/python/lib/core/ndarray_tensor_bridge.cc @@ -86,7 +86,7 @@ PyTypeObject TensorReleaserType = { 0, /* tp_itemsize */ /* methods */ TensorReleaser_dealloc, /* tp_dealloc */ - nullptr, /* tp_print */ + 0, /* tp_print */ nullptr, /* tp_getattr */ nullptr, /* tp_setattr */ nullptr, /* tp_compare */ -- 2.25.0 ++++++ _multibuild ++++++ --- /var/tmp/diff_new_pack.XcgBFT/_old 2020-03-23 07:13:47.838495065 +0100 +++ /var/tmp/diff_new_pack.XcgBFT/_new 2020-03-23 07:13:47.838495065 +0100 @@ -4,15 +4,4 @@ <package>hpc</package> <package>hpc-openmpi2</package> <package>hpc-mvapich2</package> - <package>hpc-avx2</package> - <package>hpc-avx2-openmpi2</package> - <package>hpc-avx2-mvapich2</package> - <!-- - <package>hpc-avx2-openmpi3</package> - <package>cuda-9.0</package> - <package>opencl</package> - <package>hpc-opencl</package> - <package>cuda-9.0</package> - <package>hpc-cuda-9.0</package>cuda-9.0</package> - --> </multibuild> ++++++ abseil-cpp.tar.gz ++++++ ++++ 38334 lines of diff (skipped) ++++++ bazel-toolchains.tar.gz ++++++ ++++ 76603 lines of diff (skipped) ++++++ eigen.tar.gz ++++++ ++++ 41506 lines of diff (skipped) ++++++ fft.tgz -> fft2d.tgz ++++++ ++++ 24079 lines of diff (skipped) ++++++ fix-lite.patch ++++++ >From b652b8e2a93b0562f8c186d6cc25dba9c0d19de4 Mon Sep 17 00:00:00 2001 From: Christian Goll <[email protected]> Date: Wed, 11 Mar 2020 10:30:57 +0100 Subject: [PATCH] fix lite Use the system flatbnuffer library instead of a downloaded one --- tensorflow/lite/tools/make/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tensorflow/lite/tools/make/Makefile b/tensorflow/lite/tools/make/Makefile index 73c50d3272..93d769d716 100644 --- a/tensorflow/lite/tools/make/Makefile +++ b/tensorflow/lite/tools/make/Makefile @@ -38,15 +38,15 @@ INCLUDES := \ -I$(MAKEFILE_DIR)/downloads/gemmlowp \ -I$(MAKEFILE_DIR)/downloads/neon_2_sse \ -I$(MAKEFILE_DIR)/downloads/farmhash/src \ --I$(MAKEFILE_DIR)/downloads/flatbuffers/include \ -I$(OBJDIR) # This is at the end so any globally-installed frameworks like protobuf don't # override local versions in the source tree. -INCLUDES += -I/usr/local/include +INCLUDES += -I/usr/include # These are the default libraries needed, but they can be added to or # overridden by the platform-specific settings in target makefiles. LIBS := \ +-lflatbuffers \ -lstdc++ \ -lpthread \ -lm \ @@ -121,8 +121,7 @@ $(wildcard tensorflow/lite/kernels/internal/optimized/*.cc) \ $(wildcard tensorflow/lite/kernels/internal/reference/*.cc) \ $(PROFILER_SRCS) \ tensorflow/lite/tools/make/downloads/farmhash/src/farmhash.cc \ -tensorflow/lite/tools/make/downloads/fft2d/fftsg.c \ -tensorflow/lite/tools/make/downloads/flatbuffers/src/util.cpp +tensorflow/lite/tools/make/downloads/fft2d/fftsg.c endif # Remove any duplicates. CORE_CC_ALL_SRCS := $(sort $(CORE_CC_ALL_SRCS)) -- 2.25.0 ++++++ fix-mpi-build.patch ++++++ >From ab02e2a5b343db8a128907a04e374c49141d5e3c Mon Sep 17 00:00:00 2001 From: Christian Goll <[email protected]> Date: Mon, 16 Mar 2020 15:49:59 +0100 Subject: [PATCH] fix mpi build https://github.com/tensorflow/tensorflow/issues/17437 --- tensorflow/contrib/mpi_collectives/BUILD | 1 + tensorflow/tensorflow.bzl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorflow/contrib/mpi_collectives/BUILD b/tensorflow/contrib/mpi_collectives/BUILD index f8072ac1e8..8f2649eb50 100644 --- a/tensorflow/contrib/mpi_collectives/BUILD +++ b/tensorflow/contrib/mpi_collectives/BUILD @@ -53,6 +53,7 @@ tf_custom_op_library( ":mpi_defines", ":mpi_message_proto_cc", "//third_party/mpi", + "//tensorflow/stream_executor", ], ) diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl index 4aa412180f..d3e0a48c0d 100644 --- a/tensorflow/tensorflow.bzl +++ b/tensorflow/tensorflow.bzl @@ -1806,7 +1806,7 @@ def tf_custom_op_library(name, srcs = [], gpu_srcs = [], deps = [], linkopts = [ name = name + "_check_deps", disallowed_deps = [ clean_dep("//tensorflow/core:framework"), - clean_dep("//tensorflow/core:lib"), + #clean_dep("//tensorflow/core:lib"), ], deps = deps + if_cuda_is_configured_compat(cuda_deps) + if_rocm_is_configured(rocm_deps), ) -- 2.25.0 ++++++ gast-0.2.0.tar.gz -> gast-0.2.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/LICENSE new/gast-0.2.2/LICENSE --- old/gast-0.2.0/LICENSE 1970-01-01 01:00:00.000000000 +0100 +++ new/gast-0.2.2/LICENSE 2019-01-04 23:04:28.000000000 +0100 @@ -0,0 +1,29 @@ +Copyright (c) 2016, Serge Guelton +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + Neither the name of HPCProject, Serge Guelton nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/MANIFEST.in new/gast-0.2.2/MANIFEST.in --- old/gast-0.2.0/MANIFEST.in 2017-11-03 19:51:43.000000000 +0100 +++ new/gast-0.2.2/MANIFEST.in 2019-01-04 23:04:28.000000000 +0100 @@ -1 +1,2 @@ recursive-include tests *.py +include LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/PKG-INFO new/gast-0.2.2/PKG-INFO --- old/gast-0.2.0/PKG-INFO 2017-11-03 20:04:23.000000000 +0100 +++ new/gast-0.2.2/PKG-INFO 2019-01-13 14:43:44.000000000 +0100 @@ -1,8 +1,8 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: gast -Version: 0.2.0 +Version: 0.2.2 Summary: Python AST that abstracts the underlying Python version -Home-page: UNKNOWN +Home-page: https://github.com/serge-sans-paille/gast/ Author: serge-sans-paille Author-email: [email protected] License: BSD 3-Clause @@ -18,4 +18,9 @@ Classifier: License :: OSI Approved :: BSD License Classifier: Natural Language :: English Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/README.rst new/gast-0.2.2/README.rst --- old/gast-0.2.0/README.rst 2017-11-03 19:51:43.000000000 +0100 +++ new/gast-0.2.2/README.rst 2019-01-08 10:00:31.000000000 +0100 @@ -43,10 +43,6 @@ GAST is tested using ``tox`` and Travis on the following Python versions: - 2.7 -- 3.0 -- 3.1 -- 3.2 -- 3.3 - 3.4 - 3.5 - 3.6 @@ -59,9 +55,9 @@ Python3 ******* -The AST used by GAST is the same as the one used in Python3.5, to the +The AST used by GAST is the same as the one used in Python3.5, with the notable exception of ``ast.arg`` being replaced by ``ast.Name`` with an -``ast.Param`` context. Addiitonnaly, ``ast.Name`` have an extra ``annotation`` +``ast.Param`` context. Additionally, ``ast.Name`` has an extra ``annotation`` field. Python2 @@ -132,6 +128,8 @@ | Delete(expr* targets) | Assign(expr* targets, expr value) | AugAssign(expr target, operator op, expr value) + -- 'simple' indicates that we annotate simple name without parens + | AnnAssign(expr target, expr annotation, expr? value, int simple) -- not sure if bool is allowed, can always use int | Print(expr? dest, expr* values, bool nl) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/gast/ast2.py new/gast-0.2.2/gast/ast2.py --- old/gast-0.2.0/gast/ast2.py 2017-05-31 23:15:09.000000000 +0200 +++ new/gast-0.2.2/gast/ast2.py 2019-01-13 14:43:33.000000000 +0100 @@ -130,12 +130,23 @@ # arguments def visit_arguments(self, node): + if node.vararg: + vararg = ast.Name(node.vararg, ast.Param()) + ast.copy_location(vararg, node) + else: + vararg = None + + if node.kwarg: + kwarg = ast.Name(node.kwarg, ast.Param()) + ast.copy_location(kwarg, node) + else: + kwarg = None new_node = gast.arguments( self._visit(node.args), - self._visit(node.vararg), + self._visit(vararg), [], # kwonlyargs [], # kw_defaults - self._visit(node.kwarg), + self._visit(kwarg), self._visit(node.defaults), ) return new_node @@ -244,10 +255,13 @@ # arguments def visit_arguments(self, node): + vararg = node.vararg and node.vararg.id + kwarg = node.kwarg and node.kwarg.id + new_node = ast.arguments( self._visit(node.args), - self._visit(node.vararg), - self._visit(node.kwarg), + self._visit(vararg), + self._visit(kwarg), self._visit(node.defaults), ) return new_node diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/gast/ast3.py new/gast-0.2.2/gast/ast3.py --- old/gast-0.2.0/gast/ast3.py 2017-06-01 08:50:10.000000000 +0200 +++ new/gast-0.2.2/gast/ast3.py 2019-01-05 19:25:01.000000000 +0100 @@ -55,33 +55,6 @@ ast.copy_location(new_node, node) return new_node - if 2 <= sys.version_info.minor <= 3: - - def _make_annotated_arg(self, parent, identifier, annotation): - if identifier is None: - return None - new_node = gast.Name( - self._visit(identifier), - gast.Param(), - self._visit(annotation), - ) - return ast.copy_location(new_node, parent) - - def visit_arguments(self, node): - new_node = gast.arguments( - [self._visit(n) for n in node.args], - self._make_annotated_arg(node, - node.vararg, - self._visit(node.varargannotation)), - [self._visit(n) for n in node.kwonlyargs], - self._visit(node.kw_defaults), - self._make_annotated_arg(node, - node.kwarg, - self._visit(node.kwargannotation)), - self._visit(node.defaults), - ) - return new_node - if sys.version_info.minor < 6: def visit_comprehension(self, node): @@ -162,42 +135,16 @@ ) return ast.copy_location(new_node, node) - if 2 <= sys.version_info.minor <= 3: - - def visit_arguments(self, node): - if node.vararg is None: - vararg = None - varargannotation = None - else: - vararg = node.vararg.id - varargannotation = self._visit(node.vararg.annotation) - if node.kwarg is None: - kwarg = None - kwargannotation = None - else: - kwarg = node.kwarg.id - kwargannotation = self._visit(node.kwarg.annotation) - - new_node = ast.arguments( - [self._make_arg(n) for n in node.args], - vararg, varargannotation, - [self._make_arg(n) for n in node.kwonlyargs], - kwarg, kwargannotation, - self._visit(node.defaults), - self._visit(node.kw_defaults), - ) - return new_node - else: - def visit_arguments(self, node): - new_node = ast.arguments( - [self._make_arg(n) for n in node.args], - self._make_arg(node.vararg), - [self._make_arg(n) for n in node.kwonlyargs], - self._visit(node.kw_defaults), - self._make_arg(node.kwarg), - self._visit(node.defaults), - ) - return new_node + def visit_arguments(self, node): + new_node = ast.arguments( + [self._make_arg(n) for n in node.args], + self._make_arg(node.vararg), + [self._make_arg(n) for n in node.kwonlyargs], + self._visit(node.kw_defaults), + self._make_arg(node.kwarg), + self._visit(node.defaults), + ) + return new_node def ast_to_gast(node): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/gast/gast.py new/gast-0.2.2/gast/gast.py --- old/gast-0.2.0/gast/gast.py 2017-11-03 19:51:43.000000000 +0100 +++ new/gast-0.2.2/gast/gast.py 2019-01-08 10:00:31.000000000 +0100 @@ -51,6 +51,9 @@ (stmt,)), 'AugAssign': (('target', 'op', 'value',), ('lineno', 'col_offset',), (stmt,)), + 'AnnAssign': (('target', 'annotation', 'value', 'simple',), + ('lineno', 'col_offset',), + (stmt,)), 'Print': (('dest', 'values', 'nl',), ('lineno', 'col_offset',), (stmt,)), 'For': (('target', 'iter', 'body', 'orelse',), ('lineno', 'col_offset',), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/gast.egg-info/PKG-INFO new/gast-0.2.2/gast.egg-info/PKG-INFO --- old/gast-0.2.0/gast.egg-info/PKG-INFO 2017-11-03 20:04:23.000000000 +0100 +++ new/gast-0.2.2/gast.egg-info/PKG-INFO 2019-01-13 14:43:44.000000000 +0100 @@ -1,8 +1,8 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: gast -Version: 0.2.0 +Version: 0.2.2 Summary: Python AST that abstracts the underlying Python version -Home-page: UNKNOWN +Home-page: https://github.com/serge-sans-paille/gast/ Author: serge-sans-paille Author-email: [email protected] License: BSD 3-Clause @@ -18,4 +18,9 @@ Classifier: License :: OSI Approved :: BSD License Classifier: Natural Language :: English Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/gast.egg-info/SOURCES.txt new/gast-0.2.2/gast.egg-info/SOURCES.txt --- old/gast-0.2.0/gast.egg-info/SOURCES.txt 2017-11-03 20:04:23.000000000 +0100 +++ new/gast-0.2.2/gast.egg-info/SOURCES.txt 2019-01-13 14:43:44.000000000 +0100 @@ -1,3 +1,4 @@ +LICENSE MANIFEST.in README.rst setup.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gast-0.2.0/setup.py new/gast-0.2.2/setup.py --- old/gast-0.2.0/setup.py 2017-11-03 20:01:32.000000000 +0100 +++ new/gast-0.2.2/setup.py 2019-01-13 14:43:33.000000000 +0100 @@ -10,7 +10,7 @@ kw = {} setup(name='gast', # gast, daou naer! - version='0.2.0', + version='0.2.2', packages=['gast'], description='Python AST that abstracts the underlying Python version', long_description=''' @@ -20,6 +20,7 @@ as produced by ``ast.parse`` from the standard ``ast`` module.''', author='serge-sans-paille', author_email='[email protected]', + url='https://github.com/serge-sans-paille/gast/', license="BSD 3-Clause", classifiers=['Development Status :: 4 - Beta', 'Environment :: Console', @@ -27,6 +28,12 @@ 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 3'], + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + ], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', **kw ) ++++++ gemmlowp.zip ++++++ Binary files /var/tmp/diff_new_pack.XcgBFT/_old and /var/tmp/diff_new_pack.XcgBFT/_new differ ++++++ google-cloud-cpp.tar.gz ++++++ ++++ 209492 lines of diff (skipped) ++++++ json-feature-name.patch ++++++ >From 5325153ccbcc0e172b6af2e421cec79449beee14 Mon Sep 17 00:00:00 2001 From: Christian Goll <[email protected]> Date: Mon, 10 Feb 2020 17:21:41 +0100 Subject: [PATCH 8/8] json feature name --- third_party/systemlibs/jsoncpp.BUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/systemlibs/jsoncpp.BUILD b/third_party/systemlibs/jsoncpp.BUILD index 0816930309..7a293e6c68 100644 --- a/third_party/systemlibs/jsoncpp.BUILD +++ b/third_party/systemlibs/jsoncpp.BUILD @@ -13,6 +13,7 @@ HEADERS = [ "include/json/features.h", "include/json/forwards.h", "include/json/json.h", + "include/json/json_features.h", "include/json/reader.h", "include/json/value.h", "include/json/version.h", @@ -27,6 +28,7 @@ genrule( i=$${i##*/} ln -sf $(INCLUDEDIR)/json/$$i $(@D)/include/json/$$i done + ln -sf $(INCLUDEDIR)/json/json_features.h $(@D)/include/json/features.h """, ) -- 2.25.0 ++++++ license.rst.txt ++++++ --- /var/tmp/diff_new_pack.XcgBFT/_old 2020-03-23 07:13:49.714496192 +0100 +++ /var/tmp/diff_new_pack.XcgBFT/_new 2020-03-23 07:13:49.722496197 +0100 @@ -87,7 +87,7 @@ analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python |release| alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of - copyright, i.e., "Copyright © 2001-2018 Python Software Foundation; All Rights + copyright, i.e., "Copyright © 2001-2019 Python Software Foundation; All Rights Reserved" are retained in Python |release| alone or in any derivative version prepared by Licensee. ++++++ removed-docker-tools.patch ++++++ >From bcb1afe403f88fc51dd44b868556a72007d3334d Mon Sep 17 00:00:00 2001 From: Christian Goll <[email protected]> Date: Tue, 18 Feb 2020 13:02:12 +0100 Subject: [PATCH] removed docker tools --- WORKSPACE | 55 --------------- .../preconfig/generate/workspace.bzl | 70 ------------------- 2 files changed, 125 deletions(-) delete mode 100644 third_party/toolchains/preconfig/generate/workspace.bzl diff --git a/WORKSPACE b/WORKSPACE index 74ea14d0fd..6c96d8e1ae 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -27,61 +27,6 @@ load("//third_party/toolchains/preconfig/generate:archives.bzl", bazel_toolchains_archive() -load( - "@bazel_toolchains//repositories:repositories.bzl", - bazel_toolchains_repositories = "repositories", -) - -bazel_toolchains_repositories() - -load( - "@io_bazel_rules_docker//repositories:repositories.bzl", - container_repositories = "repositories", -) - -container_repositories() - -load("//third_party/toolchains/preconfig/generate:workspace.bzl", - "remote_config_workspace") - -remote_config_workspace() - -# Apple and Swift rules. -http_archive( - name = "build_bazel_rules_apple", - sha256 = "6efdde60c91724a2be7f89b0c0a64f01138a45e63ba5add2dca2645d981d23a1", - urls = ["https://github.com/bazelbuild/rules_apple/releases/download/0.17.2/rules_apple.0.17.2.tar.gz"], -) # https://github.com/bazelbuild/rules_apple/releases -http_archive( - name = "build_bazel_rules_swift", - sha256 = "96a86afcbdab215f8363e65a10cf023b752e90b23abf02272c4fc668fcb70311", - urls = ["https://github.com/bazelbuild/rules_swift/releases/download/0.11.1/rules_swift.0.11.1.tar.gz"], -) # https://github.com/bazelbuild/rules_swift/releases -http_archive( - name = "build_bazel_apple_support", - sha256 = "7356dbd44dea71570a929d1d4731e870622151a5f27164d966dda97305f33471", - urls = ["https://github.com/bazelbuild/apple_support/releases/download/0.6.0/apple_support.0.6.0.tar.gz"], -) # https://github.com/bazelbuild/apple_support/releases -http_archive( - name = "bazel_skylib", - sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e", - urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz"], -) # https://github.com/bazelbuild/bazel-skylib/releases -http_archive( - name = "com_github_apple_swift_swift_protobuf", - type = "zip", - strip_prefix = "swift-protobuf-1.5.0/", - urls = ["https://github.com/apple/swift-protobuf/archive/1.5.0.zip"], -) # https://github.com/apple/swift-protobuf/releases -http_file( - name = "xctestrunner", - executable = 1, - urls = ["https://github.com/google/xctestrunner/releases/download/0.2.7/ios_test_runner.par"], -) # https://github.com/google/xctestrunner/releases -# Use `swift_rules_dependencies` to fetch the toolchains. With the -# `git_repository` rules above, the following call will skip redefining them. -load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies") -swift_rules_dependencies() # We must check the bazel version before trying to parse any other BUILD # files, in case the parsing of those build files depends on the bazel diff --git a/third_party/toolchains/preconfig/generate/workspace.bzl b/third_party/toolchains/preconfig/generate/workspace.bzl deleted file mode 100644 index fb8a3034db..0000000000 --- a/third_party/toolchains/preconfig/generate/workspace.bzl +++ /dev/null @@ -1,70 +0,0 @@ -load( - "@io_bazel_rules_docker//repositories:repositories.bzl", - container_repositories = "repositories", -) -load( - "@io_bazel_rules_docker//container:container.bzl", - "container_pull", -) -load(":containers.bzl", "container_digests") - -def _remote_config_workspace(): - container_repositories() - - container_pull( - name = "centos6", - registry = "gcr.io", - repository = "tensorflow-testing/nosla-centos6", - digest = container_digests["centos6"], - ) - - container_pull( - name = "ubuntu16.04", - registry = "gcr.io", - repository = "tensorflow-testing/nosla-ubuntu16.04", - digest = container_digests["ubuntu16.04"], - ) - - container_pull( - name = "cuda10.0-cudnn7-ubuntu14.04", - registry = "gcr.io", - repository = "tensorflow-testing/nosla-cuda10.0-cudnn7-ubuntu14.04", - digest = container_digests["cuda10.0-cudnn7-ubuntu14.04"], - ) - - container_pull( - name = "cuda10.0-cudnn7-centos6", - registry = "gcr.io", - repository = "tensorflow-testing/nosla-cuda10.0-cudnn7-centos6", - digest = container_digests["cuda10.0-cudnn7-centos6"], - ) - - container_pull( - name = "cuda10.1-cudnn7-centos6", - registry = "gcr.io", - repository = "tensorflow-testing/nosla-cuda10.1-cudnn7-centos6", - digest = container_digests["cuda10.1-cudnn7-centos6"], - ) - - container_pull( - name = "ubuntu16.04-manylinux2010", - registry = "gcr.io", - repository = "tensorflow-testing/nosla-ubuntu16.04-manylinux2010", - digest = container_digests["ubuntu16.04-manylinux2010"], - ) - - container_pull( - name = "cuda10.0-cudnn7-ubuntu16.04-manylinux2010", - registry = "gcr.io", - repository = "tensorflow-testing/nosla-cuda10.0-cudnn7-ubuntu16.04-manylinux2010", - digest = container_digests["cuda10.0-cudnn7-ubuntu16.04-manylinux2010"], - ) - - container_pull( - name = "rocm-ubuntu16.04", - registry = "gcr.io", - repository = "tensorflow-testing/nosla-rocm-ubuntu16.04", - digest = container_digests["rocm-ubuntu16.04"], - ) - -remote_config_workspace = _remote_config_workspace -- 2.25.0 ++++++ right-json-location.patch ++++++ >From b22f22e747833f1466fe1c9bf52ec27a92c718e5 Mon Sep 17 00:00:00 2001 From: Christian Goll <[email protected]> Date: Thu, 16 Jan 2020 16:03:12 +0100 Subject: [PATCH 3/3] right json location --- third_party/systemlibs/jsoncpp.BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/systemlibs/jsoncpp.BUILD b/third_party/systemlibs/jsoncpp.BUILD index 7d54f9289b..0816930309 100644 --- a/third_party/systemlibs/jsoncpp.BUILD +++ b/third_party/systemlibs/jsoncpp.BUILD @@ -25,7 +25,7 @@ genrule( cmd = """ for i in $(OUTS); do i=$${i##*/} - ln -sf $(INCLUDEDIR)/jsoncpp/json/$$i $(@D)/include/json/$$i + ln -sf $(INCLUDEDIR)/json/$$i $(@D)/include/json/$$i done """, ) -- 2.24.1 ++++++ rules_closure.tar.gz ++++++ ++++ 24956 lines of diff (skipped) ++++++ tensorflow-1.13.2.tar.gz -> tensorflow-1.15.2.tar.gz ++++++ /work/SRC/openSUSE:Leap:15.2/tensorflow/tensorflow-1.13.2.tar.gz /work/SRC/openSUSE:Leap:15.2/.tensorflow.new.3160/tensorflow-1.15.2.tar.gz differ: char 13, line 1 ++++++ tensorflow-rpmlintrc ++++++ --- /var/tmp/diff_new_pack.XcgBFT/_old 2020-03-23 07:13:50.214496492 +0100 +++ /var/tmp/diff_new_pack.XcgBFT/_new 2020-03-23 07:13:50.214496492 +0100 @@ -2,3 +2,5 @@ from Config import * addFilter("tensorflow.* no-return-in-nonvoid-function") +addFilter("E: library-without-ldconfig-postin") +addFilter("E: library-without-ldconfig-postun")
