Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-8046

Set base C* version in debs and strip -N, ~textN, +textN

    XMLWordPrintableJSON

Details

    Description

      Patch is for 2.1 and please, backport the line to the 2.0 branch.

      In the 2.1/trunk branches, debian/rules has a line to strip -N from the changelog version.

      I'm working on Ubuntu PPA rebuilds using x.x.x~textN so that the Apache Cassandra repository packages are higher versions ( x.x~something is always a lower version than x.x)

      Using this works for all the deb version possibilities (including the use of +snapN as a higher version tool) to set just the base version when building the Cassandra jars:

      mshuler@hana:~$ echo "Version: 2.1.1" | sed -ne 's/^Version: \([^-|~|+]*\).*/\1/p'
      2.1.1
      mshuler@hana:~$ echo "Version: 2.1.1-9" | sed -ne 's/^Version: \([^-|~|+]*\).*/\1/p'
      2.1.1
      mshuler@hana:~$ echo "Version: 2.1.1~ppa9" | sed -ne 's/^Version: \([^-|~|+]*\).*/\1/p'
      2.1.1
      mshuler@hana:~$ echo "Version: 2.1.1+snap9" | sed -ne 's/^Version: \([^-|~|+]*\).*/\1/p'
      2.1.1
      

      Attachments

        1. dpkg-parsechangelog_fix_2.1.txt
          0.4 kB
          Michael Shuler

        Activity

          People

            mshuler Michael Shuler
            mshuler Michael Shuler
            Michael Shuler
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: