diff --git a/julia.changes b/julia.changes index 5b1acec..aa86285 100644 --- a/julia.changes +++ b/julia.changes @@ -1,7 +1,10 @@ ------------------------------------------------------------------- -Mon Dec 11 01:18:01 UTC 2023 - Soc Virnyl Estela +Mon Dec 11 04:35:23 UTC 2023 - Soc Virnyl Estela -- Attempt fix when libLLVM-14jl is missing +- Attempt fix when libLLVM-14jl is missing by moving build directory contents correctly. +- Allow linking of openblas properly. +- Create fakename of libopenblas.so.0 and symlink it to julia's set of sofiles +- Just fdupes starting from the top buildroot directory ------------------------------------------------------------------- Sun Dec 10 14:59:09 UTC 2023 - Soc Virnyl Estela diff --git a/julia.spec b/julia.spec index 9d6cde6..19baf61 100644 --- a/julia.spec +++ b/julia.spec @@ -249,11 +249,13 @@ sed "s/ \$(build_prefix)\\/manifest\\/zlib//" -i deps/llvm.mk export LDFLAGS="$LDFLAGS -latomic" %endif + + # We need these compilation flags to avoid error when building MBEDTLS with # GCC-11. # 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 CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized $(pkg-config --cflags --libs openblas)" +export CXXFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized $(pkg-config --cflags --libs openblas)" export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir} make %{?_smp_mflags} \ @@ -325,8 +327,8 @@ fi # We need these compilation flags to avoid error when building MBEDTLS with # GCC-11. # 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 CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized $(pkg-config --cflags --libs openblas)" +export CXXFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized $(pkg-config --cflags --libs openblas)" export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir} make install DESTDIR=%{buildroot} \ @@ -398,6 +400,7 @@ mv -f %{buildroot}%{_datadir}/doc/julia/* %{buildroot}%{_docdir}/julia/ rm -r %{buildroot}%{_datadir}/doc/julia ln -sfv /var/lib/ca-certificates/ca-bundle.pem %{buildroot}%{_datadir}/julia/cert.pem # Needed by some julia packages +ln -sfv %{_libdir}/libopenblas.so.0 %{buildroot}%{_libdir}/julia/libopenblas64_.so # Ironic that we don't need INTERFACE64 :) # Remove execution permission on documentation files. chmod -x+X -R %{buildroot}%{_docdir}/julia/* @@ -425,7 +428,7 @@ rm %{buildroot}%{_datadir}/appdata/julia.appdata.xml %endif # Remove duplicated files. -%fdupes %{buildroot}%{_datadir}/ +%fdupes %{buildroot} %suse_update_desktop_file -r julia Science Math