public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - fix build and sign module initialization in python3 (#1064758)
@ 2026-11-23  9:28 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : af2c06078985c300af18effe5b76193402a61a7e
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2014-03-26T11:19:55+02:00
Stats  : +41/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/af2c06078985c300af18effe5b76193402a61a7e?branch=pmatilai-v6

Log:
- fix build and sign module initialization in python3 (#1064758)

---
diff --git a/rpm-4.11.2-python3-buildsign.patch b/rpm-4.11.2-python3-buildsign.patch
new file mode 100644
index 0000000..4a878bd
--- /dev/null
+++ b/rpm-4.11.2-python3-buildsign.patch
@@ -0,0 +1,38 @@
+commit 0073376965ee8d8df63c21b0da634fc315c97d0b
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date:   Thu Feb 13 12:54:41 2014 +0200
+
+    Fix build and sign module initialization in python3 (RhBug:1064758)
+    
+    - PyInit_foo() name needs to match the module name. Doh.
+
+diff --git a/python/rpmbmodule.c b/python/rpmbmodule.c
+index f6e1491..ad30570 100644
+--- a/python/rpmbmodule.c
++++ b/python/rpmbmodule.c
+@@ -66,8 +66,8 @@ static struct PyModuleDef moduledef = {
+     NULL         /* m_free */
+ };
+ 
+-PyObject * PyInit__rpm(void);	/* XXX eliminate gcc warning */
+-PyObject * PyInit__rpm(void)
++PyObject * PyInit__rpmb(void);	/* XXX eliminate gcc warning */
++PyObject * PyInit__rpmb(void)
+ {
+     PyObject *m;
+ 
+diff --git a/python/rpmsmodule.c b/python/rpmsmodule.c
+index 3eb2403..653f4bf 100644
+--- a/python/rpmsmodule.c
++++ b/python/rpmsmodule.c
+@@ -66,8 +66,8 @@ static struct PyModuleDef moduledef = {
+     NULL         /* m_free */
+ };
+ 
+-PyObject * PyInit__rpm(void);	/* XXX eliminate gcc warning */
+-PyObject * PyInit__rpm(void)
++PyObject * PyInit__rpms(void);	/* XXX eliminate gcc warning */
++PyObject * PyInit__rpms(void)
+ {
+     PyObject *m;
+ 

diff --git a/rpm.spec b/rpm.spec
index f46fd73..7e31a7b 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -58,6 +58,7 @@ Patch100: rpm-4.11.x-filter-soname-deps.patch
 Patch101: rpm-4.11.x-do-not-filter-ld64.patch
 Patch102: rpm-4.11.2-macro-newlines.patch
 Patch103: rpm-4.11.x-reset-fileactions.patch
+Patch104: rpm-4.11.2-python3-buildsign.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -265,6 +266,7 @@ packages on a system.
 %patch101 -p1 -b .dont-filter-ld64
 %patch102 -p1 -b .macro-newlines
 %patch103 -p1 -b .reset-fileactions
+%patch104 -p1 -b .python3-buildsign
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -526,6 +528,7 @@ exit 0
 * Wed Mar 26 2014 Panu Matilainen <pmatilai@redhat.com> - 4.11.2-3
 - dont eat newlines on parametrized macro invocations (#1045723)
 - fully reset file actions between rpmtsRun() calls (#1076552)
+- fix build and sign module initialization in python3 (#1064758)
 
 * Tue Feb 18 2014 Panu Matilainen <pmatilai@redhat.com> - 4.11.2-2
 - reduce the double separator spec parse error into a warning (#1065563)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:28 [rpms/rpm] pmatilai-v6: - fix build and sign module initialization in python3 (#1064758) Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox