pkgsrc-WIP-changes archive

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

py-llvmlite: finish update to 0.43.0



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sat Aug 31 10:18:32 2024 +0200
Changeset:	afeaf5923abfc690c0b740464c2ce78f095d47d1

Modified Files:
	py-llvmlite/Makefile
	py-llvmlite/PLIST
Removed Files:
	py-llvmlite/TODO

Log Message:
py-llvmlite: finish update to 0.43.0

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=afeaf5923abfc690c0b740464c2ce78f095d47d1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-llvmlite/Makefile |   8 ++--
 py-llvmlite/PLIST    |  14 ++++--
 py-llvmlite/TODO     | 131 ---------------------------------------------------
 3 files changed, 14 insertions(+), 139 deletions(-)

diffs:
diff --git a/py-llvmlite/Makefile b/py-llvmlite/Makefile
index 5e4bd2307b..5e453aa799 100644
--- a/py-llvmlite/Makefile
+++ b/py-llvmlite/Makefile
@@ -10,6 +10,9 @@ HOMEPAGE=	https://llvmlite.readthedocs.io/
 COMMENT=	Lightweight LLVM Python binding for writing JIT compilers
 LICENSE=	2-clause-bsd
 
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+
 # Statically linking in a purpose-built LLVM as upstream urges to do.
 # They support only a certain version of LLVM per release, and that
 # with patches.
@@ -69,7 +72,7 @@ LLVM_CMAKE_CONFIGURE_ARGS+=	-DLLVM_INCLUDE_UTILS=ON
 LLVM_CMAKE_CONFIGURE_ARGS+=	-DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF
 LLVM_CMAKE_CONFIGURE_ARGS+=	-DLLVM_INCLUDE_DOCS=OFF
 LLVM_CMAKE_CONFIGURE_ARGS+=	-DLLVM_INCLUDE_EXAMPLES=OFF
-
+LLVM_CMAKE_CONFIGURE_ARGS+=	-DLLVM_INCLUDE_TESTS=OFF
 
 MAKE_ENV+=		LLVM_CONFIG=${WRKDIR}/llvm-inst/bin/llvm-config
 # unable to pass LLVM bit-code files to linker
@@ -89,7 +92,6 @@ pre-configure:
 	cd ${WRKDIR} &&  mkdir build && cd build && \
 	  cmake -G'Unix Makefiles' ${LLVM_CMAKE_CONFIGURE_ARGS} ../llvm && \
 	  ${MAKE} -j${MAKE_JOBS} && \
-	  ${MAKE} -j${MAKE_JOBS} check-llvm-unit && \
 	  ${MAKE} install
 	${SED} -e 's/ -stdlib=libc++//' ${WRKSRC}/ffi/Makefile.freebsd > ${WRKSRC}/ffi/Makefile.netbsd
 
@@ -101,5 +103,5 @@ post-install:
 		${DESTDIR}${PREFIX}/${PYSITELIB}/llvmlite/binding/libllvmlite.dylib
 .endif
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-llvmlite/PLIST b/py-llvmlite/PLIST
index 984aa1a8a6..1f6491e426 100644
--- a/py-llvmlite/PLIST
+++ b/py-llvmlite/PLIST
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.7 2024/01/24 15:25:12 thor Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD$
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/llvmlite/__init__.py
 ${PYSITELIB}/llvmlite/__init__.pyc
 ${PYSITELIB}/llvmlite/__init__.pyo
@@ -58,6 +59,9 @@ ${PYSITELIB}/llvmlite/binding/targets.pyo
 ${PYSITELIB}/llvmlite/binding/transforms.py
 ${PYSITELIB}/llvmlite/binding/transforms.pyc
 ${PYSITELIB}/llvmlite/binding/transforms.pyo
+${PYSITELIB}/llvmlite/binding/typeref.py
+${PYSITELIB}/llvmlite/binding/typeref.pyc
+${PYSITELIB}/llvmlite/binding/typeref.pyo
 ${PYSITELIB}/llvmlite/binding/value.py
 ${PYSITELIB}/llvmlite/binding/value.pyc
 ${PYSITELIB}/llvmlite/binding/value.pyo
