From: Laszlo Ersek <lersek@redhat.com>
To: Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
qemu-block@nongnu.org, peter.maydell@linaro.org,
eblake@redhat.com, berrange@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 0/2] Let PKGVERSION include the "git describe" output
Date: Wed, 1 Jun 2016 10:49:40 +0200 [thread overview]
Message-ID: <f0e93991-bc26-1e29-c507-3cbf07fc5ce2@redhat.com> (raw)
In-Reply-To: <1464756079-13659-1-git-send-email-famz@redhat.com>
On 06/01/16 06:41, Fam Zheng wrote:
> v2: Address Eric's comments:
> "echo -n" -> "printf".
> "-unclean" -> "-dirty".
>
> Makefile happened to be in my working set because of the docker test work, so I
> went ahead to try this nice feature last evening before going to bed. My
> apologies if we have duplicated work.
>
> Please review, especially please comment on the redundant version string:
>
> $ qemu-img --version
> qemu-img version 2.6.50-v2.6.0-603-g684a494, Copyright (c) 2004-2008 Fabrice Bellard
>
>
> Fam Zheng (2):
> Makefile: Add a "FORCE" target
> Makefile: Derive "PKGVERSION" from "git describe" by default
>
> Makefile | 24 ++++++++++++++++++++++--
> linux-user/main.c | 1 +
> qemu-img.c | 1 +
> qmp.c | 1 +
> scripts/create_config | 4 ----
> vl.c | 1 +
> 6 files changed, 26 insertions(+), 6 deletions(-)
>
I only skimmed the git commands in patch #2:
git status --> this verifies if we have git at all, and refreshes the
index if we do, in the same step, so that's good
git describe --> okay
git diff-index --quiet HEAD --> okay
Another advantage of this approach seems to be that it sets the version
at "make", not at "configure", time.
Some comments / questions on the version string:
- What happens if "--with-pkgversion=blah" was passed to ./configure?
Do I see it right that in that case there's no change in behavior?
- I think the following format would look better (stolen from
--with-pkgversion):
2.6.50 (v2.6.0-603-g684a494)
Thanks
Laszlo
next prev parent reply other threads:[~2016-06-01 8:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-01 4:41 [Qemu-devel] [PATCH v2 0/2] Let PKGVERSION include the "git describe" output Fam Zheng
2016-06-01 4:41 ` [Qemu-devel] [PATCH v2 1/2] Makefile: Add a "FORCE" target Fam Zheng
2016-06-01 4:41 ` [Qemu-devel] [PATCH v2 2/2] Makefile: Derive "PKGVERSION" from "git describe" by default Fam Zheng
2016-06-01 8:49 ` Laszlo Ersek [this message]
2016-06-01 9:12 ` [Qemu-devel] [PATCH v2 0/2] Let PKGVERSION include the "git describe" output Fam Zheng
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=f0e93991-bc26-1e29-c507-3cbf07fc5ce2@redhat.com \
--to=lersek@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=famz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.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).