From 4297c455c07c86a7fa9c2ee0707409e147dfc0b3 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Mon, 1 Apr 2024 08:14:03 +0000 Subject: [PATCH] import CS python3.12-cffi-1.16.0-2.el9 --- SOURCES/tests-no-error-sign-conversion.patch | 14 -------------- SPECS/python3.12-cffi.spec | 5 ----- 2 files changed, 19 deletions(-) delete mode 100644 SOURCES/tests-no-error-sign-conversion.patch diff --git a/SOURCES/tests-no-error-sign-conversion.patch b/SOURCES/tests-no-error-sign-conversion.patch deleted file mode 100644 index ee568b1..0000000 --- a/SOURCES/tests-no-error-sign-conversion.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/testing/support.py b/testing/support.py -index 063e52c..24c6148 100644 ---- a/testing/support.py -+++ b/testing/support.py -@@ -116,7 +116,8 @@ else: - # assume a standard gcc - extra_compile_args = ['-Werror', '-Wall', '-Wextra', '-Wconversion', - '-Wno-unused-parameter', -- '-Wno-unreachable-code'] -+ '-Wno-unreachable-code', -+ '-Wno-error=sign-conversion'] - - is_musl = False - if sys.platform == 'linux': diff --git a/SPECS/python3.12-cffi.spec b/SPECS/python3.12-cffi.spec index 1cb8490..e728874 100644 --- a/SPECS/python3.12-cffi.spec +++ b/SPECS/python3.12-cffi.spec @@ -11,11 +11,6 @@ License: MIT and Python URL: https://github.com/python-cffi/cffi Source: %{url}/archive/v%{version}/cffi-%{version}.tar.gz -# The GCC version in RHEL 8 errors with -Werror=sign-conversion due to -# https://github.com/python/cpython/issues/112353 -# This patch unconditionally adds -Wno-error=sign-conversion for tests -Patch0: tests-no-error-sign-conversion.patch - BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: make