commit:     c6bf220c7b3f0fec4f6bed074774b26392f1d62e
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  9 18:24:36 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Aug  9 18:26:55 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6bf220c

sci-libs/ViSP: enforce system dependency on lapack

It will build against a system lapack if one is installed. If it isn't
installed at build time, it includes its own copy of clapack, which
fails with LTO type errors.

Closes: https://bugs.gentoo.org/927486
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sci-libs/ViSP/{ViSP-3.5.0.ebuild => ViSP-3.5.0-r1.ebuild} | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sci-libs/ViSP/ViSP-3.5.0.ebuild 
b/sci-libs/ViSP/ViSP-3.5.0-r1.ebuild
similarity index 96%
rename from sci-libs/ViSP/ViSP-3.5.0.ebuild
rename to sci-libs/ViSP/ViSP-3.5.0-r1.ebuild
index 5a7052834f6b..a8833954122d 100644
--- a/sci-libs/ViSP/ViSP-3.5.0.ebuild
+++ b/sci-libs/ViSP/ViSP-3.5.0-r1.ebuild
@@ -21,6 +21,7 @@ REQUIRED_USE="motif? ( coin )"
 RESTRICT="!test? ( test )"
 
 COMMON_DEPEND="
+       virtual/lapack
        coin? (
                >=media-libs/coin-4
                virtual/opengl
@@ -76,6 +77,9 @@ src_configure() {
                "-DUSE_GSL=$(usex gsl ON OFF)"
                "-DUSE_JPEG=$(usex jpeg ON OFF)"
                "-DUSE_PNG=$(usex png ON OFF)"
+               "-DUSE_LAPACK=ON"
+               # disable using the builtin copy
+               "-DWITH_LAPACK=OFF"
                "-DUSE_LIBUSB_1=$(usex usb ON OFF)"
                "-DUSE_OGRE=$(usex ogre ON OFF)"
                "-DUSE_OIS=$(usex ogre ON OFF)"

Reply via email to