Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51253

jenkins_2.107.3_all.deb depends on java being installed but no longer has this explicit dependency

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • packaging
    • debian/ubuntu

      It seems that jenkins_2.107.3_all.deb no longer has an explicit dependency on default-jre-headless or java8-runtime-headless, which means jenkins installations are easily broken if "apt-get autoremove" is run (and it's generally good practice for debian/ubuntu admins to run this command periodically).

      jenkins_2.107.2_all.deb and earlier had the correct dependency.

      There is a comment on https://pkg.jenkins.io/debian/ which suggests that this is intentional:

      You will need to explicitly install a Java runtime environment, because Jenkins does not work with Java 9, this is the safest way to ensure your system ends properly configured. Adding an explicit dependency requirement on Java could force installation of undesired versions of the JVM. Check JENKINS-40689 for more details about Jenkins and Java 9 compatibility.

       ...but this seems wrong- the package should just depend on java8 packages specifically.

          [JENKINS-51253] jenkins_2.107.3_all.deb depends on java being installed but no longer has this explicit dependency

          Mostyn Bramley-Moore created issue -
          Mostyn Bramley-Moore made changes -
          Description Original: It seems that jenkins_2.107.3_all.deb no longer has an explicit dependency on default-jre-headless or java8-runtime-headless, which means jenkins installations are easily broken if "apt-get autoremove" is run (and it's generally good practice for debian/ubuntu admins to run this command periodically).

           

          jenkins_2.107.2_all.deb and earlier had the correct dependency.
          New: It seems that jenkins_2.107.3_all.deb no longer has an explicit dependency on default-jre-headless or java8-runtime-headless, which means jenkins installations are easily broken if "apt-get autoremove" is run (and it's generally good practice for debian/ubuntu admins to run this command periodically).

          jenkins_2.107.2_all.deb and earlier had the correct dependency.

          There is a comment on [https://pkg.jenkins.io/debian/] which suggests that this is intentional:

          {quote}
          You will need to explicitly install a Java runtime environment, *because Jenkins does not work with Java 9*, this is the safest way to ensure your system ends properly configured. Adding an explicit dependency requirement on Java could force installation of undesired versions of the JVM. Check JENKINS-40689 for more details about Jenkins and Java 9 compatibility.
          {quote}

           ...but this seems wrong- the package should just depend on java8 packages specifically.
          Oleg Nenashev made changes -
          Labels New: regression
          Daniel Beck made changes -
          Component/s New: packaging [ 20120 ]
          Component/s Original: core [ 15593 ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-51226 [ JENKINS-51226 ]
          Mark Waite made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            mbmop Mostyn Bramley-Moore
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: