Temporarily include llvm 14 libraries in order to switch to llvm 15

This is a hack to make it possible to switch EPEL package builds over
from llvm 14 to 15.

RHEL doesn't ship a compat version of llvm 14 and we need to make both
versions available at the same time somehow in order to build ldc with
itself and switch over to llvm 15 that's the default in RHEL 9.2.

The canonical way to do it would be to add a llvm14 compat package, but
in this case it's only needed to be able to perform a package rebuild in
koji (we don't need to make it available to end users) and it's not
worth adding the compat package only for that.
epel9
Kalev Lember 2 years ago
parent 0ba2f079d3
commit f43d4cd245

@ -17,7 +17,7 @@
Name: ldc Name: ldc
Epoch: 1 Epoch: 1
Version: 1.32.2%{?pre:~%{pre}} Version: 1.32.2%{?pre:~%{pre}}
Release: 1%{?dist} Release: 1%{?dist}~bootstrap
Summary: LLVM D Compiler Summary: LLVM D Compiler
# The DMD frontend in dmd/* GPL version 1 or artistic license # The DMD frontend in dmd/* GPL version 1 or artistic license
@ -126,6 +126,9 @@ popd
mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d/ mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d/
install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc
# Temporarily include llvm 14 libraries in order to switch to llvm 15
cp -a %{_libdir}/libLLVM-14*.so %{buildroot}%{_libdir}/
%files %files
%license LICENSE %license LICENSE
%doc README.md %doc README.md
@ -152,6 +155,7 @@ install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc
%files libs %files libs
%license runtime/phobos/LICENSE_1_0.txt %license runtime/phobos/LICENSE_1_0.txt
%{_libdir}/libLLVM-14*.so
%{_libdir}/libdruntime-ldc-debug-shared.so.%{soversion}* %{_libdir}/libdruntime-ldc-debug-shared.so.%{soversion}*
%{_libdir}/libdruntime-ldc-shared.so.%{soversion}* %{_libdir}/libdruntime-ldc-shared.so.%{soversion}*
%{_libdir}/libphobos2-ldc-debug-shared.so.%{soversion}* %{_libdir}/libphobos2-ldc-debug-shared.so.%{soversion}*

Loading…
Cancel
Save