Rpm %post execv operations talking forever after upgrading host to fedora 31

After upgrading to Fedora 31 and running docker build I’m noticing the rpm install taking forever.

It’s stalled here:

#11 4.597 D: %post(mpfr-3.1.1-4.el7.x86_64): scriptlet start
#11 4.598 D: %post(mpfr-3.1.1-4.el7.x86_64): execv(/sbin/ldconfig) pid 11

or here

#11 4.570 D: %post(jdk1.8-2000:1.8.0_211-fcs.x86_64): scriptlet start
#11 4.570 D: %post(jdk1.8-2000:1.8.0_211-fcs.x86_64): execv(/bin/sh) pid 10

Once it starts it runs fine. This happens for both my el6 and el7 (Oracle Linux) builds. I tried checking the commands it runs and running them standalone and they run fine.

Not sure where to start looking from here? Anyone point me in the right direction?

Further notes on this… interesting I just installed F29 for an unrelated project and it works fine and rpm works fine. It’s only the Oracle linux rpm having a problem. Starting to wonder if it’s a command in the Dockerfile or OL specific package.

Seems OL6/7 and CentOS6 have the same problem. RPM stalls for a long time applying the %post.