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

The description for the deb package is cut off

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • packaging
    • None
    • Ubuntu

      The description of the Ubuntu package is currently cut off in a really unusual manner. I would have expected this to be a truncation, but it looks like the first part of the package description has been removed. This is only for .deb packages as the rhel and suse packages are fine. I think it might be part of the dpkg scripts not properly picking up the results of the branding file. There could also be a malformed character

      ubuntu@ip-172-31-24-219:~$ dpkg --info jenkins_2.7.4_all.deb
       new debian package, version 2.0.
       size 68039982 bytes: control archive=2262 bytes.
            66 bytes,     3 lines      conffiles
           495 bytes,    14 lines      control
           199 bytes,     3 lines      md5sums
          3433 bytes,    95 lines   *  postinst             #!/bin/sh
           746 bytes,    36 lines   *  postrm               #!/bin/sh
           204 bytes,     7 lines   *  prerm                #!/bin/sh
       Package: jenkins
       Version: 2.7.4
       Architecture: all
       Maintainer: Kohsuke Kawaguchi <kk@kohsuke.org>
       Installed-Size: 67334
       Depends: daemon, adduser, procps, psmisc, net-tools, default-jre-headless (>= 2:1.7) | java7-runtime-headless
       Conflicts: hudson
       Replaces: hudson
       Section: devel
       Priority: extra
       Homepage: http://jenkins.io/
       Description: continuous integration system
        Jenkins is an application that monitors executions of repeated jobs,
        such as building a software project or jobs run by cron.
      
      

          [JENKINS-38437] The description for the deb package is cut off

          Found that the description isn't cut off, it's in fact just completely different from the descriptions in RHEL and in SUSE because it's hardcoded in the `control` file. Unlike rpm, there's no convenient automatic reading from a description file. So now the description reads from the appropriate file. Now if there's ever a change in description, all the packages will have the same information.

          The downside to this is the newlines aren't nicely spaced since make doesn't preserve new line characters, the method in which we're loading the branding doesn't preserve new lines anyway, and the version of make we're using doesn't support the file import command (available in make 4.1 and higher).

          Kristin Whetstone added a comment - Found that the description isn't cut off, it's in fact just completely different from the descriptions in RHEL and in SUSE because it's hardcoded in the `control` file. Unlike rpm, there's no convenient automatic reading from a description file. So now the description reads from the appropriate file. Now if there's ever a change in description, all the packages will have the same information. The downside to this is the newlines aren't nicely spaced since make doesn't preserve new line characters, the method in which we're loading the branding doesn't preserve new lines anyway, and the version of make we're using doesn't support the file import command (available in make 4.1 and higher).

          I decided to just end up using a custom file since the whole cost of trying to spin custom functions for different operating systems in the branding file didn't make sense. Still up for packaging review.

          Kristin Whetstone added a comment - I decided to just end up using a custom file since the whole cost of trying to spin custom functions for different operating systems in the branding file didn't make sense. Still up for packaging review.

          The new printout:

          ubuntu@ip-172-31-24-219:~$ dpkg --info jenkins_oss_ubuntu.deb
           new debian package, version 2.0.
           size 206896358 bytes: control archive=2621 bytes.
                66 bytes,     3 lines      conffiles
              1285 bytes,    24 lines      control
               199 bytes,     3 lines      md5sums
              3433 bytes,    95 lines   *  postinst             #!/bin/sh
               746 bytes,    36 lines   *  postrm               #!/bin/sh
               204 bytes,     7 lines   *  prerm                #!/bin/sh
           Package: jenkins
           Version: 2.7.19.1
           Architecture: all
           Maintainer: Kohsuke Kawaguchi <kk@kohsuke.org>
           Installed-Size: 208108
           Depends: daemon, adduser, procps, psmisc, net-tools, default-jre-headless (>= 2:1.7) | java7-runtime-headless
           Conflicts: hudson
           Replaces: hudson
           Section: devel
           Priority: extra
           Homepage: http://jenkins.io/
           Description: Jenkins monitors executions of repeated jobs, such as building a software
            project or jobs run by cron. Among those things, current Jenkins focuses on the
            following two jobs:
            - Building/testing software projects continuously, just like CruiseControl or
              DamageControl. In a nutshell, Jenkins provides an easy-to-use so-called
              continuous integration system, making it easier for developers to integrate
              changes to the project, and making it easier for users to obtain a fresh
              build. The automated, continuous build increases the productivity.
            - Monitoring executions of externally-run jobs, such as cron jobs and procmail
              jobs, even those that are run on a remote machine. For example, with cron,
              all you receive is regular e-mails that capture the output, and it is up to
              you to look at them diligently and notice when it broke. Jenkins keeps those
              outputs and makes it easy for you to notice when something is wrong.
          
          

          Kristin Whetstone added a comment - The new printout: ubuntu@ip-172-31-24-219:~$ dpkg --info jenkins_oss_ubuntu.deb new debian package, version 2.0. size 206896358 bytes: control archive=2621 bytes. 66 bytes, 3 lines conffiles 1285 bytes, 24 lines control 199 bytes, 3 lines md5sums 3433 bytes, 95 lines * postinst #!/bin/sh 746 bytes, 36 lines * postrm #!/bin/sh 204 bytes, 7 lines * prerm #!/bin/sh Package: jenkins Version: 2.7.19.1 Architecture: all Maintainer: Kohsuke Kawaguchi <kk@kohsuke.org> Installed-Size: 208108 Depends: daemon, adduser, procps, psmisc, net-tools, default-jre-headless (>= 2:1.7) | java7-runtime-headless Conflicts: hudson Replaces: hudson Section: devel Priority: extra Homepage: http://jenkins.io/ Description: Jenkins monitors executions of repeated jobs, such as building a software project or jobs run by cron. Among those things, current Jenkins focuses on the following two jobs: - Building/testing software projects continuously, just like CruiseControl or DamageControl. In a nutshell, Jenkins provides an easy-to-use so-called continuous integration system, making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. The automated, continuous build increases the productivity. - Monitoring executions of externally-run jobs, such as cron jobs and procmail jobs, even those that are run on a remote machine. For example, with cron, all you receive is regular e-mails that capture the output, and it is up to you to look at them diligently and notice when it broke. Jenkins keeps those outputs and makes it easy for you to notice when something is wrong.

          Code changed in jenkins
          User: Sam Van Oort
          Path:
          deb/build/build.sh
          deb/build/debian/control
          http://jenkins-ci.org/commit/packaging/ce74c618284486290a792e9bed508dd929f28a61
          Log:
          Merge pull request #71 from kwhetstone/deb_desc

          JENKINS-38437 Fix the debian package description

          Compare: https://github.com/jenkinsci/packaging/compare/0c9db1998568...ce74c6182844

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sam Van Oort Path: deb/build/build.sh deb/build/debian/control http://jenkins-ci.org/commit/packaging/ce74c618284486290a792e9bed508dd929f28a61 Log: Merge pull request #71 from kwhetstone/deb_desc JENKINS-38437 Fix the debian package description Compare: https://github.com/jenkinsci/packaging/compare/0c9db1998568...ce74c6182844

          Delivered. Thanks all for the reviews.

          Kristin Whetstone added a comment - Delivered. Thanks all for the reviews.

            kwhetstone Kristin Whetstone
            kwhetstone Kristin Whetstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: