qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Stefan Weil <sw@weilnetz.de>
Cc: qemu-trivial <qemu-trivial@nongnu.org>,
	peter.maydell@linaro.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] configure: Fix creation of symbolic links for MinGW toolchain
Date: Wed, 25 Apr 2012 09:39:39 +0100	[thread overview]
Message-ID: <20120425083939.GA15165@stefanha-thinkpad.localdomain> (raw)
In-Reply-To: <1332159647-9456-1-git-send-email-sw@weilnetz.de>

On Mon, Mar 19, 2012 at 01:20:47PM +0100, Stefan Weil wrote:
> The MinGW toolchain on w32/w64 hosts does not create symbolic links,
> but implements 'ln -s' similar to 'cp -r'.
> 
> In incremental out of tree builds, this resulted in files which
> were not updated when their counterparts in the QEMU source tree
> changed. Especially for Makefile* this happened very often.
> 
> With this patch, the 'symlinked' files are now always updated for
> out of tree builds. Similar code was already used for the symbolic
> link of libcacard/Makefile.
> 
> The symlink macro always removes the target before it is created
> again, therefore the rm command for libcacard/Makefile was redundant
> and is removed now.
> 
> Macro symlink is also used with directories. To remove them on w32
> hosts, a recursive rm is needed.
> 
> v2:
> Quote arguments in shell function symlink, and also quote any argument
> which is passed to symlink and which contains macros. This should reduce
> the chance of accidents caused by rm -rf.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  configure |   21 ++++++++++-----------
>  1 files changed, 10 insertions(+), 11 deletions(-)

Sorry, this got lost in my inbox.  If you send patch revisions as
top-level emails then it's easier to notice them.  I probably marked it
as read and forgot about it because being part of the original email
thread made it appear like the discussion was still continuing.

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan


      parent reply	other threads:[~2012-04-25  8:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-17 15:31 [Qemu-trivial] [PATCH] configure: Fix creation of symbolic links for MinGW toolchain Stefan Weil
2012-03-17 15:49 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
2012-03-17 15:59   ` Stefan Weil
2012-03-17 17:24     ` Peter Maydell
2012-03-19 11:30       ` Stefan Hajnoczi
2012-03-19 12:20         ` [Qemu-trivial] [PATCH v2] " Stefan Weil
2012-04-24 20:55           ` Stefan Weil
2012-04-25  8:39           ` Stefan Hajnoczi [this message]

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=20120425083939.GA15165@stefanha-thinkpad.localdomain \
    --to=stefanha@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=sw@weilnetz.de \
    /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).