Bug 2210360 - error: lua script failed: /var/lib/rpm-state//copy_jdk_configs.lua:39: attempt to index a nil value (global 'arg') [NEEDINFO]
Summary: error: lua script failed: /var/lib/rpm-state//copy_jdk_configs.lua:39: attemp...
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: copy-jdk-configs
Version: 7.9
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: jiri vanek
QA Contact: OpenJDK QA
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-26 19:37 UTC by Brian J. Murrell
Modified: 2023-07-26 13:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
ahughes: needinfo? (jvanek)


Attachments (Terms of Use)
mock output showing error (97.23 KB, text/plain)
2023-05-26 19:37 UTC, Brian J. Murrell
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-158324 0 None None None 2023-05-26 19:38:07 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.