[Rpm-maint] [rpm-software-management/rpm] rpmkeys does not wait for transaction lock (Issue #4046)

Panu Matilainen notifications at github.com
Tue Nov 18 14:45:17 UTC 2025


pmatilai created an issue (rpm-software-management/rpm#4046)

Originally reported at https://bugzilla.redhat.com/show_bug.cgi?id=2413547, a shorter reproducer is

1. install a package as root, pause it mid-transaction
2. try to verify a signature with rpmkeys with a command that has a pipe in front, eg `find -name "*.rpm"|rpmkeys -Kv`
3. you'll get something like

> $ find /tmp/parallel-1.0-1.noarch.rpm |xargs rpmkeys -K
error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)
/tmp/parallel-1.0-1.noarch.rpm: digests SIGNATURES NOT OK

...because due to the pipe, rpmkeys does not wait for the transaction lock. If the pipe isn't in place, then the sigcheck waits until the transaction is complete. Which isn't ideal, but much better.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4046
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/4046 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251118/54075939/attachment.htm>


More information about the Rpm-maint mailing list