SHA256
1
0
forked from pool/julia

- 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
This commit is contained in:
Soc Virnyl Estela 2023-12-12 07:56:41 +00:00 committed by Git OBS Bridge
parent c06d873824
commit 80ccd0c5ec
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Dec 12 07:50:51 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- 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 <uncomfy+openbuildservice@uncomfyhalomacro.pl>

View File

@ -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