Fedora Account System
Red Hat Associate
Red Hat Customer
Since RPM 6.0 alpha landed in rawhide I started seeing very strange build failures, where installation of build dependencies failed during the *rpm transaction check* with missing dependencies, but looking at the build log, those dependencies were actually pulled in. Two examples: https://koschei.fedoraproject.org/build/20288268 https://koschei.fedoraproject.org/build/20288341 Both failed with errors like Running transaction Transaction failed: Rpm transaction failed. Warning: skipped OpenPGP checks for 266 packages from repository: build - (crate(cfg_aliases/default) >= 0.1.1 with crate(cfg_aliases/default) < 0.2.0~) is needed by rust-nix0.28-devel-0.28.0-3.fc42.noarch - (crate(nix) >= 0.24.2 with crate(nix) < 0.25.0~) is needed by rust-argmax-devel-0.3.1-7.fc42.noarch Child return code was: 1 Even though the packages providing these things were clearly downloaded before the transaction. I can't see any pattern as to which packages are affected and which are not. The two examples (rust-fd-find and tuigreet) are just random Rust packages that don't do anything special. Reproducible: Always
Hey, thanks for reporting, I'll look into this right away. In the meanwhile feel free to untag the build if its blocking or hindering your work. I intended to be around when the alpha lands in rawhide to babysit for issues like this, but the build yesterday got stuck for hours and hours and I figured it would just not complete, and left for the day :(
Managed to reproduce locally, bisected down to https://github.com/rpm-software-management/rpm/commit/52f311e224254d7cb28bf2ced22db7b50e1a2653 so it's a refactoring error. Since it's easy to do so, I'll just revert the patch until I've properly debugged it.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-4362a398d9
Thanks for fixing so quickly. How do we say at Samba: Untested code is broken code! https://cmocka.org ;-)
We have the same motto in rpm. It's not that the rich dependency code isn't tested, this is a case that only triggers in some more complicated setting that I still haven't been able to reproduce outside the particular 200+ set of Rust packages that is involved here.
Proper fix in upstream since last week: https://github.com/rpm-software-management/rpm/pull/3729
And properly fixed now in rpm >= 5.99.90-5