public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Bouchet-Valat <nalimilan@club.fr>
To: git-commits@fedoraproject.org
Subject: [rpms/julia] epel10: Fix symlinks generation, rebuild for openlibm 0.5.0
Date: Tue, 01 Dec 2026 21:38:36 GMT [thread overview]
Message-ID: <179616111634.1.3369662660513168959.rpms-julia-59fefeeb5102@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/julia
Branch : epel10
Commit : 59fefeeb51025cf176e5aa989d40df1abca22099
Author : Milan Bouchet-Valat <nalimilan@club.fr>
Date : 2016-03-08T17:22:27+01:00
Stats : +19/-28 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/julia/c/59fefeeb51025cf176e5aa989d40df1abca22099?branch=epel10
Log:
Fix symlinks generation, rebuild for openlibm 0.5.0
Also use openlibm on all platforms since it now works
everywhere.
---
diff --git a/julia.spec b/julia.spec
index c63286c..382643b 100644
--- a/julia.spec
+++ b/julia.spec
@@ -9,7 +9,7 @@
Name: julia
Version: 0.4.3
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: High-level, high-performance dynamic language for technical computing
Group: Development/Languages
# Julia itself is MIT, with a few LGPLv2+ and GPLv2+ files
@@ -39,9 +39,7 @@ BuildRequires: libunwind-devel
BuildRequires: llvm%{llvmversion}-devel
BuildRequires: mpfr-devel >= 3.0
BuildRequires: openblas-threads
-%ifarch %{ix86} x86_64
BuildRequires: openlibm-devel >= 0.4
-%endif
BuildRequires: openspecfun-devel >= 0.4
BuildRequires: pcre2-devel
BuildRequires: perl
@@ -51,11 +49,7 @@ BuildRequires: zlib-devel
# Needed for package management until the switch to libgit2
Requires: git
Requires: julia-common = %{version}-%{release}
-%if 0%{?__isa_bits} == 64
-Requires: openblas-threads64_
-%else
Requires: openblas-threads
-%endif
# Currently, Julia does not work properly architectures other than x86
# https://bugzilla.redhat.com/show_bug.cgi?id=1158024
# https://bugzilla.redhat.com/show_bug.cgi?id=1158026
@@ -107,7 +101,7 @@ needed when programming in the Julia language, but rather for embedding
Julia into external programs or debugging Julia itself.
%prep
-%setup -qn %{name}-%{version}
+%setup -q
%patch0 -p1
pushd deps
@@ -140,15 +134,9 @@ popd
%global blas USE_BLAS64=0 LIBBLAS=-lopenblasp LIBBLASNAME=libopenblasp.so.0 LIBLAPACK=-lopenblasp LIBLAPACKNAME=libopenblasp.so.0
-%ifarch %{ix86} x86_64
-%global libm USE_SYSTEM_LIBM=0 USE_SYSTEM_OPENLIBM=1
-%else
-%global libm USE_SYSTEM_LIBM=1
-%endif
-
# About build, build_libdir and build_bindir, see https://github.com/JuliaLang/julia/issues/5063#issuecomment-32628111
%global julia_builddir %{_builddir}/%{name}/build
-%global commonopts USE_SYSTEM_LLVM=1 USE_LLVM_SHLIB=1 LLVM_CONFIG=llvm-config-%{__isa_bits}-%{llvm_version} USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_OPENSPECFUN=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_GMP=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_GRISU=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_RMATH=0 USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_PATCHELF=1 VERBOSE=1 MARCH=%{march} %{blas} %{libm} prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} libexecdir=%{_libexecdir} datarootdir=%{_datarootdir} includedir=%{_includedir} sysconfdir=%{_sysconfdir} build_prefix=%{julia_builddir} build_bindir=%{julia_builddir}%{_bindir} build_libdir=%{julia_builddir}%{_libdir} build_private_libdir=%{julia_builddir}%{_libdir}/julia build_libexecdir=%{julia_builddir}%{_libexecdir} build_datarootdir=%{julia_builddir}%{_datarootdir} build_includedir=%{julia_builddir}%{_includedir} build_sysconfdir=%{julia_builddir}%{_sysconfdir} JULIA_CPU_CORES=$(echo %{?_smp_mflags} | sed s/-j//)
+%global commonopts USE_SYSTEM_LLVM=1 USE_LLVM_SHLIB=1 LLVM_CONFIG=llvm-config-%{__isa_bits}-%{llvm_version} USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_OPENSPECFUN=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_GMP=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_GRISU=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_RMATH=0 USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_PATCHELF=1 USE_SYSTEM_LIBM=0 USE_SYSTEM_OPENLIBM=1 VERBOSE=1 MARCH=%{march} %{blas} prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} libexecdir=%{_libexecdir} datarootdir=%{_datarootdir} includedir=%{_includedir} sysconfdir=%{_sysconfdir} build_prefix=%{julia_builddir} build_bindir=%{julia_builddir}%{_bindir} build_libdir=%{julia_builddir}%{_libdir} build_private_libdir=%{julia_builddir}%{_libdir}/julia build_libexecdir=%{julia_builddir}%{_libexecdir} build_datarootdir=%{julia_builddir}%{_datarootdir} build_includedir=%{julia_builddir}%{_includedir} build_sysconfdir=%{julia_builddir}%{_sysconfdir} JULIA_CPU_CORES=$(echo %{?_smp_mflags} | sed s/-j//)
%build
%global buildflags CFLAGS="%{optflags} -march=%{march}" CXXFLAGS="%{optflags} -march=%{march}"
@@ -172,19 +160,17 @@ make %commonopts DESTDIR=%{buildroot} install
# dependencies can be detected (just as what happens with the C linker).
# Automatic dependency detection is smart enough to add Requires as needed.
pushd %{buildroot}%{_libdir}/julia
- ln -s $(realpath -e %{_libdir}/libarpack.so) libarpack.so
- ln -s $(realpath -e %{_libdir}/libcholmod.so) libcholmod.so
- ln -s $(realpath -e %{_libdir}/libdSFMT.so) libdSFMT.so
- ln -s $(realpath -e %{_libdir}/libgit2.so) libgit2.so
- ln -s $(realpath -e %{_libdir}/libfftw3.so) libfftw3.so
- ln -s $(realpath -e %{_libdir}/libgmp.so) libgmp.so
- ln -s $(realpath -e %{_libdir}/libmpfr.so) libmpfr.so
-%ifarch %{ix86} x86_64
- ln -s $(realpath -e %{_libdir}/libopenlibm.so) libopenlibm.so
-%endif
- ln -s $(realpath -e %{_libdir}/libopenspecfun.so) libopenspecfun.so
- ln -s $(realpath -e %{_libdir}/libpcre2-8.so) libpcre2-8.so
- ln -s $(realpath -e %{_libdir}/libumfpack.so) libumfpack.so
+ for LIB in arpack cholmod dSFMT git2 fftw3 gmp mpfr openspecfun pcre2-8 umfpack
+ do
+ ln -s %{_libdir}/$(readelf -d %{_libdir}/lib$LIB.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
+ done
+
+ # Note the "libopen" trick because of greedy matching
+ ln -s %{_libdir}/libopen$(readelf -d %{_libdir}/libopenlibm.so | sed -n '/SONAME/s/.*\(lib[^ ]*\.so\.[0-9]*\).*/\1/p') libopenlibm.so
+ # Raise an error in case of failure
+ realpath -e libopenlibm.so
popd
cp -p CONTRIBUTING.md LICENSE.md NEWS.md README.md %{buildroot}%{_docdir}/julia/
@@ -273,6 +259,11 @@ exit 0
/usr/bin/gtk-update-icon-cache %{_datarootdir}/icons/hicolor &>/dev/null || :
%changelog
+* Tue Mar 8 2016 Milan Bouchet-Valat <nalimilan@club.fr> - 0.4.3-7
+- Fix generation of library symlinks to rely only on major version.
+- Rebuild for openlibm SONAME bump.
+- Use openlibm on all platforms.
+
* Wed Mar 2 2016 Milan Bouchet-Valat <nalimilan@club.fr> - 0.4.3-6
- Fix missing PCRE2 dependency, use realpath -e to detect this problem.
reply other threads:[~2026-12-01 21:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179616111634.1.3369662660513168959.rpms-julia-59fefeeb5102@fedoraproject.org \
--to=nalimilan@club.fr \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox