pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-llvmlite py-llvmlite: updated to 0.26.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ceee4611779c
branches:  trunk
changeset: 388543:ceee4611779c
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Dec 09 20:22:55 2018 +0000

description:
py-llvmlite: updated to 0.26.0

v0.26.0
The primary new features in this release is support for generation of Intel JIT events, which makes profiling of JIT compiled code in Intel VTune possible. This release also contains some minor build 
improvements for ARMv7, and some small fixes.

LLVM 7 support was originally slated for this release, but had to be delayed after some issues arose in testing. LLVM 6 is still required for llvmlite.

* Use native cmake on armv7l
* Throttle thread count for llvm build on armv7l.
* Add shutdown detection to ObjectRef __del__ method.
* conda recipe: add make as build dep
* Add get_element_offset to TargetData
* Fix gep method call on Constant objects
* Fix typo in irbuilder documentation
* Enable IntelJIT events for LLVM for VTune support

diffstat:

 devel/py-llvmlite/Makefile                                      |   9 ++-
 devel/py-llvmlite/PLIST                                         |   5 +-
 devel/py-llvmlite/distinfo                                      |  14 ++--
 devel/py-llvmlite/patches/patch-ffi_Makefile.netbsd             |  25 ----------
 devel/py-llvmlite/patches/patch-ffi_build.py                    |  16 +++++-
 devel/py-llvmlite/patches/patch-llvmlite_tests_test__binding.py |  14 +++++
 6 files changed, 44 insertions(+), 39 deletions(-)

diffs (139 lines):

diff -r 88a0e0c66f8b -r ceee4611779c devel/py-llvmlite/Makefile
--- a/devel/py-llvmlite/Makefile        Sun Dec 09 20:13:09 2018 +0000
+++ b/devel/py-llvmlite/Makefile        Sun Dec 09 20:22:55 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2018/08/07 10:46:42 adam Exp $
+# $NetBSD: Makefile,v 1.6 2018/12/09 20:22:55 adam Exp $
 
-DISTNAME=      llvmlite-0.24.0
+DISTNAME=      llvmlite-0.26.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=l/llvmlite/}
@@ -13,10 +13,13 @@
 USE_LANGUAGES= c++
 
 .include "../../lang/python/pyversion.mk"
-.if "${PYPKGPREFIX}" == "py27"
+.if ${_PYTHON_VERSION} == 27
 DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
 .endif
 
+pre-configure:
+       ${LN} -f ${WRKSRC}/ffi/Makefile.freebsd ${WRKSRC}/ffi/Makefile.netbsd
+
 post-install:
 .if ${OPSYS} == "Darwin"
        install_name_tool -id \
diff -r 88a0e0c66f8b -r ceee4611779c devel/py-llvmlite/PLIST
--- a/devel/py-llvmlite/PLIST   Sun Dec 09 20:13:09 2018 +0000
+++ b/devel/py-llvmlite/PLIST   Sun Dec 09 20:22:55 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2018/05/17 15:47:46 minskim Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/12/09 20:22:55 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -19,6 +19,9 @@
 ${PYSITELIB}/llvmlite/binding/common.py
 ${PYSITELIB}/llvmlite/binding/common.pyc
 ${PYSITELIB}/llvmlite/binding/common.pyo
+${PYSITELIB}/llvmlite/binding/context.py
+${PYSITELIB}/llvmlite/binding/context.pyc
+${PYSITELIB}/llvmlite/binding/context.pyo
 ${PYSITELIB}/llvmlite/binding/dylib.py
 ${PYSITELIB}/llvmlite/binding/dylib.pyc
 ${PYSITELIB}/llvmlite/binding/dylib.pyo
diff -r 88a0e0c66f8b -r ceee4611779c devel/py-llvmlite/distinfo
--- a/devel/py-llvmlite/distinfo        Sun Dec 09 20:13:09 2018 +0000
+++ b/devel/py-llvmlite/distinfo        Sun Dec 09 20:22:55 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2018/08/07 10:46:42 adam Exp $
+$NetBSD: distinfo,v 1.5 2018/12/09 20:22:55 adam Exp $
 
-SHA1 (llvmlite-0.24.0.tar.gz) = a97f65637575ed9b6963031ed384031a15191d57
-RMD160 (llvmlite-0.24.0.tar.gz) = d28d99da1e8b3a1f26dc7fd872568b88350e90ed
-SHA512 (llvmlite-0.24.0.tar.gz) = 93c5cc6c647aa0d25e9fa4e10b0c7299bbdebe82f4c264c1ea9eb9ad1e1b1c28fcd5fbfe99762be00aa495bac71b6ca487f7ec230b42f81c9a3b1aacf555af23
-Size (llvmlite-0.24.0.tar.gz) = 100833 bytes
-SHA1 (patch-ffi_Makefile.netbsd) = 28a7a3363376e7b4e13a78afea5705b6009ba5f8
-SHA1 (patch-ffi_build.py) = 761df4ddb2cff6f0196e372dbbb3ffe4b811a01c
+SHA1 (llvmlite-0.26.0.tar.gz) = da74db79b19c392253c9a0b80055e215bf0d62c5
+RMD160 (llvmlite-0.26.0.tar.gz) = eb0ccec7d6956ec097fa663a0082ea7a5d269312
+SHA512 (llvmlite-0.26.0.tar.gz) = aa48d2385aea63ab0cf3f75a919574d4f90c1d3665382ea55ba7b7243af1f326fcc4239c60044373e0482d04d088d99d2c428a3559844d7e73e2329ab73e6447
+Size (llvmlite-0.26.0.tar.gz) = 103402 bytes
+SHA1 (patch-ffi_build.py) = 1d3e90c9e1a47a3a7e4964531f70688d48a5c732
+SHA1 (patch-llvmlite_tests_test__binding.py) = 6c493583827c0cafe0aeeadeae1ba74b84af52bd
diff -r 88a0e0c66f8b -r ceee4611779c devel/py-llvmlite/patches/patch-ffi_Makefile.netbsd
--- a/devel/py-llvmlite/patches/patch-ffi_Makefile.netbsd       Sun Dec 09 20:13:09 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-ffi_Makefile.netbsd,v 1.1 2018/05/17 15:47:46 minskim Exp $
-
-Add NetBSD support
-
---- ffi/Makefile.netbsd.orig   2016-09-19 01:45:04.243949019 +0000
-+++ ffi/Makefile.netbsd
-@@ -0,0 +1,18 @@
-+
-+CXX = clang++ -std=c++11 -stdlib=libstdc++
-+CXXFLAGS = $(LLVM_CXXFLAGS)
-+LDFLAGS = $(LLVM_LDFLAGS)
-+LIBS = $(LLVM_LIBS)
-+INCLUDE = core.h
-+SRC = assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp \
-+      executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp \
-+      linker.cpp
-+OUTPUT = libllvmlite.so
-+
-+all: $(OUTPUT)
-+
-+$(OUTPUT): $(SRC) $(INCLUDE)
-+      $(CXX) -shared $(CXXFLAGS) $(SRC) -o $(OUTPUT) $(LDFLAGS) $(LIBS)
-+
-+clean:
-+      rm -rf test
diff -r 88a0e0c66f8b -r ceee4611779c devel/py-llvmlite/patches/patch-ffi_build.py
--- a/devel/py-llvmlite/patches/patch-ffi_build.py      Sun Dec 09 20:13:09 2018 +0000
+++ b/devel/py-llvmlite/patches/patch-ffi_build.py      Sun Dec 09 20:22:55 2018 +0000
@@ -1,10 +1,20 @@
-$NetBSD: patch-ffi_build.py,v 1.2 2018/08/07 10:46:42 adam Exp $
+$NetBSD: patch-ffi_build.py,v 1.3 2018/12/09 20:22:55 adam Exp $
 
-Add NetBSD support
+Allow newer LLVM.
+Add NetBSD support.
 
 --- ffi/build.py.orig  2018-07-10 14:46:02.000000000 +0000
 +++ ffi/build.py
-@@ -143,6 +143,8 @@ def main():
+@@ -109,7 +109,7 @@ def main_posix(kind, library_ext):
+ 
+     out = out.decode('latin1')
+     print(out)
+-    if not out.startswith('6.0.'):
++    if False:
+         msg = (
+             "Building llvmlite requires LLVM 6.0.x. Be sure to "
+             "set LLVM_CONFIG to the right executable path.\n"
+@@ -157,6 +157,8 @@ def main():
          main_posix('linux', '.so')
      elif sys.platform.startswith(('freebsd','openbsd')):
          main_posix('freebsd', '.so')
diff -r 88a0e0c66f8b -r ceee4611779c devel/py-llvmlite/patches/patch-llvmlite_tests_test__binding.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-llvmlite/patches/patch-llvmlite_tests_test__binding.py   Sun Dec 09 20:22:55 2018 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-llvmlite_tests_test__binding.py,v 1.1 2018/12/09 20:22:55 adam Exp $
+
+Allow newer LLVM.
+
+--- llvmlite/tests/test_binding.py.orig        2018-11-29 09:48:16.000000000 +0000
++++ llvmlite/tests/test_binding.py
+@@ -333,7 +333,6 @@ class TestMisc(BaseTest):
+ 
+     def test_version(self):
+         major, minor, patch = llvm.llvm_version_info
+-        self.assertEqual((major, minor), (6, 0))
+         self.assertIn(patch, range(10))
+ 
+     def test_check_jit_execution(self):



Home | Main Index | Thread Index | Old Index