public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/julia] rawhide: EPEL10 support
@ 2026-12-01 21:41 Milan Bouchet-Valat
  0 siblings, 0 replies; only message in thread
From: Milan Bouchet-Valat @ 2026-12-01 21:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/julia
            Branch : rawhide
            Commit : fe7ef5eb77ce7001cc0cf76ec50832658053a756
            Author : Milan Bouchet-Valat <nalimilan@club.fr>
            Date   : 2026-12-01T20:35:06+01:00
            Stats  : +28/-28 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/julia/c/fe7ef5eb77ce7001cc0cf76ec50832658053a756?branch=rawhide

            Log:
            EPEL10 support

Also do some cleanup.

---
diff --git a/julia.spec b/julia.spec
index eb116db..460f5d3 100644
--- a/julia.spec
+++ b/julia.spec
@@ -83,7 +83,11 @@ BuildRequires:  openblas-threads
 BuildRequires:  openlibm-devel >= 0.4
 BuildRequires:  (pkgconfig(libgit2) >= 1.9.0 with pkgconfig(libgit2) < 1.10.0~)
 BuildRequires:  libssh2-devel
+%if 0%{?el10}
+BuildRequires:  openssl-devel
+%else
 BuildRequires:  openssl3-devel
+%endif
 BuildRequires:  libcurl-devel
 BuildRequires:  libcurl-full
 BuildRequires:  libnghttp2-devel
@@ -95,10 +99,11 @@ BuildRequires:  mpfr-devel >= 4
 # Needed to build gmp
 BuildRequires:  m4
 # Needed to build gmp with julia-gmp-6.3.0-c23.patch
-BuildRequires: autoconf automake libtool
+BuildRequires:  autoconf automake libtool
 BuildRequires:  patchelf
 BuildRequires:  perl
 BuildRequires:  7zip-standalone
+BuildRequires:  libzstd-devel
 %if 0%{?__isa_bits} == 64
 BuildRequires:  suitesparse64_-devel >= 7.6
 %else
@@ -203,21 +208,27 @@ cp -p %SOURCE6 contrib/julia.svg
 # Without specifying MARCH, the Julia system image would only work on native CPU
 # CPU targets reflect those used upstream at
 # https://github.com/JuliaCI/julia-buildkite/blob/main/utilities/build_envs.sh
+%global marchval %(echo %build_cflags | grep -Po 'march=\\K[^ ]*')
 %ifarch %{ix86}
 %global march MARCH=pentium4
 %global cpu_target JULIA_CPU_TARGET="pentium4;sandybridge,-xsaveopt,clone_all"
 %endif
 %ifarch x86_64
-%global march MARCH=x86-64
+%global march %nil
+# First is standard EPEL 10, second is AlmaLinux 10 x86_64_v2 rebuild
+%if "%{marchval}" == "x86-64-v3" || "%{marchval}" == "x86-64-v2"
+%global cpu_target JULIA_CPU_TARGET="%{marchval},clone_all;haswell,-rdrnd,base(0);x86-64-v4,-rdrnd,base(0)"
+%else
 %global cpu_target JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1);x86-64-v4,-rdrnd,base(1)"
 %endif
+%endif
 %ifarch %{arm}
 # gcc and LLVM do not support the same targets
-%global march MARCH=$(echo %build_cflags | grep -Po 'march=\\K[^ ]*')
+%global march MARCH=%{marchval}
 %global cpu_target JULIA_CPU_TARGET="generic"
 %endif
 %ifarch armv7hl
-%global march MARCH=$(echo %build_cflags | grep -Po 'march=\\K[^ ]*')
+%global march MARCH=%{marchval}
 %global cpu_target JULIA_CPU_TARGET="armv7-a;armv7-a,neon;armv7-a,neon,vfp4"
 %endif
 %ifarch aarch64
@@ -244,19 +255,13 @@ cp -p %SOURCE6 contrib/julia.svg
 %global suitesparse_lib SUITESPARSE_LIB="-lumfpack -lcholmod -lamd -lcamd -lcolamd -lspqr"
 %endif
 
