JDK-4531240 : linux bundles should Require cp and mkdir to be installed
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 1.3.1
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2001-11-26
  • Updated: 2013-06-04
  • Resolved: 2002-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
Description
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


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis mantis-b04
2004-06-14

EVALUATION Makefile needs to be updated to add the Requires tag for fileutils rpm -qf /bin/cp /bin/mkdir fileutils-4.0-8 fileutils-4.0-8 ###@###.### 2002-08-08
2002-08-08