Michael Shuler created CASSANDRA-8046: -----------------------------------------
Summary: Set base C* version in debs and strip -N, ~textN, +textN Key: CASSANDRA-8046 URL: https://issues.apache.org/jira/browse/CASSANDRA-8046 Project: Cassandra Issue Type: Improvement Components: Packaging Reporter: Michael Shuler Assignee: Michael Shuler Priority: Trivial Fix For: 2.0.11, 2.1.1, 3.0 Attachments: dpkg-parsechangelog_fix_2.1.txt 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: {noformat} 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 {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)