On 01/08/2016 02:40 PM, Martin Kosek wrote:
On 01/08/2016 02:18 PM, Martin Babinsky wrote:
On 01/08/2016 02:14 PM, Jan Cholasta wrote:
On 8.1.2016 14:09, Martin Basti wrote:
On 08.01.2016 14:00, Martin Kosek wrote:
On 01/08/2016 01:45 PM, Martin Basti wrote:
fix for ticket https://fedorahosted.org/freeipa/ticket/5535
requires to import rpm module
This import somehow breaks nsslib in IPA
We have 2 ways how to fix it:
1) move import rpm to body of methods (attached patch)
We are not sure how stable is this solution.
2) use solution with rpmdevtools proposed here:
This should be rock stable but it needs many dependencies (rpm-python
The second way looks safer, so I would like to reimplement it, do you
or do you have better idea?
Feedback welcome, please ASAP.
Since it's Friday, I invested 15 minutes to practice my C skills and
python-cffi library to call rpm rpmvercmp library call directly
$ python rpm.py 4.2.0-15.el7 4.2.0-15.el7_2.3
4.2.0-15.el7 < 4.2.0-15.el7_2.3
This would not introduce any additional dependency besides rpm-devel,
Not rpm-devel, but rpm-libs (you should dlopen "librpm.so.3").
I'm afraid that this can cause the same issue as import rpm, because the
nsslib is used from C library
I would be surprised if NSS was used in this particular function.
If it would work then we could compare version like in this quickly hacked and
BTW, I demand Acknowledgment statement for my Friday Idea in the patch
description, if this approach is used ;-)
No problem, we can even send it as two authors
You would be the second one, as ideamakers usually are in academic
Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code