git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make sure an autogenerated version has at least four parts

From
Martin Waitz <tali@admingilde.org>
Date
May 25, 2007, 09:47 UTC
Message-ID
<20070525094743.GO5412@admingilde.org>
In-Reply-To
<46563CE1.9020007@vilain.net>
hoi :)
On Fri, May 25, 2007 at 01:33:21PM +1200, Sam Vilain wrote:
Show 9 quoted lines
> Martin Waitz wrote:
> > On Mon, May 21, 2007 at 02:52:21PM +1200, Sam Vilain wrote:
> >> Otherwise, a custom "v1.5.2.42.gd00b" is considered newer than a
> >> "v1.5.2.1.69.gcafe".
> > 
> > or just use git describe output without replacing "-" with "."?
> 
> dpkg uses "-" in version numbers for its own uses - to delimit the
> packager's packaging version from the software version.

But you can also have "-" in the upstream version without problems. Only the last "-" is used as deliminator and therefore the Debian version part must not contain a "-"; it's no problem for the upstream part.

> The change I posted keeps original behaviour - just fills out the
> .0's.
> Perhaps the munging should go in git-describe instead?

If we want to be able to separate the software version as it is defined by the project maintainer from the additional Git information we should do so with a clear separator, not by changing the software version.

Maybe have some Makefile magic which creates a nice version, but interpreting and changing the tagged version in git-describe sounds wrong to me.

-- 
Martin Waitz
Previous: Sam Vilain
Message 7 of 7 in “Make sure an autogenerated version has at least four parts”
  1. Make sure an autogenerated version has at least four partsSam Vilain, May 21, 2007
  2. Martin WaitzMay 21, 2007
  3. Jan HudecMay 21, 2007
  4. Martin WaitzMay 21, 2007
  5. Sam VilainMay 25, 2007
  6. Sam VilainMay 25, 2007
  7. Martin WaitzMay 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.