Files
dnf5/0002-python_plugins_loader-disable-sign-compare-check-err.patch
Neal Gompa 0e03add0a5 - Update to 5.3.0.0
+ 5.3.0.0 changelog: https://github.com/rpm-software-management/dnf5/releases/tag/5.3.0.0
  + 5.2.17.0 changelog: https://github.com/rpm-software-management/dnf5/releases/tag/5.2.17.0
  + 5.2.16.0 changelog: https://github.com/rpm-software-management/dnf5/releases/tag/5.2.16.0
  + 5.2.15.0 changelog: https://github.com/rpm-software-management/dnf5/releases/tag/5.2.15.0
- Backport fixes from upstream to fix builds for non-x86 arches
  + Patch: 0001-test_conf.cpp-make-comparing-size_type-cross-platfor.patch
  + Patch: 0002-python_plugins_loader-disable-sign-compare-check-err.patch
- Backport fix for handling disabling gpg checks properly
  + Patch: 0003-Move-libdnf5-conf-config.h-creation-after-feature-de.patch
- Run tests during package builds again

OBS-URL: https://build.opensuse.org/package/show/system:packagemanager:dnf/dnf5?expand=0&rev=36
2026-01-20 20:41:12 +00:00

31 lines
1.3 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
From 7e95b620a1a972788b3fb7f81802f696d2f3da2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
Date: Wed, 5 Nov 2025 07:59:00 +0100
Subject: [PATCH 2/2] python_plugins_loader: disable sign-compare check errors
---
libdnf5-plugins/python_plugins_loader/CMakeLists.txt | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libdnf5-plugins/python_plugins_loader/CMakeLists.txt b/libdnf5-plugins/python_plugins_loader/CMakeLists.txt
index 5454a5d5..e316af7f 100644
--- a/libdnf5-plugins/python_plugins_loader/CMakeLists.txt
+++ b/libdnf5-plugins/python_plugins_loader/CMakeLists.txt
@@ -15,6 +15,13 @@ add_custom_target(swigpyrun-header
COMMENT "Generating SWIG Python runtime header"
)
+# The generated SWIG Python runtime header: swigpyrun.h contains a problematic section on
+# certain architectures (i686):
+# error: comparison of integer expressions of different signedness: int and unsigned int
+# 658 | for (cast = head; (cast - head) <= head->value; cast++) {
+# Since we don't control that code don't treat it as an error.
+add_compile_options(-Wno-error=sign-compare)
+
add_library(python_plugins_loader MODULE python_plugins_loader.cpp)
# python_plugins_loader requires swigpyrun.h so lets generate it
--
2.51.0