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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            mbmop Mostyn Bramley-Moore created issue -
            mbmop Mostyn Bramley-Moore made changes -
            Field Original Value New Value
            Description 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.
            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 Oleg Nenashev made changes -
            Labels regression
            danielbeck Daniel Beck made changes -
            Component/s packaging [ 20120 ]
            Component/s core [ 15593 ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-51226 [ JENKINS-51226 ]

              People

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

                Dates

                Created:
                Updated: