Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8063077

RPM package name contains overly specific version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 8u25
    • install
    • x86
    • linux

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Linux localhost.localdomain 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      As of 1.8.0_20 and _25, the package name in the RPM file has changed to include the full version. Here is the output of "rpm -qi" for the current release:

      ---
      Name : jre1.8.0_25 Relocations: /usr/java
      Version : 1.8.0_25 Vendor: Oracle Corporation
      Release : fcs Build Date: Wed 17 Sep 2014 07:46:27 PM CDT
      Install Date: (not installed) Build Host: sca00bwg.us.oracle.com
      Group : Development/Tools Source RPM: jre1.8.0_25-1.8.0_25-fcs.src.rpm
      Size : 100950153 License: http://java.com/license
      Signature : (none)
      Packager : Java Software <jre-comments@java.sun.com>
      URL : URL_REF
      Summary : Java Platform Standard Edition Runtime Environment
      Description :
      The Java Platform Standard Edition Runtime Environment (JRE) contains
      everything necessary to run applets and applications designed for the
      Java platform. This includes the Java virtual machine, plus the Java
      platform classes and supporting files.

      The JRE is freely redistributable, per the terms of the included license.
      ---

      The "provides" info is:
      ---
      jaxp_parser_impl
      xml-commons-apis
      jre1.8.0_25 = 1.8.0_25-fcs
      ---

      The relevant portion is "Name : jre1.8.0_25".

      The problem is that this prevents proper RPM dependencies and upgrading. Third party packages that depend on it can no longer reference the JRE without specifically tying to a version.

      Here is the output of an old release as a counter-example:
      ---
      Name : jre Relocations: /usr/java
      Version : 1.8.0_11 Vendor: Oracle Corporation
      Release : fcs Build Date: Mon 16 Jun 2014 07:42:09 PM CDT
      Install Date: (not installed) Build Host: sc11137389.us.oracle.com
      Group : Development/Tools Source RPM: jre-1.8.0_11-fcs.src.rpm
      Size : 100256215 License: http://java.com/license
      Signature : (none)
      Packager : Java Software <jre-comments@java.sun.com>
      URL : URL_REF
      Summary : Java Platform Standard Edition Runtime Environment
      Description :
      The Java Platform Standard Edition Runtime Environment (JRE) contains
      everything necessary to run applets and applications designed for the
      Java platform. This includes the Java virtual machine, plus the Java
      platform classes and supporting files.

      The JRE is freely redistributable, per the terms of the included license.
      ---

      And the corresponding "provides" info:
      ---
      jaxp_parser_impl
      xml-commons-apis
      jre = 1.8.0_11-fcs
      ---

      With the old versions we could depend on "jre", but that is no longer possible. Currently, we cannot make our software depend on the jre without hardcoding a version, which would prevent future security updates and such.

      If some version is desired in the package name, "jre1.8" would be more reasonable.

      REGRESSION. Last worked in version 8u11

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_11"
      Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run "rpm -qpil jre-8u25-linux-*.rpm | grep Name"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expected the name to be "jre"
      ACTUAL -
      Name was actually "jre1.8.0_25"

      REPRODUCIBILITY :
      This bug can be reproduced always.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: