Hello community,

here is the log from the commit of package python-onnx for openSUSE:Leap:15.2 
checked in at 2020-03-20 05:15:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-onnx (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-onnx.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-onnx"

Fri Mar 20 05:15:11 2020 rev:3 rq:786382 version:1.6.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-onnx/python-onnx.changes        
2020-02-27 06:42:20.977715368 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-onnx.new.3160/python-onnx.changes      
2020-03-20 05:15:16.374562813 +0100
@@ -1,0 +2,6 @@
+Sun Mar 15 08:55:22 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Add patch to fix build with new protobuf:
+  * protobuf.patch
+
+-------------------------------------------------------------------

New:
----
  protobuf.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-onnx.spec ++++++
--- /var/tmp/diff_new_pack.xTqynt/_old  2020-03-20 05:15:16.990563228 +0100
+++ /var/tmp/diff_new_pack.xTqynt/_new  2020-03-20 05:15:17.002563235 +0100
@@ -26,6 +26,7 @@
 URL:            https://onnx.ai/
 Source0:        
https://github.com/onnx/onnx/archive/v%{version}.tar.gz#/onnx-%{version}.tar.gz
 Source1:        %{name}-rpmlintrc
+Patch0:         protobuf.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module protobuf}
@@ -60,6 +61,7 @@
 %setup -q -n onnx-%{version}
 # avoid bundles
 rm -rf third_party
+%patch0 -p1
 # say that the cmake was already built (we used our macros)
 sed -i -e 's:built = False:built = True:g' setup.py
 # do not require extra pytest modules

++++++ protobuf.patch ++++++
>From 7bcb1302352c9953bfc396c3ec2114b382c65614 Mon Sep 17 00:00:00 2001
From: Tongliang Liao <xksz...@gmail.com>
Date: Fri, 29 Nov 2019 19:48:59 -0800
Subject: [PATCH] python_out does not recognize dllexport_decl.

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7ab64fdda..bf23ac75fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -238,7 +238,7 @@ function(RELATIVE_PROTOBUF_GENERATE_CPP NAME SRCS HDRS 
ROOT_DIR DEPEND)
         ${ONNX_DLLEXPORT_STR}${CMAKE_CURRENT_BINARY_DIR})
     if(BUILD_ONNX_PYTHON)
       list(APPEND PROTOC_ARGS --python_out
-                  ${ONNX_DLLEXPORT_STR}${CMAKE_CURRENT_BINARY_DIR})
+                  ${CMAKE_CURRENT_BINARY_DIR})
       if(ONNX_GEN_PB_TYPE_STUBS)
         # Haven't figured out how to generate mypy stubs on Windows yet
         if(NOT WIN32)

Reply via email to