From 3f5325acedc0cb917bfb5ef53c22d664ade83803 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 10 Sep 2024 21:36:35 +0700 Subject: [PATCH] can't build against system boost on RHEL 8 --- packaging/rpm/python3-pycuda.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/rpm/python3-pycuda.spec b/packaging/rpm/python3-pycuda.spec index 6b7b88946a..5a42a21c58 100644 --- a/packaging/rpm/python3-pycuda.spec +++ b/packaging/rpm/python3-pycuda.spec @@ -21,8 +21,10 @@ Autoreq: 0 Name: python3-pycuda %if 0%{?el8} Version: 2022.1 +%define systemboost 0 %else Version: 2024.1.2 +%define systemboost 1 %endif Release: 2 URL: http://mathema.tician.de/software/pycuda @@ -78,8 +80,10 @@ CUDA=/opt/cuda --cudadrv-lib-dir=%{_libdir} \ --boost-inc-dir=%{_includedir} \ --boost-lib-dir=%{_libdir} \ +%if %{systemboost} --no-use-shipped-boost \ --boost-python-libname=boost_python%{py_mm} \ +%endif --no-cuda-enable-curand # --boost-python-libname=boost_python37 # --boost-thread-libname=boost_thread