diff --git a/py-llvmlite/TODO b/py-llvmlite/TODO
deleted file mode 100644
index 851353f965..0000000000
--- a/py-llvmlite/TODO
+++ /dev/null
@@ -1,131 +0,0 @@
-Upgrade candidate.
-
-1. adapt to use LLVM 15
-
-2. fix build:
-
-[100%] Built target MIRTests
-[100%] Built target LLVMExegesisTests
-[100%] Built target GlobalISelTests
-[100%] Linking CXX executable AMDGPUTests
-[100%] Built target AMDGPUTests
-[100%] Linking CXX executable CodeGenTests
-[100%] Linking CXX executable DebugInfoDWARFTests
-[100%] Built target CodeGenTests
-[100%] Built target DebugInfoDWARFTests
-[100%] Built target UnitTests
-[100%] Running lit suite /scratch/devel/py-llvmlite/work/llvm/test/Unit
-/scratch/devel/py-llvmlite/work/llvm-14.0.6.src/utils/lit/lit/formats/googletest.py:57: SyntaxWarning: invalid escape sequence '\('
-  upstream_prefix = re.compile('Running main\(\) from .*gtest_main\.cc')
-/scratch/devel/py-llvmlite/work/llvm-14.0.6.src/utils/lit/lit/TestRunner.py:181: SyntaxWarning: invalid escape sequence '\c'
-  """
-llvm-lit: /scratch/devel/py-llvmlite/work/llvm-14.0.6.src/utils/lit/lit/run.py:126: note: Raised process limit from 1024 to 1044
--- Testing: 6458 tests, 32 workers --
-Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.
-FAIL: LLVM-Unit :: Support/./SupportTests/FileSystemTest.RealPath (5034 of 6458)
-******************** TEST 'LLVM-Unit :: Support/./SupportTests/FileSystemTest.RealPath' FAILED ********************
-Script:
---
-/scratch/devel/py-llvmlite/work/build/unittests/Support/./SupportTests --gtest_filter=FileSystemTest.RealPath
---
-Note: Google Test filter = FileSystemTest.RealPath
-[==========] Running 1 test from 1 test suite.
-[----------] Global test environment set-up.
-[----------] 1 test from FileSystemTest
-[ RUN      ] FileSystemTest.RealPath
-/scratch/devel/py-llvmlite/work/llvm/unittests/Support/Path.cpp:767: Failure
-fs::real_path(HomeDir, Expected): did not return errc::success.
-error number: 2
-error message: No such file or directory
-
-/scratch/devel/py-llvmlite/work/llvm/unittests/Support/Path.cpp:681: Failure
-fs::remove(TestDirectory.str()): did not return errc::success.
-error number: 66
-error message: Directory not empty
-
-[  FAILED  ] FileSystemTest.RealPath (0 ms)
-[----------] 1 test from FileSystemTest (0 ms total)
-
-[----------] Global test environment tear-down
-[==========] 1 test from 1 test suite ran. (0 ms total)
-[  PASSED  ] 0 tests.
-[  FAILED  ] 1 test, listed below:
-[  FAILED  ] FileSystemTest.RealPath
-
- 1 FAILED TEST
-Test Directory: /tmp/lit-tmp-r1t29qpx/file-system-test-cdc719
-
-********************
-Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70..
-FAIL: LLVM-Unit :: Support/./SupportTests/FileSystemTest.permissions (5055 of 6458)
-******************** TEST 'LLVM-Unit :: Support/./SupportTests/FileSystemTest.permissions' FAILED ********************
-Script:
---
-/scratch/devel/py-llvmlite/work/build/unittests/Support/./SupportTests --gtest_filter=FileSystemTest.permissions
---
-Note: Google Test filter = FileSystemTest.permissions
-[==========] Running 1 test from 1 test suite.
-[----------] Global test environment set-up.
-[----------] 1 test from FileSystemTest
-[ RUN      ] FileSystemTest.permissions
-/scratch/devel/py-llvmlite/work/llvm/unittests/Support/Path.cpp:2271: Failure
-Expected equality of these values:
-  fs::setPermissions(TempPath, fs::set_gid_on_exe)
-    Which is: generic:1
-  NoError
-    Which is: system:0
-/scratch/devel/py-llvmlite/work/llvm/unittests/Support/Path.cpp:2272: Failure
-Value of: CheckPermissions(fs::set_gid_on_exe)
-  Actual: false
-Expected: true
-/scratch/devel/py-llvmlite/work/llvm/unittests/Support/Path.cpp:2301: Failure
-Expected equality of these values:
-  fs::setPermissions(TempPath, fs::all_perms & ~fs::sticky_bit)
-    Which is: generic:1
-  NoError
-    Which is: system:0
-/scratch/devel/py-llvmlite/work/llvm/unittests/Support/Path.cpp:2303: Failure
-Value of: CheckPermissions(fs::all_perms & ~fs::sticky_bit)
-  Actual: false
-Expected: true
-[  FAILED  ] FileSystemTest.permissions (0 ms)
-[----------] 1 test from FileSystemTest (0 ms total)
-
-[----------] Global test environment tear-down
-[==========] 1 test from 1 test suite ran. (0 ms total)
-[  PASSED  ] 0 tests.
-[  FAILED  ] 1 test, listed below:
-[  FAILED  ] FileSystemTest.permissions
-
- 1 FAILED TEST
-Test Directory: /tmp/lit-tmp-r1t29qpx/file-system-test-695917
-
-********************
-Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
-********************
-Failed Tests (2):
-  LLVM-Unit :: Support/./SupportTests/FileSystemTest.RealPath
-  LLVM-Unit :: Support/./SupportTests/FileSystemTest.permissions
-
-
-Testing Time: 6.90s
-  Passed: 6456
-  Failed:    2
---- test/CMakeFiles/check-llvm-unit ---
-*** [test/CMakeFiles/check-llvm-unit] Error code 1
-
-make[5]: stopped making "test/CMakeFiles/check-llvm-unit.dir/build" in /scratch/devel/py-llvmlite/work/build
-make[5]: 1 error
-
-make[5]: stopped making "test/CMakeFiles/check-llvm-unit.dir/build" in /scratch/devel/py-llvmlite/work/build
---- test/CMakeFiles/check-llvm-unit.dir/all ---
-*** [test/CMakeFiles/check-llvm-unit.dir/all] Error code 2
-
-make[4]: stopped making "test/CMakeFiles/check-llvm-unit.dir/all" in /scratch/devel/py-llvmlite/work/build
-make[4]: 1 error
-
-make[4]: stopped making "test/CMakeFiles/check-llvm-unit.dir/all" in /scratch/devel/py-llvmlite/work/build
---- test/CMakeFiles/check-llvm-unit.dir/rule ---
-*** [test/CMakeFiles/check-llvm-unit.dir/rule] Error code 2
-
-make[3]: stopped making "check-llvm-unit" in /scratch/devel/py-llvmlite/work/build


Home | Main Index | Thread Index | Old Index