The post install script for the linux bundles uses cp and mkdir. We need to require that these tools are installed. In most cases, they will already be installed, but there are situations where they won't. We should add "cp" and "mkdir" to the "Required:" field in the rpm spec file. The following email was sent about this problem:
From:
"Lasse A. Vartiainen" <###@###.###>
Fri 11:44
Subject:
Missing rpm-requirement from jre-1.3.1-01.i386.rpm
To:
"Java Software" <###@###.###>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Currently jre-1.3.1-01.i386.rpm package requires only glibc and
/bin/sh.
Yet the postinstallation scripts use /bin/cp and /bin/mkdir.
Normally this isn't a problem since every distribution does have
those commands.
For RedHat installation cd this might matter: Since RedHat's
genhdlist selects the installation order based on those requirements,
jre might get installed before fileutils that supplies the said
commands.
At least in our automagically generated distribution cd executing of
jre-post scripts fails during installation, and have to be manually
re-run afterwards.
Lasse