-%if 0%{?el7}
-%global cmake CMAKE=cmake3
-%else
-%global cmake CMAKE=cmake
-%endif
-
 # About build, build_libdir and build_bindir, see https://github.com/JuliaLang/julia/issues/5063#issuecomment-32628111
-%global commonopts USE_SYSTEM_LLVM=0 USE_SYSTEM_LIBUNWIND=0 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_GMP=0 USE_SYSTEM_MPFR=1 USE_SYSTEM_LIBSUITESPARSE=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_OPENSSL=1 USE_SYSTEM_CURL=1 USE_SYSTEM_PATCHELF=1 USE_SYSTEM_LIBM=0 USE_SYSTEM_OPENLIBM=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_P7ZIP=1 USE_SYSTEM_ZSTD=1 USE_SYSTEM_NGHTTP2=1 USE_SYSTEM_CSL=1 USE_SYSTEM_LIBBLASTRAMPOLINE=0 USE_SYSTEM_LIBWHICH=0 USE_BINARYBUILDER=0 USE_BINARYBUILDER_LLVM=0 WITH_TERMINFO=0 BUNDLE_DEBUG_LIBS=0 JULIA_SPLITDEBUG=1 TAGGED_RELEASE_BANNER="Fedora %{fedora} build" VERBOSE=1 %{march} %{cpu_target} %{blas} %{suitesparse_lib} prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} libexecdir=%{_libexecdir} datarootdir=%{_datarootdir} includedir=%{_includedir} sysconfdir=%{_sysconfdir} build_prefix=%{_builddir}/%{buildsubdir}/build%{_prefix} build_libdir=%{_builddir}/%{buildsubdir}/build%{_libdir} JULIA_CPU_THREADS=$(echo %{?_smp_mflags} | sed s/-j//)
+%global commonopts USE_SYSTEM_LLVM=0 USE_SYSTEM_LIBUNWIND=0 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_GMP=0 USE_SYSTEM_MPFR=1 USE_SYSTEM_LIBSUITESPARSE=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_OPENSSL=1 USE_SYSTEM_CURL=1 USE_SYSTEM_PATCHELF=1 USE_SYSTEM_LIBM=0 USE_SYSTEM_OPENLIBM=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_P7ZIP=1 USE_SYSTEM_ZSTD=1 USE_SYSTEM_NGHTTP2=1 USE_SYSTEM_CSL=1 USE_SYSTEM_LIBBLASTRAMPOLINE=0 USE_SYSTEM_LIBWHICH=0 USE_BINARYBUILDER=0 USE_BINARYBUILDER_LLVM=0 WITH_TERMINFO=0 BUNDLE_DEBUG_LIBS=0 JULIA_SPLITDEBUG=1 TAGGED_RELEASE_BANNER="%{?fedora:Fedora }%{?fedora}%{?epel:EPEL }%{?epel} build" VERBOSE=1 %{march} %{cpu_target} %{blas} %{suitesparse_lib} prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} libexecdir=%{_libexecdir} datarootdir=%{_datarootdir} includedir=%{_includedir} sysconfdir=%{_sysconfdir} build_prefix=%{_builddir}/%{buildsubdir}/build%{_prefix} build_libdir=%{_builddir}/%{buildsubdir}/build%{_libdir} JULIA_CPU_THREADS=%{_smp_build_nthreads}
 
 make %{commonopts} -C deps extract-gmp
 pushd deps/srccache/gmp-%{gmpversion}
-    %patch -p1 0
-    autoreconf -ifv
+%patch -p1 0
+autoreconf -ifv
 popd
 
 
@@ -265,18 +270,8 @@ popd
 # It is not enabled upstream anyway
 %global _lto_cflags %nil
 
-# Workaround to build LLVM with GCC 15:
-# https://github.com/JuliaLang/julia/issues/58478#issuecomment-3161411290
-%global build_cxxflags %(echo "%{build_cxxflags} -include cstdint")
-
-# Julia hardcodes the exact SOVERSION it uses when USE_SYSTEM_*=0
-# https://github.com/JuliaLang/julia/pull/38347#discussion_r574819534
-sed "s/libopenlibm.so.*\"/$(cd %{_libdir} && ls libopenlibm.so.?)\"/" -i stdlib/OpenLibm_jll/src/OpenLibm_jll.jl
-sed "s/libgit2.so.*\"/$(cd %{_libdir} && ls -1 libgit2.so.?.? | sort -nr | head -n1)\"/" -i stdlib/LibGit2_jll/src/LibGit2_jll.jl
-sed "/VersionNumber/s/v\".*\"/v\"$(pkg-config --modversion libgit2)\"/" -i stdlib/LibGit2_jll/test/runtests.jl
-
 # Disable test that fails because Julia process doesn't error as expected
-sed "s/mktempdir() do pfx/false \&\& mktempdir() do pfx/" -i Compiler/test/codegen.jl
+#sed "s/mktempdir() do pfx/false \&\& mktempdir() do pfx/" -i Compiler/test/codegen.jl
 
 # Increase tolerance as times on build machines are not very reliable
 sed "s/after_comp - before_comp < 6_000_000_000/after_comp - before_comp < 600_000_000_000/" -i test/misc.jl
@@ -291,8 +286,6 @@ sed "s/after_comp - before_comp < 6_000_000_000/after_comp - before_comp < 600_0
 %ifarch %{ix86}
 # Need to repeat -march here to override i686 from build_cflags
 %global buildflags CFLAGS="%{build_cflags} -march=pentium4" CXXFLAGS="%{build_cxxflags} -march=pentium4" FFLAGS="%{build_fflags} -march=pentium4" LDFLAGS="%{build_ldflags}"
-%else
-%global buildflags CFLAGS="%{build_cflags}" CXXFLAGS="%{build_cxxflags}" FFLAGS="%{build_fflags}" LDFLAGS="%{build_ldflags}"
 %endif
 
 # 7z currently fails when called from a symlink, use 7za instead
@@ -329,8 +322,12 @@ sed "s/ipa = getipaddr()/error()/" -i test/choosetests.jl
 sed "s/cpu_threads = max(2\*cpu_threads, min(200, 10\*cpu_threads))/cpu_threads = 5/" -i test/cmdlineargs.jl
 %endif
 
-## Disable tests that fail on build machines (but not locally)
-sed -i 's/skip_tests = Set()/skip_tests = Set(["loading", "cmdlineargs"])/' test/choosetests.jl
+# Disable test that fails due to rr
+sed -i 's/skip_tests = Set()/skip_tests = Set(["cmdlineargs"])/' test/choosetests.jl
+
+# Disable test that fails due to build path containing _4
+# https://github.com/JuliaLang/julia/pull/65356
+sed -i 's/!occursin(Regex(.*), str)/true/' test/reflection.jl
 
 # Disable test that fails for some CPUs
 # https://github.com/JuliaLang/julia/pull/63319
@@ -345,6 +342,9 @@ sed "s/@test VersionNumber\(.*\) == v\".*\"//" -i stdlib/Zlib_jll/test/runtests.
 sed "s/@test VersionNumber(unsafe_string(info.version_str)) == v\".*\"//" -i stdlib/nghttp2_jll/test/runtests.jl
 sed "s/@test .*SuiteSparse_version.*==.*//" -i stdlib/SuiteSparse_jll/test/runtests.jl
 sed "s/@test VersionNumber\(.*\) == v\".*\"//" -i stdlib/OpenSSL_jll/test/runtests.jl
+# https://github.com/JuliaLang/julia/pull/64989
+sed "/VersionNumber/s/v\".*\"/v\"$(pkg-config --modversion libgit2)\"/" -i stdlib/LibGit2_jll/test/runtests.jl
+sed "s/@test ccall((:ZSTD_versionNumber, libzstd), Cuint, ()) == .*//" -i stdlib/Zstd_jll/test/runtests.jl
 
 
 %install

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01 21:41 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:41 [rpms/julia] rawhide: EPEL10 support 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