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

debian package must depend on *some* jre

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: packaging
    • Labels:
      None
    • Environment:
      ubuntu 16.04
    • Similar Issues:

      Description

      While trying to test 2.107.3 I ran into the debian package not depending on any jre anymore.

       

      I.e.:

      1) apt-get install jenkins fails, jenkins can't be started because java NotFound

      2) apt-get install default-jre-headless jenkins fails, systemd tries to start jenkins before installing the jre.

       

      Requiring users to do 'apt-get install default-jre-headless' then 'apt-get install jenkins' is not the way package dependencies should work IMHO.

       

       

        Attachments

          Issue Links

            Activity

            Hide
            vila vila added a comment -

            diff --git a/deb/build/debian/control b/deb/build/debian/control
            index 2ea8ca2..8808fd3 100644
            — a/deb/build/debian/control
            +++ b/deb/build/debian/control
            @@ -8,7 +8,7 @@ Homepage: @@HOMEPAGE@@

            Package: @@ARTIFACTNAME@@
            Architecture: all
            -Depends: ${misc:Depends}, daemon, adduser, procps, psmisc, net-tools
            -Conflicts: hudson
            +Depends: ${misc:Depends}, daemon, adduser, procps, psmisc, net-tools, default-jre-headless (>= 2:1.8)
            +Conflicts: hudson, default-jre-headless (>= 2:1.9)
            Replaces: hudson
            Description: @@DESCRIPTION_FILE@Kohsuke Kawaguchi

            With the patch above, 'apt-get install jenkins' works again (and installs with java8) but should fail with java9

             I've tested it on bare ubuntu 16.04.
             

            Show
            vila vila added a comment - diff --git a/deb/build/debian/control b/deb/build/debian/control index 2ea8ca2..8808fd3 100644 — a/deb/build/debian/control +++ b/deb/build/debian/control @@ -8,7 +8,7 @@ Homepage: @@HOMEPAGE@@ Package: @@ARTIFACTNAME@@ Architecture: all -Depends: ${misc:Depends}, daemon, adduser, procps, psmisc, net-tools -Conflicts: hudson +Depends: ${misc:Depends}, daemon, adduser, procps, psmisc, net-tools, default-jre-headless (>= 2:1.8) +Conflicts: hudson, default-jre-headless (>= 2:1.9) Replaces: hudson Description: @@DESCRIPTION_FILE@ Kohsuke Kawaguchi With the patch above, 'apt-get install jenkins' works again (and installs with java8) but should fail with java9  I've tested it on bare ubuntu 16.04.  
            Hide
            jladan James Ladan added a comment -

            This doesn't feel all that 'minor' (current bug classification) when your package manager decides to uninstall default-jre-headless on update because no packages now depend on it, you miss that happening, and Jenkins fails to start after the server's scheduled 5am reboot, post-update.

            Show
            jladan James Ladan added a comment - This doesn't feel all that 'minor' (current bug classification) when your package manager decides to uninstall default-jre-headless on update because no packages now depend on it, you miss that happening, and Jenkins fails to start after the server's scheduled 5am reboot, post-update.
            Hide
            vila vila added a comment -

            I agree it's not minor for my workflow
            I don't remember being able to set that when filing the bug.
            I describe my use case being broken which means I currently pin jenkins to 2.107.2 until it's fixed.

            Show
            vila vila added a comment - I agree it's not minor for my workflow I don't remember being able to set that when filing the bug. I describe my use case being broken which means I currently pin jenkins to 2.107.2 until it's fixed.
            Hide
            vila vila added a comment -

            Ping
            Can I get some feedback on this issue pretty please ?
            This is blocking the deployment of the security fixes included in 2.107.3

            Show
            vila vila added a comment - Ping Can I get some feedback on this issue pretty please ? This is blocking the deployment of the security fixes included in 2.107.3

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                vila vila
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: