JDK-8044035 : RPM internal names must match the standard bundle file name patterns
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 8u20,9
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2014-05-27
  • Updated: 2017-12-19
  • Resolved: 2014-06-09
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.
JDK 8 JDK 9
8u20Fixed 9 b22Fixed
Description
The RPM name for both the JDK and JRE does not match the standard bundle file name, and is not unique across releases.  This is critical for OEL support.

$ rpm -qp --qf "%{NAME}\n" jdk-8u5-linux-x64.rpm 2> /dev/null
jdk
$ rpm -qp --qf "%{VERSION}\n" jdk-8u5-linux-x64.rpm 2> /dev/null
1.8.0_05
$ cd ../ol6_x86_64_JavaSE7_public
$ rpm -qp --qf "%{NAME}\n" jdk-7u60-linux-x64.rpm 2> /dev/null
jdk
$ rpm -qp --qf "%{VERSION}\n" jdk-7u60-linux-x64.rpm 2> /dev/null
1.7.0_60
Comments
Verified using 1.9.0 b18 PIT bash-4.1$ rpm -qp --qf "%{name}\n" /net/scaaa575.us.oracle.com/scratch/workspaces/dev_dropbox/pit/1.9.0/b18/linux-x64/jdk-9-ea-linux-x64.rpm jdk1.9.0 bash-4.1$ rpm -qp --qf "%{name}\n" /net/scaaa575.us.oracle.com/scratch/workspaces/dev_dropbox/pit/1.9.0/b18/linux-x64/jre-9-ea-linux-x64.rpm jre1.9.0
16-06-2014

Name tag needs to be fixed in install/make/installer/bundles/linux/generic-rpm.spec. After this fix - the %{NAME} tag will be jdk%{VERSION} for JDK and jre%{VERSION} for JREs. Example: (8u20) For a JDK rpm: %{NAME} will return jdk1.8.0_20 For a JRE rpm: %{NAME} will return jre1.8.0_20
28-05-2014