public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/julia] epel10: Fix symlink tests
@ 2026-12-01 21:40 Orion Poplawski
0 siblings, 0 replies; only message in thread
From: Orion Poplawski @ 2026-12-01 21:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/julia
Branch : epel10
Commit : 1e08f79bba6af97f13a0e3044bea92a63f7097f2
Author : Orion Poplawski <orion@nwra.com>
Date : 2022-10-29T08:11:21-06:00
Stats : +10/-10 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/julia/c/1e08f79bba6af97f13a0e3044bea92a63f7097f2?branch=epel10
Log:
Fix symlink tests
---
diff --git a/julia.spec b/julia.spec
index 6dcdc95..252a8ae 100644
--- a/julia.spec
+++ b/julia.spec
@@ -354,25 +354,25 @@ pushd %{buildroot}%{_libdir}/julia
rm -f libopenblas64_.so
ln -s ../libopenblasp64_.so.0 libopenblas64_.so
ln -s ../libopenblasp64_.so.0 libopenblas64_.so.0
- # Raise an error in case of failure
- realpath -e libopenblas64_.so
- realpath -e libopenblas64_.so.0
+ # Raise an error in case of changing files
+ test -e %{_libdir}/libopenblas64_.so
+ test -e %{_libdir}/libopenblas64_.so.0
# Julia creates symlinks to SuiteSparse libraries linking to libopenblas rather than libopenblas64_
for LIB in spqr umfpack colamd cholmod ccolamd camd amd suitesparseconfig btf klu ldl rbio
do
rm -f lib${LIB}.so
ln -s ../$(readelf -d %{_libdir}/lib${LIB}64_.so | sed -n '/SONAME/s/.*\(lib[^ ]*\.so\.[0-9]*\).*/\1/p') lib${LIB}.so
- # Raise an error in case of failure
- realpath -e lib${LIB}.so
+ # Raise an error in case of changing files
+ test -e %{_libdir}/lib${LIB}.so
done
%else
rm -f libopenblas.so
ln -s ../libopenblasp.so.0 libopenblas.so
ln -s ../libopenblasp.so.0 libopenblas.so.0
- # Raise an error in case of failure
- realpath -e libopenblas.so
- realpath -e libopenblas.so.0
+ # Raise an error in case of changing files
+ test -e %{_libdir}/libopenblas.so
+ test -e %{_libdir}/libopenblas.so.0
%endif
popd
@@ -388,8 +388,8 @@ pushd %{buildroot}%{_libdir}/julia
# Needed when USE_SYSTEM_CSL=1
# https://github.com/JuliaLang/julia/issues/39637
ln -sf ../libgcc_s.so.1 libgcc_s.so.1
- # Raise an error in case of failure
- realpath -e libgcc_s.so.1
+ # Raise an error in case of changing files
+ test -e %{_libdir}/libgcc_s.so.1
popd
# Use CA certificates from ca-certificates
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 21:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 21:40 [rpms/julia] epel10: Fix symlink tests Orion Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox