From 0f5102956846f0396780ac3ff116c20795dbbf89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 7 Feb 2024 10:58:36 +0100 Subject: [PATCH] Reduce the type safety as a workaround for build failures in Fedora 40+ - Fixes: rhbz#2261034 - Fixes: rhbz#2256232 --- python-lxml.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-lxml.spec b/python-lxml.spec index 70b4c4e..85d3de3 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -21,6 +21,10 @@ BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: python3-devel +# Reduce the type safety as a workaround for https://bugs.launchpad.net/lxml/+bug/2051243 +# We trust the tests would uncover real issues. +%global build_type_safety_c 2 + # Some of the extras create a build dependency loop. # - [cssselect] Requires cssselect BuildRequires lxml # - [html5] Requires html5lib BuildRequires lxml