Build number issue

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Message
Author
User avatar
Vezzra
Release Manager, Design
Posts: 6102
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: Build number issue

#16 Post by Vezzra »

Chriss wrote:To describe the code someone refers to, the hash is perfect. BUT, for packaging, I need to have a version which can be ordered. I (or rather the package manager) need to know which package is newer, so I know when to update the package. The Git hash has no order. It is useless for that use case. For packaging, it is NOT sufficient.
This. And, when including the build number into the file name of installer packages, it's also far easier to tell which is the newer version. That's, after all, the whole point of build numbers being ordered.
So maybe a Build number could be "0.4.4+r<commit-count>.<git hash>"?
That wouldn't be a build number anymore, but a version number. Not exactly the same, a build number should identify a specific build all by itself, without the need to specify a version.
Not sure if the "+" works, as in: the relevant package managers understand that 0.4.4 < 0.4.4+ < 0.4.5.
With an ordered build number that's not part of a version number no problem at all.

Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Re: Build number issue

#17 Post by Chriss »

I don't think I understand the difference between a version number and the build number... Or what a build really is... Maybe because for my use case, the version is the important part... I mean, in Arch, with source packages, everyone builds their own binary. So the binary and when it's being built is not so important as the code version that is being built.
Attached patches are released under GPL 2.0 or later.

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Build number issue

#18 Post by Dilvish »

Vezzra wrote:That wouldn't be a build number anymore, but a version number. Not exactly the same, a build number should identify a specific build all by itself, without the need to specify a version.
I wasn't quite really making sense of this, and so tried searching around for typical meanings for 'build number' and it seems to me that it is most often used for the portion of the version number after the minor version number, or at least that's where it would be designated (pretty much just where we are talking about it). So I'm still not understanding what objection you were making here.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

Post Reply