commit:     77ad099f417ffaaf54a45aedd84ff97bb4f9cd8e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 17 18:31:22 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 17 18:54:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77ad099f

sci-libs/mkl: Sed pkg-config files to use llvm-runtimes/openmp

Given that we do not package Intel OpenMP and LLVM's implementation
seems compatible enough (and the ebuild already depended on it),
sed the pkg-config file to actually make it work.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sci-libs/mkl/mkl-2025.2.0.628.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sci-libs/mkl/mkl-2025.2.0.628.ebuild 
b/sci-libs/mkl/mkl-2025.2.0.628.ebuild
index c98f530c7d22..0d2a1b3216a0 100644
--- a/sci-libs/mkl/mkl-2025.2.0.628.ebuild
+++ b/sci-libs/mkl/mkl-2025.2.0.628.ebuild
@@ -56,6 +56,11 @@ src_install() {
                rm -rv 
"opt/intel/oneapi/mkl/${PN_VER}"/share/{mkl/benchmarks,doc/mkl/examples} || die
        fi
 
+       # Replace Intel OpenMP with LLVM OpenMP
+       sed -e '/Requires: openmp/d' \
+               -e '/Libs:/s:$: -lomp:' \
+               -i "${libroot}"/pkgconfig/*iomp.pc || die
+
        # Symlink pkgconfig and cmake files
        pushd "${libroot}/pkgconfig" >/dev/null || die
        for file in *.pc; do

Reply via email to