From 733984b498ecb7e1a6c3f5cdae36487959b46a039ae8758b6929e4a451c81ea8 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Sat, 18 May 2024 11:34:38 +0000 Subject: [PATCH] - Update rpmlintrc to ignore some warnings - Fix dangling symlinks errors OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=190 --- julia-rpmlintrc | 6 ++++++ julia.changes | 10 ++++++++++ julia.spec | 9 ++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/julia-rpmlintrc b/julia-rpmlintrc index 820afc3..0e79047 100644 --- a/julia-rpmlintrc +++ b/julia-rpmlintrc @@ -10,3 +10,9 @@ addFilter("W: hidden-file-or-dir /usr/share/julia/stdlib/v1.9/Pkg/test/test_pack # it is dlopened addFilter("explicit-lib-dependency") addFilter("devel-dependency") +# Update alternatives does provide the binary +addFilter("W: desktopfile-without-binary /usr/share/applications/julia.desktop julia") +# We should not touch these +addFilter("W: hidden-file-or-dir /usr/share/julia/base/JuliaSyntax/.mailmap") +addFilter("W: hidden-file-or-dir /usr/share/julia/stdlib/v1.10/Pkg/test/test_packages/AugmentedPlatform/.pkg") +addFilter("W: hidden-file-or-dir /usr/share/julia/stdlib/v1.10/Pkg/test/test_packages/AugmentedPlatform/.pkg") diff --git a/julia.changes b/julia.changes index efb7519..8ed0bce 100644 --- a/julia.changes +++ b/julia.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sat May 18 11:34:00 UTC 2024 - Soc Virnyl Estela + +- Update rpmlintrc to ignore some warnings + +------------------------------------------------------------------- +Sat May 18 11:26:17 UTC 2024 - Soc Virnyl Estela + +- Fix dangling symlinks errors + ------------------------------------------------------------------- Sat May 18 00:32:29 UTC 2024 - Soc Virnyl Estela diff --git a/julia.spec b/julia.spec index 6232852..5143199 100644 --- a/julia.spec +++ b/julia.spec @@ -342,7 +342,7 @@ ln -sf %{_libdir}/libgcc_s.so.1 %{_builddir}/%{buildsubdir}/build/%{_libdir}/lib 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 +ln -sf %{_libdir}/libblastrampoline.so.5 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libblastrampoline.so.5 export LD_LIBRARY_PATH="%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}:/usr/lib64:/usr/lib" make MARCH=%{julia_march} prefix=%{_prefix} libdir=%{_libdir} bindir=%{_bindir} build_prefix="%{_builddir}/%{buildsubdir}/build%{_prefix}" build_libdir="%{_builddir}/%{buildsubdir}/build%{_libdir}" -C deps install-pcre %{__julia_opts} @@ -449,6 +449,13 @@ make install DESTDIR="%{buildroot}" \ TAGGED_RELEASE_BANNER="${RELEASE_BANNER}" %endif +# Dangling symlinks +pushd %{buildroot}%{_libdir}/julia + ln -sf ../libblastrampoline.so libblastrampoline.so + ln -sf ../libgcc_s.so.1 libgcc_s.so.1 + ln -sf ../libgfortran.so.5 libgfortran.so.5 +popd + # GZip man page. gzip %{buildroot}/%{_mandir}/man1/julia.1