forked from pool/julia
- The location of libgcc_s is different between leap and tumbleweed.
- Prevent debug-info generation touching precompiled sysimages and caches which will invalidate checksum generation OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=198
This commit is contained in:
parent
144a3cff1f
commit
dc828ba32d
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun May 19 10:18:13 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
|
||||
- The location of libgcc_s is different between leap and tumbleweed.
|
||||
- Prevent debug-info generation touching precompiled sysimages and caches which will
|
||||
invalidate checksum generation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 18 11:34:00 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
|
||||
|
14
julia.spec
14
julia.spec
@ -340,7 +340,11 @@ export BUILD_LLDB=1
|
||||
# https://github.com/JuliaLang/julia/issues/39637
|
||||
unlink %{_builddir}/%{buildsubdir}/build/usr/lib || true
|
||||
mkdir -p %{_builddir}/%{buildsubdir}/build/%{_libdir}/
|
||||
%if 0%{?suse_version} > 1600
|
||||
ln -sf %{_libdir}/libgcc_s.so.1 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libgcc_s.so.1
|
||||
%else
|
||||
ln -sf /%{_lib}/libgcc_s.so.1 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libgcc_s.so.1
|
||||
%endif
|
||||
|
||||
# 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
|
||||
@ -453,10 +457,14 @@ make install DESTDIR="%{buildroot}" \
|
||||
TAGGED_RELEASE_BANNER="${RELEASE_BANNER}"
|
||||
%endif
|
||||
|
||||
# Dangling symlinks
|
||||
# Fix dangling symlinks
|
||||
pushd %{buildroot}%{_libdir}/julia
|
||||
ln -sf %{_libdir}/libblastrampoline.so libblastrampoline.so
|
||||
%if 0%{?suse_version} > 1600
|
||||
ln -sf %{_libdir}/libgcc_s.so.1 libgcc_s.so.1
|
||||
%else
|
||||
ln -sf /%{_lib}/libgcc_so.1 libgcc_s.so.1
|
||||
%endif
|
||||
ln -sf %{_libdir}/libgfortran.so.5 libgfortran.so.5
|
||||
ln -sf %{_libdir}/libcurl.so libcurl.so.4
|
||||
popd
|
||||
@ -478,6 +486,10 @@ ln -sfv /var/lib/ca-certificates/ca-bundle.pem %{buildroot}%{_datadir}/julia/cer
|
||||
# Remove execution permission on documentation files.
|
||||
chmod -x+X -R %{buildroot}%{_docdir}/julia/*
|
||||
|
||||
# Prevent find-debuginfo from touching precompiled caches as it
|
||||
# changes checksums, which invalidates them
|
||||
chmod -x %{buildroot}%{_datarootdir}/julia/compiled/*/*/*.so
|
||||
|
||||
# Install .desktop file and icons
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/
|
||||
|
Loading…
x
Reference in New Issue
Block a user