> On Nov 14, 2016, at 10:32 AM, Alexander Kanavin <alexander.kanavin@linux.intel.com> wrote:
>
>> rpm-python was converted to python3 (and generally blue-printed against
>> the rpm.org python module) at least 1 year ago afaik.
>>
>> Meanwhile, no one has tried to compile/use rpm-python with python3. Thereââ¬â¢s surely some bugs.
>>
>> hth
>>
>> 73 de Jeff
>
> I have tried this just now, and unfortunately I am getting compile errors when trying to build against Python 3 (this is an excerpt, the whole thing is longer):
>
> | ../../rpm-5.4.15/python/rpmfts-py.c: In function ârpmfts_debugâ:
> | ../../rpm-5.4.15/python/rpmfts-py.c:79:57: error: ârpmftsObject {aka struct rpmftsObject_s}â has no member named âob_refcntâ
> | fprintf(stderr, " %u %d ftsp %p fts %p\n", (unsigned) s->ob_refcnt, s->active, s->ftsp, s->fts);
> | ^~
> | ../../rpm-5.4.15/python/rpmfts-py.c: At top level:
> | ../../rpm-5.4.15/python/rpmfts-py.c:504:3: error: âcmpfuncâ undeclared here (not in a function)
> | (cmpfunc)0, /* tp_compare */
> | ^~~~~~~
> | ../../rpm-5.4.15/python/rpmfts-py.c:504:11: error: expected â}â before numeric constant
> | (cmpfunc)0, /* tp_compare */
> | ^
> | ../../rpm-5.4.15/python/rpmdebug-py.c: In function âlblâ:
> | ../../rpm-5.4.15/python/rpmdebug-py.c:38:24: error: âPyBuffer_Typeâ undeclared (first use in this function)
> | if (o->ob_type == &PyBuffer_Type) return "Buffer";
> | ^~~~~~~~~~~~~
> | ../../rpm-5.4.15/python/rpmdebug-py.c:38:24: note: each undeclared identifier is reported only once for each function it appears in
> | ../../rpm-5.4.15/python/rpmdebug-py.c:40:24: error: âPyCObject_Typeâ undeclared (first use in this function)
> | if (o->ob_type == &PyCObject_Type) return "CObject";
> | ^~~~~~~~~~~~~~
> | ../../rpm-5.4.15/python/rpmdebug-py.c:42:24: error: âPyClass_Typeâ undeclared (first use in this function)
> | if (o->ob_type == &PyClass_Type) return "Class";
> | ^~~~~~~~~~~~
> | ../../rpm-5.4.15/python/rpmmodule.c:460:13: error: âPyTypeObject {aka struct _typeobject}â has no member named âob_typeâ; did you mean âob_baseâ?
> | hdr_Type.ob_type = &PyType_Type;
> | ^
>
You were warned:
>> Meanwhile, no one has tried to compile/use rpm-python with python3. Thereââ¬â¢s surely some bugs.
Meanwhile â in order to finish rpm-python3 â there needs to be some usage case.
On a random Fedora 24 installation, I see the following packages using rpm-python3:
$ rpm -q --whatrequires rpm-python3
rpmconf-1.0.16-2.fc24.noarch
python3-dnf-1.1.10-1.fc24.noarch
rpmlint-1.9-3.fc24.noarch
setroubleshoot-server-3.3.11-1.fc24.x86_64
mock-1.2.21-1.fc24.noarch
Which of those packages is of interest to you?
Offhand, I donât see any important applications there that MUST have rpm-python3.
73 de Jeff
Received on Mon Nov 14 18:07:21 2016