Hello community,
here is the log from the commit of package python-llvmlite for openSUSE:Factory
checked in at 2020-04-22 20:50:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-llvmlite (Old)
and /work/SRC/openSUSE:Factory/.python-llvmlite.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-llvmlite"
Wed Apr 22 20:50:30 2020 rev:19 rq:795475 version:0.32.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-llvmlite/python-llvmlite.changes
2020-04-07 10:31:57.290548100 +0200
+++
/work/SRC/openSUSE:Factory/.python-llvmlite.new.2738/python-llvmlite.changes
2020-04-22 20:50:59.775157764 +0200
@@ -1,0 +2,12 @@
+Sun Apr 19 09:37:11 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Rebase patch support-clang9.patch to include clang 10 support too
+
+-------------------------------------------------------------------
+Sun Apr 19 09:32:49 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.32.0:
+ * The main changes in this release are the removal of specific code for
Python 2
+ and Python <3.6, and making the code base PEP8 compliant.
+
+-------------------------------------------------------------------
Old:
----
llvmlite-0.31.0.tar.gz
New:
----
llvmlite-0.32.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-llvmlite.spec ++++++
--- /var/tmp/diff_new_pack.lRAihZ/_old 2020-04-22 20:51:00.327158846 +0200
+++ /var/tmp/diff_new_pack.lRAihZ/_new 2020-04-22 20:51:00.331158853 +0200
@@ -18,18 +18,19 @@
%define modname llvmlite
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define llvm_major 9
+%define llvm_major 10
%if 0%{?suse_version} <= 1500
%define llvm_major 7
%endif
+%define skip_python2 1
Name: python-llvmlite
-Version: 0.31.0
+Version: 0.32.0
Release: 0
Summary: Lightweight wrapper around basic LLVM functionality
License: BSD-2-Clause
URL: http://llvmlite.pydata.org
Source:
https://github.com/numba/llvmlite/archive/v%{version}.tar.gz#/llvmlite-%{version}.tar.gz
-Patch1: support-clang9.patch
+Patch0: support-clang9.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: clang%{llvm_major}-devel
@@ -41,12 +42,8 @@
BuildRequires: llvm%{llvm_major}-gold
BuildRequires: ncurses-devel
BuildRequires: python-rpm-macros
-BuildRequires: python2-enum34
BuildRequires: zlib-devel
ExcludeArch: armv7l
-%ifpython2
-Requires: python-enum34
-%endif
%python_subpackages
%description
@@ -68,9 +65,7 @@
%prep
%setup -q -n %{modname}-%{version}
-%if %{pkg_vcmp llvm%{llvm_major}-devel >= 9.0}
-%patch1 -p1
-%endif
+%patch0 -p1
%build
export CXX="clang++ -fPIC"
++++++ llvmlite-0.31.0.tar.gz -> llvmlite-0.32.0.tar.gz ++++++
++++ 4119 lines of diff (skipped)
++++++ support-clang9.patch ++++++
--- /var/tmp/diff_new_pack.lRAihZ/_old 2020-04-22 20:51:00.435159057 +0200
+++ /var/tmp/diff_new_pack.lRAihZ/_new 2020-04-22 20:51:00.435159057 +0200
@@ -1,32 +1,32 @@
-Index: llvmlite-0.30.0/ffi/build.py
+Index: llvmlite-0.32.0/ffi/build.py
===================================================================
---- llvmlite-0.30.0.orig/ffi/build.py
-+++ llvmlite-0.30.0/ffi/build.py
-@@ -109,8 +109,8 @@ def main_posix(kind, library_ext):
+--- llvmlite-0.32.0.orig/ffi/build.py
++++ llvmlite-0.32.0/ffi/build.py
+@@ -110,8 +110,8 @@ def main_posix(kind, library_ext):
out = out.decode('latin1')
print(out)
- if not (out.startswith('8.0.') or out.startswith('7.0.')
- or out.startswith('7.1.')):
-+ if not (out.startswith('9.0.') or out.startswith('8.0.')
++ if not (out.startswith('10.0') or out.startswith('9.0.') or
out.startswith('8.0.')
+ or out.startswith('7.0.') or out.startswith('7.1.')):
msg = (
- "Building llvmlite requires LLVM 7.0+ Be sure to "
- "set LLVM_CONFIG to the right executable path.\n"
-Index: llvmlite-0.30.0/llvmlite/tests/test_binding.py
+ "Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got {!r}.
"
+ "Be sure to set LLVM_CONFIG to the right executable path.\n"
+Index: llvmlite-0.32.0/llvmlite/tests/test_binding.py
===================================================================
---- llvmlite-0.30.0.orig/llvmlite/tests/test_binding.py
-+++ llvmlite-0.30.0/llvmlite/tests/test_binding.py
-@@ -363,7 +363,7 @@ class TestMisc(BaseTest):
+--- llvmlite-0.32.0.orig/llvmlite/tests/test_binding.py
++++ llvmlite-0.32.0/llvmlite/tests/test_binding.py
+@@ -356,7 +356,7 @@ class TestMisc(BaseTest):
def test_version(self):
major, minor, patch = llvm.llvm_version_info
# one of these can be valid
- valid = [(8, 0), (7, 0), (7, 1)]
-+ valid = [(9,0), (8, 0), (7, 0), (7, 1)]
++ valid = [(10,0), (9,0), (8, 0), (7, 0), (7, 1)]
self.assertIn((major, minor), valid)
self.assertIn(patch, range(10))
-@@ -552,7 +552,7 @@ class TestModuleRef(BaseTest):
+@@ -545,7 +545,7 @@ class TestModuleRef(BaseTest):
with self.assertRaises(RuntimeError) as cm:
llvm.parse_bitcode(b"")
self.assertIn("LLVM bitcode parsing error", str(cm.exception))
@@ -35,3 +35,16 @@
def test_bitcode_roundtrip(self):
# create a new context to avoid struct renaming
+Index: llvmlite-0.32.0/ffi/linker.cpp
+===================================================================
+--- llvmlite-0.32.0.orig/ffi/linker.cpp
++++ llvmlite-0.32.0/ffi/linker.cpp
+@@ -42,7 +42,7 @@ LLVMPY_LinkModules(LLVMModuleRef Dest, L
+ auto OldDiagnosticHandler = Ctx.getDiagnosticHandler();
+
+ // set the handler to a new one
+-
Ctx.setDiagnosticHandler(llvm::make_unique<ReportNotAbortDiagnosticHandler>(errstream));
++
Ctx.setDiagnosticHandler(std::make_unique<ReportNotAbortDiagnosticHandler>(errstream));
+
+ // link
+ bool failed = LLVMLinkModules2(Dest, Src);