From: Stefan Weil <sw@weilnetz.de>
To: Michael Roth <mdroth@linux.vnet.ibm.com>, qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-2.5] makefile: fix w32 install target for qemu-ga
Date: Mon, 16 Nov 2015 23:03:49 +0100 [thread overview]
Message-ID: <564A52C5.9020504@weilnetz.de> (raw)
In-Reply-To: <1447603950-22796-1-git-send-email-mdroth@linux.vnet.ibm.com>
This mail arrived with one day delay (obviously caused by the
mailing list server). Please see my comments below.
Am 15.11.2015 um 17:12 schrieb Michael Roth:
> fafcaf1 added a 'qemu-ga' install target on w32, which can be used
> in place of the existing qemu-ga.exe target to also handle dealing
> with other components such as DLLs for VSS/fsfreeze and generating
> an MSI package if appropriate configure options are present.
>
> As part of that, qemu-ga$(EXESUF) was removed from $TOOLS in favor
> of this new qemu-ga target.
>
> The install rule however relies on a direct mapping of the $TOOLS
> entry to the actual resulting binary. In the case of w32, qemu-ga
> is not identical to qemu-ga$(EXESUF), and the install recipe fails
> to find the 'qemu-ga' binary.
>
> Fix this by essentially remapping 'qemu-ga' back to 'qemu-ga.exe'
> in the install recipe.
>
> This raises the question of whether or not qemu-ga should continue
> to live in TOOLS as opposed to it's own special target, but as a
its?
> late fix for a regression in 2.5 this commit should be safer, since
> we rely on qemu-ga's presence in $TOOLS in several places throughout
> Makefile.
>
> Reported-by: Stefan Weil <sw@weilnetz.de>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
> ---
> Makefile | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index fc1f8bb..8acda9e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -440,7 +440,11 @@ endif
> install: all $(if $(BUILD_DOCS),install-doc) \
> install-datadir install-localstatedir
> ifneq ($(TOOLS),)
> - $(call install-prog,$(TOOLS),$(DESTDIR)$(bindir))
> + $(call install-prog,$(filter-out qemu-ga,$(TOOLS)),$(DESTDIR)$(bindir))
> + # qemu-ga is included in TOOLS, but we need special install rules for w32
> +ifneq (,$(findstring qemu-ga,$(TOOLS)))
> + $(call install-prog,qemu-ga$(EXESUF),$(DESTDIR)$(bindir))
> +endif
> endif
> ifneq ($(CONFIG_MODULES),)
> $(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)"
Reviewed-by: Stefan Weil <sw@weilnetz.de>
The patch is not pretty at all, but it works for 2.5.
We should improve this and also some redundant dependencies
like this one later:
$(QEMU_GA_MSI): qemu-ga.exe $(QGA_VSS_PROVIDER)
qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI)
Thanks,
Stefan
next prev parent reply other threads:[~2015-11-16 22:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-15 16:12 [Qemu-devel] [PATCH for-2.5] makefile: fix w32 install target for qemu-ga Michael Roth
2015-11-16 22:03 ` Stefan Weil [this message]
2015-11-17 22:40 ` Michael Roth
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=564A52C5.9020504@weilnetz.de \
--to=sw@weilnetz.de \
--cc=mdroth@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.