qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] configure: Symlink binaries using .exe suffix with MinGW
@ 2021-11-09 14:45 Philippe Mathieu-Daudé
  2021-11-09 17:23 ` Stefan Weil
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-11-09 14:45 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Stefan Weil, Yonggang Luo,
	Philippe Mathieu-Daudé, Paolo Bonzini

When using the MinGW toolchain, we use the .exe suffix for the
executable name. We also need to use it for the symlinks in the
build directory.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 48c21775f3a..31e8f586dc7 100755
--- a/configure
+++ b/configure
@@ -3786,7 +3786,7 @@ fi
 
 for target in $target_list; do
     target_dir="$target"
-    target_name=$(echo $target | cut -d '-' -f 1)
+    target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
     mkdir -p $target_dir
     case $target in
         *-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] configure: Symlink binaries using .exe suffix with MinGW
  2021-11-09 14:45 [PATCH] configure: Symlink binaries using .exe suffix with MinGW Philippe Mathieu-Daudé
@ 2021-11-09 17:23 ` Stefan Weil
  2021-11-09 17:59 ` Paolo Bonzini
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Stefan Weil @ 2021-11-09 17:23 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: qemu-trivial, Paolo Bonzini, Yonggang Luo

Am 09.11.21 um 15:45 schrieb Philippe Mathieu-Daudé:

> When using the MinGW toolchain, we use the .exe suffix for the
> executable name. We also need to use it for the symlinks in the
> build directory.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>   configure | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index 48c21775f3a..31e8f586dc7 100755
> --- a/configure
> +++ b/configure
> @@ -3786,7 +3786,7 @@ fi
>   
>   for target in $target_list; do
>       target_dir="$target"
> -    target_name=$(echo $target | cut -d '-' -f 1)
> +    target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
>       mkdir -p $target_dir
>       case $target in
>           *-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;


I never missed those links, and so I did not notice that they were 
broken. But fixing them is reasonable of course, thank you.

Reviewed-by: Stefan Weil <sw@weilnetz.de>




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] configure: Symlink binaries using .exe suffix with MinGW
  2021-11-09 14:45 [PATCH] configure: Symlink binaries using .exe suffix with MinGW Philippe Mathieu-Daudé
  2021-11-09 17:23 ` Stefan Weil
@ 2021-11-09 17:59 ` Paolo Bonzini
  2021-12-15 10:52 ` Philippe Mathieu-Daudé
  2021-12-17  9:40 ` Laurent Vivier
  3 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2021-11-09 17:59 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: qemu-trivial, Stefan Weil, Yonggang Luo

On 11/9/21 15:45, Philippe Mathieu-Daudé wrote:
> When using the MinGW toolchain, we use the .exe suffix for the
> executable name. We also need to use it for the symlinks in the
> build directory.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Acked-by: Paolo Bonzini <pbonzini@redhat.com>

but perhaps we can get rid of the symlinks instead?...

Paolo

> ---
>   configure | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index 48c21775f3a..31e8f586dc7 100755
> --- a/configure
> +++ b/configure
> @@ -3786,7 +3786,7 @@ fi
>   
>   for target in $target_list; do
>       target_dir="$target"
> -    target_name=$(echo $target | cut -d '-' -f 1)
> +    target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
>       mkdir -p $target_dir
>       case $target in
>           *-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] configure: Symlink binaries using .exe suffix with MinGW
  2021-11-09 14:45 [PATCH] configure: Symlink binaries using .exe suffix with MinGW Philippe Mathieu-Daudé
  2021-11-09 17:23 ` Stefan Weil
  2021-11-09 17:59 ` Paolo Bonzini
@ 2021-12-15 10:52 ` Philippe Mathieu-Daudé
  2021-12-17  9:40 ` Laurent Vivier
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-12-15 10:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Stefan Weil, Yonggang Luo, Paolo Bonzini

Hi Laurent,

This patch is reviewed/acked, can it go via your trivial tree?

On 11/9/21 15:45, Philippe Mathieu-Daudé wrote:
> When using the MinGW toolchain, we use the .exe suffix for the
> executable name. We also need to use it for the symlinks in the
> build directory.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  configure | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index 48c21775f3a..31e8f586dc7 100755
> --- a/configure
> +++ b/configure
> @@ -3786,7 +3786,7 @@ fi
>  
>  for target in $target_list; do
>      target_dir="$target"
> -    target_name=$(echo $target | cut -d '-' -f 1)
> +    target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
>      mkdir -p $target_dir
>      case $target in
>          *-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] configure: Symlink binaries using .exe suffix with MinGW
  2021-11-09 14:45 [PATCH] configure: Symlink binaries using .exe suffix with MinGW Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2021-12-15 10:52 ` Philippe Mathieu-Daudé
@ 2021-12-17  9:40 ` Laurent Vivier
  3 siblings, 0 replies; 5+ messages in thread
From: Laurent Vivier @ 2021-12-17  9:40 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: qemu-trivial, Stefan Weil, Yonggang Luo, Paolo Bonzini

Le 09/11/2021 à 15:45, Philippe Mathieu-Daudé a écrit :
> When using the MinGW toolchain, we use the .exe suffix for the
> executable name. We also need to use it for the symlinks in the
> build directory.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>   configure | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index 48c21775f3a..31e8f586dc7 100755
> --- a/configure
> +++ b/configure
> @@ -3786,7 +3786,7 @@ fi
>   
>   for target in $target_list; do
>       target_dir="$target"
> -    target_name=$(echo $target | cut -d '-' -f 1)
> +    target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
>       mkdir -p $target_dir
>       case $target in
>           *-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-17  9:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-09 14:45 [PATCH] configure: Symlink binaries using .exe suffix with MinGW Philippe Mathieu-Daudé
2021-11-09 17:23 ` Stefan Weil
2021-11-09 17:59 ` Paolo Bonzini
2021-12-15 10:52 ` Philippe Mathieu-Daudé
2021-12-17  9:40 ` Laurent Vivier

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).