public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - fix build and sign module initialization in python3 (#1064758)
Date: Mon, 23 Nov 2026 09:28:40 GMT	[thread overview]
Message-ID: <179542612072.1.6516023276585343464.rpms-rpm-af2c06078985@fedoraproject.org> (raw)

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)

                 reply	other threads:[~2026-11-23  9:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542612072.1.6516023276585343464.rpms-rpm-af2c06078985@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox