qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	qemu devel list <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] including the "git describe" output in the QEMU binaries?
Date: Tue, 31 May 2016 14:16:25 +0200	[thread overview]
Message-ID: <fae899d1-2866-207d-ed99-c09382d9716d@redhat.com> (raw)
In-Reply-To: <20160531113248.GP21628@redhat.com>

On 05/31/16 13:32, Daniel P. Berrange wrote:
> On Tue, May 31, 2016 at 01:16:14PM +0200, Laszlo Ersek wrote:
>> Hi,
>>
>> has this been raised / considered before? To me at least it would be
>> extremely useful if QEMU binaries built from a git working directory
>> returned the output of "git describe" (+ possibly a hint about an
>> unclean working directory), when invoked with "-version".
>>
>> Not volunteering for the implementation, and also not suggesting /
>> requesting that others implement it (everyone is busy with real stuff,
>> I'm sure); just asking if it's been considered.
> 
> Currently configure supports a --pkgversion flag which is used by people
> packaging QEMU in RPM/Debs to include their arbitrary custom version string.
> This information is then reported by -version and the appropriate QMP
> command.
> 
> We could quite easily make configure default the pkgversion to the current
> GIT hash if --pkgversion is not explicitly given.

That sounds great, thanks! I'll try to post a patch. I'm thinking of
git-describe, plus appending a plus sign (+), when there are uncommitted
changes (for which I plan to look with ( ! git diff --quiet || ! git
diff --staged --quiet )).

Thanks!
Laszlo

  reply	other threads:[~2016-05-31 12:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31 11:16 [Qemu-devel] including the "git describe" output in the QEMU binaries? Laszlo Ersek
2016-05-31 11:32 ` Daniel P. Berrange
2016-05-31 12:16   ` Laszlo Ersek [this message]
2016-05-31 13:19   ` Daniel P. Berrange
2016-05-31 13:26     ` Laszlo Ersek
2016-06-01  1:31 ` [Qemu-devel] [PATCH 0/2] Let PKGVERSION include the "git describe" output Fam Zheng
2016-06-01  1:31   ` [Qemu-devel] [PATCH 1/2] Makefile: Add a "FORCE" target Fam Zheng
2016-06-01  1:31   ` [Qemu-devel] [PATCH 2/2] Makefile: Derive "PKGVERSION" from "git describe" by default Fam Zheng
2016-06-01  3:05     ` Eric Blake
2016-06-01  3:17       ` 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=fae899d1-2866-207d-ed99-c09382d9716d@redhat.com \
    --to=lersek@redhat.com \
    --cc=berrange@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.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).