Michael committed a flint 2.7.0 ebuild before my PR was ready (because of real life). The new ebuild doesn't declare any dependency on cblas which is automagically detected by the configuring system (cmake). Moreover cblas implementation are detected in the order: openblas, generic cblas, blis. Which means that openblas will be linked to directly if found, instead of using ldso selection. Reproducible: Always
Basic diff between current ebuild and mine: @@ -29,16 +26,24 @@ BDEPEND="doc? ( ${PYTHON_DEPS}" DEPEND="dev-libs/gmp:= dev-libs/mpfr:= - ntl? ( dev-libs/ntl:= )" + ntl? ( dev-libs/ntl:= ) + virtual/cblas" RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}/${PN}-2.6.0-multilib-strict.patch" ) +PATCHES=( + "${FILESDIR}"/${PN}-2.6.0-multilib-strict.patch +) + +# ninja doesn't like "-lcblas" so using make. +CMAKE_MAKEFILE_GENERATOR="emake" src_configure() { local mycmakeargs=( -DWITH_NTL="$(usex ntl)" -DBUILD_TESTING="$(usex test)" -DBUILD_DOCS="$(usex doc)" + -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include" + -DCBLAS_LIBRARIES="-lcblas" ) cmake_src_configure
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=309ad0dd85afb5347a059b761a0256d638346053 commit 309ad0dd85afb5347a059b761a0256d638346053 Author: François Bissey <frp.bissey@gmail.com> AuthorDate: 2021-01-21 20:10:40 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2021-01-23 15:30:52 +0000 sci-mathematics/flint: upstream bump and fix bugs Package-Manager: Portage-3.0.13, Repoman-3.0.2 Bug: https://bugs.gentoo.org/761736 Bug: https://bugs.gentoo.org/760678 Closes: https://github.com/gentoo/gentoo/pull/19152 Signed-off-by: François René Pierre Bissey <frp.bissey@gmail.com> Signed-off-by: Michael Orlitzky <mjo@gentoo.org> sci-mathematics/flint/flint-2.7.1.ebuild | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+)