Fix build against Python 3.9

Resolves: rhbz#1817665

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2020-04-01 09:32:35 -04:00
parent 566e43aa06
commit 2afb480854
No known key found for this signature in database
GPG Key ID: 45DB85A568286D11
2 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,37 @@
From b1feeb990f536147d5c49c6d002b04a9436eeea2 Mon Sep 17 00:00:00 2001
From: Merlin Mathesius <mmathesi@redhat.com>
Date: Fri, 27 Mar 2020 13:53:13 -0500
Subject: [PATCH] additional valgrind suppression for Python 3.9
---
contrib/valgrind/libmodulemd-python.supp | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/contrib/valgrind/libmodulemd-python.supp b/contrib/valgrind/libmodulemd-python.supp
index fe9814d86daa340ec1283becee78514d1d93e3ff..080669825eab28459e032488f348cf8a90455e23 100644
--- a/contrib/valgrind/libmodulemd-python.supp
+++ b/contrib/valgrind/libmodulemd-python.supp
@@ -54,10 +54,20 @@
fun:g_malloc
fun:g_strdup
...
fun:PyObject_SetAttr
}
+{
+ Handle Python 3.9 PyMalloc confusing valgrind
+ Memcheck:Leak
+ fun:malloc
+ fun:PyThread_allocate_lock
+ ...
+ fun:Py_InitializeFromConfig
+ ...
+ fun:Py_BytesMain
+}
{
Python3 Unicode uninitialized value
Memcheck:Cond
fun:PyUnicode_Decode
...
--
2.25.1

View File

@ -15,7 +15,7 @@
Name: %{upstream_name}%{?v2_suffix} Name: %{upstream_name}%{?v2_suffix}
Version: 2.9.2 Version: 2.9.2
Release: 2%{?dist} Release: 3%{?dist}
Summary: Module metadata manipulation library Summary: Module metadata manipulation library
License: MIT License: MIT
@ -46,6 +46,7 @@ BuildRequires: help2man
# Patches # Patches
Patch0001: 0001-additional-valgrind-suppression-for-Python-3.9.patch
%description %description
@ -177,6 +178,10 @@ mv %{buildroot}%{_mandir}/man1/modulemd-validator.1 \
%changelog %changelog
* Wed Apr 01 2020 Stephen Gallagher <sgallagh@redhat.com> - 2.9.2-3
- Fix build against Python 3.9
- Resolves: rhbz#1817665
* Wed Mar 11 2020 Stephen Gallagher <sgallagh@redhat.com> - 2.9.2-2 * Wed Mar 11 2020 Stephen Gallagher <sgallagh@redhat.com> - 2.9.2-2
- new upstream release: 2.9.2 - new upstream release: 2.9.2