Bug 2210360

Summary: error: lua script failed: /var/lib/rpm-state//copy_jdk_configs.lua:39: attempt to index a nil value (global 'arg')
Product: Red Hat Enterprise Linux 7 Reporter: Brian J. Murrell <brian.murrell>
Component: copy-jdk-configsAssignee: jiri vanek <jvanek>
Status: ASSIGNED --- QA Contact: OpenJDK QA <java-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 7.9CC: ahughes, jvanek
Target Milestone: rcFlags: ahughes: needinfo? (jvanek)
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
mock output showing error none

Description Brian J. Murrell 2023-05-26 19:37:34 UTC
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.

Comment 3 Brian J. Murrell 2023-06-27 17:38:22 UTC
Could I please get a status update on this one?  We do still need to support EL7 in our software stack.

Comment 4 Andrew John Hughes 2023-07-26 13:33:36 UTC
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.

Comment 5 Andrew John Hughes 2023-07-26 13:36:27 UTC
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.