Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [  Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.402.b06-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')

Error in PRETRANS scriptlet in rpm package java-1.8.0-openjdk-headless
]: [lua script fails, then openjdk is not properly installed]
=============
[ ant -Dant.java.version=1.8 prepare-dist
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.]: [ant fails to load libjava.so]

Issue: For some reason openjdk is not properly installed.

Note that same source RPM build succeeds on build.opensuse.org for same EPEL 7 package
Resolution: No idea, fails on COPR, working fine on build.opensuse.org