On 1/4/20 12:24 AM, Jan Kratochvil wrote:
That librpm dependency is painful anyway as librpm authors do not
like it to be used by 3rd party apps and they prefer popen()ing some
rpm commands instead: > rpmdb locking broken by other-arch rpmquery
https://bugzilla.redhat.com/show_bug.cgi?id=486423#c1
What a strange conclusion to draw from the comments. I recommended the
"good ole pipe" route as a way to avoid numerous issues caused by the
API use in the specific case of gdb use (biarch and all).
There never was anything wrong with 3rd party apps using librpm API,
that's what it's there for. It's just that most people don't realize
just how much extra baggage comes with it, and aren't happy when they
find out.
- Panu -