From 80ccd0c5ec1a076fe83da5bb69cd67d38ccfb838dad09c3571b0bf98b97d9f3f Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 12 Dec 2023 07:56:41 +0000 Subject: [PATCH] - Fix libopenblas64_.so missing by updating LD_LIBRARY_PATH - Fix where there should be /usr/lib64/julia/ and /usr/lib/julia/ OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=129 --- julia.changes | 6 ++++++ julia.spec | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/julia.changes b/julia.changes index f834c5d..d5d6291 100644 --- a/julia.changes +++ b/julia.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 12 07:50:51 UTC 2023 - Soc Virnyl Estela + +- Fix libopenblas64_.so missing by updating LD_LIBRARY_PATH +- Fix where there should be /usr/lib64/julia/ and /usr/lib/julia/ + ------------------------------------------------------------------- Mon Dec 11 14:02:22 UTC 2023 - Soc Virnyl Estela diff --git a/julia.spec b/julia.spec index 56908c2..ad78b1e 100644 --- a/julia.spec +++ b/julia.spec @@ -254,7 +254,7 @@ export LDFLAGS="$LDFLAGS -latomic" # Ref.: https://build.opensuse.org/package/show/security:tls/mbedtls export CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized" export CXXFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized" -export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir} +export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}:%{_builddir}/%{buildsubdir}/usr/lib pushd deps export USE_BLAS64=1 @@ -321,7 +321,6 @@ if [ "x%{_lib}" != xlib ] ; then cp -a %{_builddir}/%{buildsubdir}/%{_libdir}/* %{_builddir}/%{buildsubdir}/build/%{_libdir} cp -a %{_builddir}/%{buildsubdir}/build/usr/lib/* %{_builddir}/%{buildsubdir}/build/%{_libdir} rm -rf %{_builddir}/%{buildsubdir}/build/usr/lib/ - ln -sf %{_lib} %{_builddir}/%{buildsubdir}/build/usr/lib # make -C deps install-somepackage goes to top-level folder else # Since it's not there so we also just copy it anyway @@ -341,7 +340,7 @@ rm -rf %{_builddir}/%{buildsubdir}/usr/ # Ref.: https://build.opensuse.org/package/show/security:tls/mbedtls export CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized" export CXXFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized" -export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir} +export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}:%{_builddir}/%{buildsubdir}/usr/lib make install DESTDIR=%{buildroot} \ MARCH=%{julia_march} \ @@ -442,6 +441,11 @@ rm %{buildroot}%{_datadir}/appdata/julia.appdata.xml mv %{buildroot}%{_bindir}/julia %{buildroot}%{_bindir}/julia-base mkdir -p %{buildroot}%{_sysconfdir}/alternatives + +if [ "x%{_lib}" != xlib ] ; then + ln -sf %{buildroot}%{_libdir}/julia %{_prefix}/lib/julia +fi + ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia %post