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