From e8ee8b630a92334c9d9614d3c2e9d77bfda36b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Wed, 22 Mar 2023 19:46:50 +0100 Subject: [PATCH] Workaround a crash on %%ix86 --- python-awscrt.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python-awscrt.spec b/python-awscrt.spec index 2f76da8..7184b12 100644 --- a/python-awscrt.spec +++ b/python-awscrt.spec @@ -4,7 +4,7 @@ Python bindings for the AWS Common Runtime} Name: python-awscrt Version: 0.16.13 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python bindings for the AWS Common Runtime # All files are licensed under Apache-2.0, except: @@ -56,6 +56,11 @@ Summary: %{summary} %build +%ifarch %{ix86} +# disable SSE2 instructions to prevent a crash in aws-c-common thread handling +# probably caused by a compiler bug +export CFLAGS="%{optflags} -mno-sse2" +%endif export AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1 %pyproject_wheel @@ -74,5 +79,8 @@ PYTHONPATH="%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}" %{py %changelog +* Wed Mar 22 2023 Nikola Forró - 0.16.13-2 +- Workaround a crash on %%ix86 + * Thu Mar 16 2023 Nikola Forró - 0.16.13-1 - Initial package