• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • packaging
    • None
    • ubuntu 16.04

      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.

       

       

          [JENKINS-51226] debian package must depend on *some* jre

          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

          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.
           

          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 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.  

          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.

          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.

          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.

          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.

          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

          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

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

              Created:
              Updated:
              Resolved: