Hello community,

here is the log from the commit of package python-llvmlite for openSUSE:Factory 
checked in at 2019-10-31 22:48:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-llvmlite (Old)
 and      /work/SRC/openSUSE:Factory/.python-llvmlite.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-llvmlite"

Thu Oct 31 22:48:10 2019 rev:15 rq:744527 version:0.30.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-llvmlite/python-llvmlite.changes  
2019-10-21 12:31:53.236197840 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-llvmlite.new.2990/python-llvmlite.changes    
    2019-10-31 22:48:12.814064930 +0100
@@ -1,0 +2,6 @@
+Thu Oct 31 15:18:38 UTC 2019 - Ismail Dönmez <[email protected]>
+
+- Add support-clang9.patch and apply it for llvm >= 9
+- Bump llvm_major from 8 to 9 
+
+-------------------------------------------------------------------

New:
----
  support-clang9.patch

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

Other differences:
------------------
++++++ python-llvmlite.spec ++++++
--- /var/tmp/diff_new_pack.P2notq/_old  2019-10-31 22:48:14.826067430 +0100
+++ /var/tmp/diff_new_pack.P2notq/_new  2019-10-31 22:48:14.862067474 +0100
@@ -21,7 +21,7 @@
 %ifarch ppc64 ppc64le
 %define         llvm_major 7
 %else
-%define         llvm_major 8
+%define         llvm_major 9
 %endif
 Name:           python-llvmlite
 Version:        0.30.0
@@ -30,6 +30,7 @@
 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
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  clang%{llvm_major}-devel
@@ -68,6 +69,9 @@
 
 %prep
 %setup -q -n %{modname}-%{version}
+%if %{pkg_vcmp llvm%{llvm_major}-devel >= 9.0}
+%patch1 -p1
+%endif
 
 %build
 export CXX="clang++ -fPIC"

++++++ support-clang9.patch ++++++
Index: llvmlite-0.30.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):
 
     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.')
+            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
===================================================================
--- 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):
     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)]
         self.assertIn((major, minor), valid)
         self.assertIn(patch, range(10))
 
@@ -552,7 +552,7 @@ class TestModuleRef(BaseTest):
         with self.assertRaises(RuntimeError) as cm:
             llvm.parse_bitcode(b"")
         self.assertIn("LLVM bitcode parsing error", str(cm.exception))
-        self.assertIn("Invalid bitcode signature", str(cm.exception))
+        self.assertIn("file too small to contain bitcode header", 
str(cm.exception))
 
     def test_bitcode_roundtrip(self):
         # create a new context to avoid struct renaming

Reply via email to