Created attachment 1967164 [details] mock output showing error Description of problem: Using mock to build on RHEL7 fails when trying to install java-1.8.0-openjdk-headless-1:1.8.0.372.b07-1.el7_9 in the mock chroot. Version-Release number of selected component (if applicable): 1.8.0.372.b07-1.el7_9 How reproducible: 100% This appears to be related to bug#1892224 but that one is closed as resolved and in Fedora. This one is in RHEL 7.9.
Could I please get a status update on this one? We do still need to support EL7 in our software stack.
Error is: Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.372.b07-1.el7_9. 1/1 error: lua script failed: /var/lib/rpm-state//copy_jdk_configs.lua:39: attempt to index a nil value (global 'arg') Reassigning to copy-jdk-configs as that's where the copy_jdk_configs.lua script lives.
This is a little confusing because, yes, the copy_jdk_configs.lua script in RHEL 7.9 does not have the fix in the referenced Fedora bug #1892224 (https://pagure.io/copy_jdk_configs/pull-request/1#request_diff) but then it also still uses rpm 4.11. The fix was a result of a change in rpm 4.17, apparently. I can't see any obvious changes to the rpm package in 7.9 that would cause this to break now. Hopefully Jiri can shed more light on this.