#29 Fix build against Python 3.9
Merged 3 years ago by sgallagh. Opened 3 years ago by sgallagh.
rpms/ sgallagh/libmodulemd master  into  master

@@ -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

+ 

file added
+19
@@ -0,0 +1,19 @@ 

+ --- !Policy

+ product_versions:

+   - fedora-*

+ decision_context: bodhi_update_push_testing

+ subject_type: koji_build

+ rules:

+   - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

+   - !PassingTestCaseRule {test_case_name: dist.rpmdeplint}

+   - !PassingTestCaseRule {test_case_name: dist.abicheck}

+ 

+ --- !Policy

+ product_versions:

+   - fedora-*

+ decision_context: bodhi_update_push_stable

+ subject_type: koji_build

+ rules:

+   - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

+   - !PassingTestCaseRule {test_case_name: dist.rpmdeplint}

+   - !PassingTestCaseRule {test_case_name: dist.abicheck}

file modified
+6 -1
@@ -15,7 +15,7 @@ 

  

  Name:           %{upstream_name}%{?v2_suffix}

  Version:        2.9.2

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        Module metadata manipulation library

  

  License:        MIT
@@ -46,6 +46,7 @@ 

  

  

  # Patches

+ Patch0001: 0001-additional-valgrind-suppression-for-Python-3.9.patch

  

  

  %description
@@ -177,6 +178,10 @@ 

  

  

  %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

  - new upstream release: 2.9.2