From: John Ellson <ellson@research.att.com>
To: git@vger.kernel.org
Cc: git@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>
Subject: Re: [PATCH] rpmbuild doesn't like '-' in version strings
Date: Sat, 14 Jan 2006 10:39:17 -0500 [thread overview]
Message-ID: <43C91B25.9030707@research.att.com> (raw)
In-Reply-To: <7voe2prniw.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> John Ellson <ellson@research.att.com> writes:
>
>> Suggested fix: Use '_' instead of '-'
>
> I wonder if the right fix is to change the git-describe output
> before the current output becomes too widespread. After all,
> somebody might be tempted to use 1.0.6-g58e3 as a tagname ;-).
> For example, if we say "1.0.6:58e3" there is no ambiguity, but
> probably binary packagers would not like colon either X-<.
>
> More seriously, I do not think git-describe based versioning
> scheme meshes well with binary packagers. There is no guaranee
> 1.0.6-g58e3 comes before 1.0.6-g4e7a2 (it does not). To really
> fix this problem, I think the rpm target of the main Makefile
> needs to be modified to include something monotonicly increasing
> (e.g. number of seconds since the base commit encoded in base26,
> or something silly like that) between the base version and the
> abbreviated object name, but the development being distributed,
> my today's version on top of 1.0.6 may be way behind your
> yesterday's version, so some centralized coordination (read:
> manual version assignment by the maintainer, or automated
> assignment but only reserved for the maintainer and unavailable
> to mere mortals) might be needed to truly solve this. In that
> sense, maybe leaving the interim version unbuildable for binary
> packaging might be considered a feature.
What happened to this? I don't particularly like my fix either, but
some kind of fix is needed for the "make rpm" target to work. Its still broken
because of the '-' in the version string.
The need in rpm versioning is to be able to distinguish and monotonically
order, locally built rpms. There is no particular need to disambiguate against
somebody else's rpms since if you are merging someone else's changes you
would be doing it in git and not by intermixing rpms.
I think that distinguishing between local branches is not likely to be a prolem.
Most developers are likely to use only one for rpm construction, or if there
is a second experimental branch, then it is likely to contain more-recent
changes anyway.
So a count of minutes since last tag is probably sufficient.
This could have a hash appended if it is essential to make the rpm version
unique without losing the ordering of the timestamp.
Something like:
1.1.2_123456_g9e9b
John
next prev parent reply other threads:[~2006-01-14 15:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-30 17:29 [PATCH] rpmbuild doesn't like '-' in version strings John Ellson
2006-01-06 22:37 ` Junio C Hamano
2006-01-07 0:04 ` Andreas Ericsson
2006-01-07 0:47 ` Johannes Schindelin
2006-01-07 1:22 ` Ryan Anderson
2006-01-14 15:39 ` John Ellson [this message]
2006-01-14 17:53 ` Linus Torvalds
2006-01-14 19:17 ` Junio C Hamano
2006-01-14 20:25 ` John Ellson
2006-01-14 20:35 ` Junio C Hamano
2006-01-16 9:15 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43C91B25.9030707@research.att.com \
--to=ellson@research.att.com \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).