From 379f9deb05679b4fc1f654dbc850d0a9ecc635157cf59b29896252eaa5597068 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Thu, 8 May 2025 09:06:52 +0000 Subject: [PATCH] Accepting request 1275295 from home:yeey:branches:devel:languages:python - Use a compatible GCC and stdc++ library version for 15.6. OBS-URL: https://build.opensuse.org/request/show/1275295 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-primp?expand=0&rev=10 --- python-primp.changes | 5 +++++ python-primp.spec | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/python-primp.changes b/python-primp.changes index a4cc42c..f8905d9 100644 --- a/python-primp.changes +++ b/python-primp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 6 04:44:56 UTC 2025 - Guang Yee + +- Use a compatible GCC and stdc++ library version for 15.6. + ------------------------------------------------------------------- Tue Apr 29 14:47:16 UTC 2025 - Felix Stegmeier diff --git a/python-primp.spec b/python-primp.spec index ce4e5cb..cce0da3 100644 --- a/python-primp.spec +++ b/python-primp.spec @@ -16,6 +16,10 @@ # +%if 0%{?sle_version} && 0%{?sle_version} == 150600 +%define force_gcc_version 13 +%endif + %{?sle15_python_module_pythons} Name: python-primp Version: 0.15.0 @@ -31,7 +35,12 @@ BuildRequires: cargo-packaging BuildRequires: clang-devel BuildRequires: cmake BuildRequires: fdupes +%if 0%{?force_gcc_version} +BuildRequires: gcc%{?force_gcc_version}-c++ +BuildRequires: libstdc++6-gcc%{?force_gcc_version} +%else BuildRequires: gcc-c++ +%endif BuildRequires: git BuildRequires: llvm BuildRequires: openssl @@ -51,7 +60,15 @@ export CARGO_NET_OFFLINE=true export CARGO_PROFILE_RELEASE_DEBUG=full export CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO=off export CARGO_PROFILE_RELEASE_STRIP=false +%if 0%{?force_gcc_version} +export C_INCLUDE_PATH=/usr/lib64/gcc/%_arch-suse-linux/%{force_gcc_version}/include +export CXX=g++-%{force_gcc_version} +export CC=gcc-%{force_gcc_version} +export DCMAKE_C_COMPILER=gcc-%{force_gcc_version} +export DCMAKE_CXX_COMPILER=g++-%{force_gcc_version} +%else export C_INCLUDE_PATH=/usr/lib64/gcc/%_arch-suse-linux/%gcc_version/include +%endif %pyproject_wheel %install