From 77ad099f417ffaaf54a45aedd84ff97bb4f9cd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 17 Jul 2025 20:31:22 +0200 Subject: [PATCH] sci-libs/mkl: Sed pkg-config files to use llvm-runtimes/openmp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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 c98f530c7d220..0d2a1b3216a09 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