[ovs-dev] [PATCH] debian : upstream_version fix

Ben Pfaff blp at ovn.org
Wed Mar 23 15:41:15 UTC 2016


On Wed, Mar 16, 2016 at 12:10:35PM +0000, Zoltán Balogh wrote:
> Hi,
> 
> The Debian Policy Manual (https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version) says that the upstream_version may contain only alphanumerics and the characters . + - : ~ (full stop, plus, hyphen, colon, tilde) and should start with a digit.
> 
> Currently, the upstream_version is defined in the debian/rules file:
> 
> DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([0-9]:)*([^-]+).*,\2,p')
> 
> The version number is taken from the dpkg-parsechangelog printout then the first part of the version number which does not contain hyphen is filtered out with sed. However the Debian Policy Manual says that hyphen is allowed in the upstream_version. e.g. in case of 3:2.5.0-myOvs-12-1 the upstream_version should be 2.5.0-myOvs-12, but current implementation will filter it to 2.5.0.
> I think the following patch solves this problem.

I don't understand the problem.  Currently the Debian version number is
2.5.90-1.  This filters it to 2.5.90.  What's the problem?

We've never used a version number like 3:2.5.0-myOvs-12-1, where does
that come from?



More information about the dev mailing list