Re: [bug-report]rdma-core v51.0 build error with Rocky Linux 8.8

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

 



On Fri, May 24, 2024 at 06:01:51PM +0000, Marciniszyn, Mike wrote:
> > >
> > > This can be reproduced by loading a newer python and rebuilding the 51.0
> > rdma-core from a git clone using either 51.0 or master.
> > >
> > > An RPM based RHEL build can replace the existing PYTHON_EXECUABLE with
> > > Python_EXECUTABLE.
> > 
> > You mean at some point we lost that PYTHON_EXECUTABLE works and it got
> > renamed to Python_EXECUTABLE ?
> > 
> > Jason
> 
> The Python_EXECUTABLE is workaround that can be applied to a spec file.

OK, that is clear. If PYTHON_EXECUTABLE no longer works that is a well
understandable issue.

Something like this maybe?

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -216,6 +216,9 @@ endif()
 
 # Use Python modules based on CMake version for backward compatibility
 set(CYTHON_EXECUTABLE "")
+if (${PYTHON_EXCUTABLE})
+  set(Python_EXECUTABLE ${PYTHON_EXCUTABLE})
+endif()
 if (${CMAKE_VERSION} VERSION_LESS "3.12")
   # Look for Python. We prefer some variant of python 3 if the system has it
   FIND_PACKAGE(PythonInterp 3 QUIET)

Jason




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux