Accepting request 1224835 from home:dimstar:Factory

- Allow building with default LLVM version 19: just replace the
  hard-coded LLVM_version in the scrpts.

OBS-URL: https://build.opensuse.org/request/show/1224835
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python313?expand=0&rev=65
This commit is contained in:
2024-11-18 13:48:03 +00:00
committed by Git OBS Bridge
parent 6daf155ac4
commit c9f290cdec
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 15 11:25:06 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Allow building with default LLVM version 19: just replace the
hard-coded LLVM_version in the scrpts.
-------------------------------------------------------------------
Thu Nov 14 07:06:20 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -257,8 +257,8 @@ BuildRequires: python3-python-docs-theme >= 2022.1
%if %{with experimental_jit}
# needed for experimental_jit
BuildRequires: clang18
BuildRequires: llvm18
BuildRequires: clang >= 18
BuildRequires: llvm >= 18
%endif
%if %{without GIL}
@@ -504,6 +504,8 @@ echo "master_doc = 'contents'" >> Doc/conf.py
# drop Autoconf version requirement
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
sed -i "s/_LLVM_VERSION = .*/_LLVM_VERSION = $(realpath /usr/bin/clang | awk -F- '{print $2}')/g" ./Tools/jit/_llvm.py
%if %{primary_interpreter}
# fix shebangs - convert /usr/local/bin/python and /usr/bin/env/python to /usr/bin/python3
for dir in Lib Tools; do