From 18bf470483a2f115e16742f57d8ae168e50590f7b2ba7a6d2f313bc95b5a14f4 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Fri, 17 May 2024 08:22:56 +0000 Subject: [PATCH] - Julia on leap has trouble looking for libgfortran5 so symlinking it to fix it - Format specfile OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=184 --- julia.changes | 6 ++++++ julia.spec | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/julia.changes b/julia.changes index d9c08bb..5d0d6ad 100644 --- a/julia.changes +++ b/julia.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 17 07:31:28 UTC 2024 - Soc Virnyl Estela + +- Julia on leap has trouble looking for libgfortran5 so symlinking it to fix it +- Format specfile + ------------------------------------------------------------------- Fri May 17 00:17:42 UTC 2024 - Soc Virnyl Estela diff --git a/julia.spec b/julia.spec index 8d59d6a..6b7076f 100644 --- a/julia.spec +++ b/julia.spec @@ -193,10 +193,12 @@ Requires: readline # Libraries used by CompilerSupportLibraries_jll, blastrampoline, # nghttp2_jll but not detected as they are dlopen()ed but not linked to %if 0%{?__isa_bits} == 64 +BuildRequires: libgfortran.so.5()(64bit) Requires: libgfortran.so.5()(64bit) Requires: libgomp.so.1()(64bit) Requires: libmbedcrypto.so.16()(64bit) %else +BuildRequires: libgfortran.so.5 Requires: libgfortran.so.5 Requires: libgomp.so.1 Requires: libmbedcrypto.so.15 @@ -334,6 +336,9 @@ unlink %{_builddir}/%{buildsubdir}/build/usr/lib || true mkdir -p %{_builddir}/%{buildsubdir}/build/%{_libdir}/ ln -sf %{_libdir}/libgcc_s.so.1 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libgcc_s.so.1 +# I am not sure why Julia cannot find also libgfortran5.so on Leap... +ln -sf %{_libdir}/libgfortran.so.5 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libgfortran.so.5 + # Idk how it can't find libblastrampoline? ln -sf %{_libdir}/libblastrampoline.so %{_builddir}/%{buildsubdir}/build/%{_libdir}/libblastrampoline.so @@ -420,6 +425,7 @@ RELEASE_BANNER="openSUSE Tumbleweed - Built on $(date -u)" SLE_VERSION="$(echo %{sle_version} | sed -E 's|^(15)0([0-9])00|\1.\2|m')" RELEASE_BANNER="openSUSE Leap ${SLE_VERSION} - Built on $(date -u)" %endif + make install DESTDIR="%{buildroot}" \ MARCH="%{julia_march}" \ %ifarch x86_64 || x86_64_v3