[MacPorts] #64379: lapack @3.10.0: cmake files in wrong location

MacPorts noreply at macports.org
Sat Jan 8 09:27:33 UTC 2022


#64379: lapack @3.10.0: cmake files in wrong location
------------------------+--------------------
  Reporter:  lepus2589  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.1
Resolution:             |   Keywords:
      Port:  lapack     |
------------------------+--------------------

Comment (by lepus2589):

 I tested the discovery of LAPACK by cmake with the macports commit
 3cfffa50a7a405392eddd54fdb5ffb5ac6e91f6a, right before the movement of the
 cmake files.

 It still doesn't work. The paths were

 {{{
 /opt/local/lib/lapack/cmake/cblas-3.10.0/cblas-config-version.cmake
 /opt/local/lib/lapack/cmake/cblas-3.10.0/cblas-config.cmake
 /opt/local/lib/lapack/cmake/cblas-3.10.0/cblas-targets-release.cmake
 /opt/local/lib/lapack/cmake/cblas-3.10.0/cblas-targets.cmake
 /opt/local/lib/lapack/cmake/lapack-3.10.0/lapack-config-version.cmake
 /opt/local/lib/lapack/cmake/lapack-3.10.0/lapack-config.cmake
 /opt/local/lib/lapack/cmake/lapack-3.10.0/lapack-targets-release.cmake
 /opt/local/lib/lapack/cmake/lapack-3.10.0/lapack-targets.cmake
 /opt/local/lib/lapack/cmake/lapacke-3.10.0/lapacke-config-version.cmake
 /opt/local/lib/lapack/cmake/lapacke-3.10.0/lapacke-config.cmake
 /opt/local/lib/lapack/cmake/lapacke-3.10.0/lapacke-targets-release.cmake
 /opt/local/lib/lapack/cmake/lapacke-3.10.0/lapacke-targets.cmake
 }}}

 The paths traversed by cmake's {{{find_package()}}}
 (https://cmake.org/cmake/help/latest/command/find_package.html#id7) are

 {{{
 <prefix>/
 <prefix>/(cmake|CMake)/
 <prefix>/<name>*/
 <prefix>/<name>*/(cmake|CMake)/
 <prefix>/(lib/<arch>|lib*|share)/cmake/<name>*/
 <prefix>/(lib/<arch>|lib*|share)/<name>*/
 <prefix>/(lib/<arch>|lib*|share)/<name>*/(cmake|CMake)/
 <prefix>/<name>*/(lib/<arch>|lib*|share)/cmake/<name>*/
 <prefix>/<name>*/(lib/<arch>|lib*|share)/<name>*/
 <prefix>/<name>*/(lib/<arch>|lib*|share)/<name>*/(cmake|CMake)/
 }}}

 {{{<prefix>}}} is a list containing {{{/opt/local}}} for the cmake port.
 The LAPACK paths don't fit any of these globbing patterns.

 The {{{lapack}}} subdirectory would have to be omitted from the paths like
 so:

 {{{
 /opt/local/lib/cmake/cblas-3.10.0/cblas-config-version.cmake
 /opt/local/lib/cmake/cblas-3.10.0/cblas-config.cmake
 /opt/local/lib/cmake/cblas-3.10.0/cblas-targets-release.cmake
 /opt/local/lib/cmake/cblas-3.10.0/cblas-targets.cmake
 /opt/local/lib/cmake/lapack-3.10.0/lapack-config-version.cmake
 /opt/local/lib/cmake/lapack-3.10.0/lapack-config.cmake
 /opt/local/lib/cmake/lapack-3.10.0/lapack-targets-release.cmake
 /opt/local/lib/cmake/lapack-3.10.0/lapack-targets.cmake
 /opt/local/lib/cmake/lapacke-3.10.0/lapacke-config-version.cmake
 /opt/local/lib/cmake/lapacke-3.10.0/lapacke-config.cmake
 /opt/local/lib/cmake/lapacke-3.10.0/lapacke-targets-release.cmake
 /opt/local/lib/cmake/lapacke-3.10.0/lapacke-targets.cmake
 }}}

 Can we do that by adjusting LAPACK build variables or does this have to be
 fixed upstream? Again, we cannot simply move the cmake files after the
 build.

-- 
Ticket URL: <https://trac.macports.org/ticket/64379#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list