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.38.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/29026df524f1
branches:  trunk
changeset: 371834:29026df524f1
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Jan 14 19:49:10 2022 +0000

description:
py-llvmlite: updated to 0.38.0

v0.38.0 (January 13, 2022)

This release makes llvmlite compatible with Python 3.10. It also adds an abiname option to the target machine creation interface that mimics the same in LLVM. Further, a large number of functions are 
added to the IR API to support common uses of constant expressions. Finally, a number of bugs were fixed!

diffstat:

 devel/py-llvmlite/Makefile                           |  10 +++++++---
 devel/py-llvmlite/distinfo                           |  12 ++++++------
 devel/py-llvmlite/patches/patch-ffi_Makefile.freebsd |  16 +++++++++++++---
 devel/py-llvmlite/patches/patch-ffi_targets.cpp      |   8 ++++----
 4 files changed, 30 insertions(+), 16 deletions(-)

diffs (95 lines):

diff -r 9a5d7fe2bfff -r 29026df524f1 devel/py-llvmlite/Makefile
--- a/devel/py-llvmlite/Makefile        Fri Jan 14 19:36:29 2022 +0000
+++ b/devel/py-llvmlite/Makefile        Fri Jan 14 19:49:10 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.21 2022/01/12 21:13:50 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2022/01/14 19:49:10 adam Exp $
 
-DISTNAME=      llvmlite-0.37.0
+DISTNAME=      llvmlite-0.38.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=l/llvmlite/}
@@ -11,8 +11,12 @@
 LICENSE=       2-clause-bsd
 
 USE_LANGUAGES= c++14
+
 # officially supports llvm 11 as of 0.37.0
-MAKE_ENV+=     LLVMLITE_SKIP_LLVM_VERSION_CHECK=1
+MAKE_ENV+=             LLVMLITE_SKIP_LLVM_VERSION_CHECK=1
+# unable to pass LLVM bit-code files to linker
+MAKE_ENV.NetBSD+=      CXX_FLTO_FLAGS=
+MAKE_ENV.NetBSD+=      LD_FLTO_FLAGS=
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
diff -r 9a5d7fe2bfff -r 29026df524f1 devel/py-llvmlite/distinfo
--- a/devel/py-llvmlite/distinfo        Fri Jan 14 19:36:29 2022 +0000
+++ b/devel/py-llvmlite/distinfo        Fri Jan 14 19:49:10 2022 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.19 2022/01/12 21:13:50 wiz Exp $
+$NetBSD: distinfo,v 1.20 2022/01/14 19:49:10 adam Exp $
 
-BLAKE2s (llvmlite-0.37.0.tar.gz) = 6537a042a21cc5a31547c0ce08f1e381df8079a3388fca49161c196623ccf6f7
-SHA512 (llvmlite-0.37.0.tar.gz) = 4a0d206b31aa7235f80c3879e98c08a20d68bfad077a4b02a80294de8b724895bae9764648d7892255afe2e3435eace8e42bdb901fe27eb3d0c988620d42b2ec
-Size (llvmlite-0.37.0.tar.gz) = 125955 bytes
-SHA1 (patch-ffi_Makefile.freebsd) = c4624de19e08bab70668a62a62e9edece027cb93
+BLAKE2s (llvmlite-0.38.0.tar.gz) = 673b41eb1bbe182480859b3301271a10f81813cd3d03f3da76468df69fdea648
+SHA512 (llvmlite-0.38.0.tar.gz) = dfb489bf5939d0ef899cf3bbe83ddd14b16f3a49da68a2e3146cf81b5e942a8ab38d800e0f4a8d53aa5e9d1daa66f33f3a35f12ece8fc1331c501bacc8c2149f
+Size (llvmlite-0.38.0.tar.gz) = 129766 bytes
+SHA1 (patch-ffi_Makefile.freebsd) = 39a533f17952c73ef7cbfe910bc58166a106448c
 SHA1 (patch-ffi_Makefile.linux) = 64fe000e738b61f0ece5c3b6cb86a1d548955c70
 SHA1 (patch-ffi_build.py) = 9a992dd33f624055d5c8bea3986c4243c87b4ccf
-SHA1 (patch-ffi_targets.cpp) = fd7c66d73668dbd5d5d1a20d209e0b3a19d2bb3d
+SHA1 (patch-ffi_targets.cpp) = 99f888839916fa42848f9dad2f28468b70cf668f
diff -r 9a5d7fe2bfff -r 29026df524f1 devel/py-llvmlite/patches/patch-ffi_Makefile.freebsd
--- a/devel/py-llvmlite/patches/patch-ffi_Makefile.freebsd      Fri Jan 14 19:36:29 2022 +0000
+++ b/devel/py-llvmlite/patches/patch-ffi_Makefile.freebsd      Fri Jan 14 19:49:10 2022 +0000
@@ -1,8 +1,18 @@
-$NetBSD: patch-ffi_Makefile.freebsd,v 1.1 2019/12/19 22:12:43 joerg Exp $
+$NetBSD: patch-ffi_Makefile.freebsd,v 1.2 2022/01/14 19:49:10 adam Exp $
+
+Add missing source code.
+Add -fPIC for linking.
 
---- ffi/Makefile.freebsd.orig  2019-12-19 19:40:25.412017304 +0000
+--- ffi/Makefile.freebsd.orig  2021-03-25 14:26:22.000477300 +0000
 +++ ffi/Makefile.freebsd
-@@ -12,7 +12,7 @@ OUTPUT = libllvmlite.so
+@@ -11,13 +11,13 @@ 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 object_file.cpp
++      linker.cpp object_file.cpp custom_passes.cpp
+ OUTPUT = libllvmlite.so
+ 
  all: $(OUTPUT)
  
  $(OUTPUT): $(SRC) $(INCLUDE)
diff -r 9a5d7fe2bfff -r 29026df524f1 devel/py-llvmlite/patches/patch-ffi_targets.cpp
--- a/devel/py-llvmlite/patches/patch-ffi_targets.cpp   Fri Jan 14 19:36:29 2022 +0000
+++ b/devel/py-llvmlite/patches/patch-ffi_targets.cpp   Fri Jan 14 19:49:10 2022 +0000
@@ -1,17 +1,17 @@
-$NetBSD: patch-ffi_targets.cpp,v 1.1 2022/01/12 21:13:50 wiz Exp $
+$NetBSD: patch-ffi_targets.cpp,v 1.2 2022/01/14 19:49:10 adam Exp $
 
 Stopgap fix for llvm-12+
 https://github.com/numba/llvmlite/pull/802/files
 
---- ffi/targets.cpp.orig       2021-08-20 18:17:31.365363100 +0000
+--- ffi/targets.cpp.orig       2022-01-14 14:39:38.000000000 +0000
 +++ ffi/targets.cpp
-@@ -232,7 +232,9 @@ LLVMPY_CreateTargetMachine(LLVMTargetRef
+@@ -233,7 +233,9 @@ LLVMPY_CreateTargetMachine(LLVMTargetRef
          rm = Reloc::DynamicNoPIC;
  
      TargetOptions opt;
 +#if LLVM_VERSION_MAJOR < 12
      opt.PrintMachineCode = PrintMC;
 +#endif
+     opt.MCOptions.ABIName = ABIName;
  
      bool jit = JIT;
- 



Home | Main Index | Thread Index | Old Index