netlib-lapack: provide blas and lapack together (#44981)

If netlib-lapack is built with ~external-blas, it internally links
liblapack.so with libblas.so, meaning that whenever netlib-lapack is
used as a lapack provider, the package must also be a blas provider.

Conversely using netli-lapack as a blas provider does not imply that it
also must provide lapack, but nothing is lost disallowing that...
This commit is contained in:
Harmen Stoppels 2024-07-01 12:53:03 +02:00 committed by Harmen Stoppels
parent 45fca040c3
commit a3cef0f02e

View file

@ -108,8 +108,9 @@ class NetlibLapack(CMakePackage):
# https://github.com/Reference-LAPACK/lapack/pull/268 # https://github.com/Reference-LAPACK/lapack/pull/268
patch("testing.patch", when="@3.7.0:3.8") patch("testing.patch", when="@3.7.0:3.8")
# virtual dependency # liblapack links to libblas, so if this package is used as a lapack
provides("blas", when="~external-blas") # provider, it must also provide blas.
provides("lapack", "blas", when="~external-blas")
provides("lapack") provides("lapack")
depends_on("blas", when="+external-blas") depends_on("blas", when="+external-blas")