File project.diff of Package rust1.92
--- rust1.92.spec.orig
+++ rust1.92.spec
@@ -36,7 +36,7 @@
# Use correct python-version for SLE-12
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
-%define python python3.9
+%define python python3.6
%else
%define python python3
%endif
@@ -312,7 +312,7 @@
BuildRequires: pkgconfig
BuildRequires: procps
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
-BuildRequires: python39-base
+BuildRequires: python36-base
%else
BuildRequires: python3-base
%endif
@@ -361,7 +361,7 @@
# CMake and Ninja required to drive the bundled llvm build.
# Cmake is also needed in tests.
-%if 0%{?sle_version} >= 120000 && 0%{?sle_version} <= 150300
+%if 0
# In these distros cmake is 2.x, or 3.X < 3.13, so we need cmake3 for building llvm.
BuildRequires: cmake3 >= 3.20.0
#!BuildIgnore: cmake
@@ -598,7 +598,7 @@
# FUTURE: See if we can build sanitizers without the full llvm bundling.
# {?with_tier1: --enable-sanitizers} \
-./configure \
+%{python} src/bootstrap/configure.py \
--build=%{rust_triple} --host=%{rust_triple} \
--target %{rust_target_list} \
%{?with_wasi: --set target.wasm32-wasip1.wasi-root=%{_builddir}/wasi-sysroot/ } \