public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/julia] epel10: Create library symlinks during %build
@ 2026-12-01 21:39 Milan Bouchet-Valat
0 siblings, 0 replies; only message in thread
From: Milan Bouchet-Valat @ 2026-12-01 21:39 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/julia
Branch : epel10
Commit : 2db01e11f9a6844ca3614103eb2bee3bcb215637
Author : Milan Bouchet-Valat <nalimilan@club.fr>
Date : 2019-10-21T14:43:30+02:00
Stats : +26/-25 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/julia/c/2db01e11f9a6844ca3614103eb2bee3bcb215637?branch=epel10
Log:
Create library symlinks during %build
That way tests use them and will fail if they are incorrect.
---
diff --git a/julia.spec b/julia.spec
index a879a3c..b6365d1 100644
--- a/julia.spec
+++ b/julia.spec
@@ -222,31 +222,7 @@ popd
# If debug is not built here, it is built during make install
make %{?_smp_mflags} %{buildflags} %{commonopts} release debug
-%check
-# Disable tests known to fail currently
-%ifarch ppc64le %{arm} aarch64
-sed -i 's/\"numbers\",//' test/choosetests.jl
-sed -i 's/\"ccall\",//' test/choosetests.jl
-sed -i 's/\"vecelement\", //' test/choosetests.jl
-sed -i 's/\"stress\",//' test/choosetests.jl
-sed -i 's/\"errorshow\",//' test/choosetests.jl
-sed -i 's/\"threads\",//' test/choosetests.jl
-%endif
-%ifarch %{arm}
-# https://github.com/JuliaLang/julia/issues/29447
-sed -i 's/readdir(STDLIB_DIR)/setdiff(readdir(STDLIB_DIR), ["Distributed"])/g' test/choosetests.jl
-%endif
-%ifarch ppc64le
-# LinearAlgebra/lapack is the problematic test
-sed -i 's/readdir(STDLIB_DIR)/setdiff(readdir(STDLIB_DIR), ["LibGit2", "LinearAlgebra"])/g' test/choosetests.jl
-sed -i 's/\"cmdlineargs\", //' test/choosetests.jl
-%endif
-
-make %{commonopts} test
-
-%install
-make %{commonopts} DESTDIR=%{buildroot} install
-
+# Do this before running tests so that they fail if a link is incorrect
pushd %{julia_builddir}%{_libdir}/julia
%if 0%{?__isa_bits} == 64
rm -f libopenblas64_.so libopenblas64_.so.0
@@ -273,6 +249,31 @@ pushd %{julia_builddir}%{_libdir}/julia
realpath -e libopenblas.so.0
%endif
popd
+%check
+
+# Disable tests known to fail currently
+%ifarch ppc64le %{arm} aarch64
+sed -i 's/\"numbers\",//' test/choosetests.jl
+sed -i 's/\"ccall\",//' test/choosetests.jl
+sed -i 's/\"vecelement\", //' test/choosetests.jl
+sed -i 's/\"stress\",//' test/choosetests.jl
+sed -i 's/\"errorshow\",//' test/choosetests.jl
+sed -i 's/\"threads\",//' test/choosetests.jl
+%endif
+%ifarch %{arm}
+# https://github.com/JuliaLang/julia/issues/29447
+sed -i 's/readdir(STDLIB_DIR)/setdiff(readdir(STDLIB_DIR), ["Distributed"])/g' test/choosetests.jl
+%endif
+%ifarch ppc64le
+# LinearAlgebra/lapack is the problematic test
+sed -i 's/readdir(STDLIB_DIR)/setdiff(readdir(STDLIB_DIR), ["LibGit2", "LinearAlgebra"])/g' test/choosetests.jl
+sed -i 's/\"cmdlineargs\", //' test/choosetests.jl
+%endif
+
+make %{commonopts} test
+
+%install
+make %{commonopts} DESTDIR=%{buildroot} install
cp -p CONTRIBUTING.md LICENSE.md NEWS.md README.md %{buildroot}%{_docdir}/julia/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 21:39 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:39 [rpms/julia] epel10: Create library symlinks during %build Milan Bouchet-Valat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox