qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] configure: do not create legacy symlinks
@ 2024-01-29 13:36 Paolo Bonzini
  2024-01-29 13:46 ` Thomas Huth
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2024-01-29 13:36 UTC (permalink / raw)
  To: qemu-devel

With more than three years since Meson was introduced in the build system, people
have had quite some time to move away from the foo-softmmu/qemu-system-* and
foo-linux-user/qemu-* symbolic links.  Remove them, and with them another
instance of the "softmmu" name for system emulators.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/configure b/configure
index ff058d6c486..9cdb5a6818b 100755
--- a/configure
+++ b/configure
@@ -1605,21 +1605,11 @@ echo "GENISOIMAGE=$genisoimage" >> $config_host_mak
 echo "MESON=$meson" >> $config_host_mak
 echo "NINJA=$ninja" >> $config_host_mak
 echo "EXESUF=$EXESUF" >> $config_host_mak
-
 # use included Linux headers for KVM architectures
 if test "$host_os" = "linux" && test -n "$linux_arch"; then
   symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
 fi
 
-for target in $target_list; do
-    target_dir="$target"
-    target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
-    case $target in
-        *-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;
-        *) symlink "../qemu-system-$target_name" "$target_dir/qemu-system-$target_name" ;;
-    esac
-done
-
 if test "$default_targets" = "yes"; then
   echo "CONFIG_DEFAULT_TARGETS=y" >> $config_host_mak
 fi
-- 
2.43.0



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

* Re: [PATCH] configure: do not create legacy symlinks
  2024-01-29 13:36 [PATCH] configure: do not create legacy symlinks Paolo Bonzini
@ 2024-01-29 13:46 ` Thomas Huth
  2024-01-29 13:47   ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2024-01-29 13:46 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

On 29/01/2024 14.36, Paolo Bonzini wrote:
> With more than three years since Meson was introduced in the build system, people
> have had quite some time to move away from the foo-softmmu/qemu-system-* and
> foo-linux-user/qemu-* symbolic links.  Remove them, and with them another
> instance of the "softmmu" name for system emulators.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   configure | 10 ----------
>   1 file changed, 10 deletions(-)
> 
> diff --git a/configure b/configure
> index ff058d6c486..9cdb5a6818b 100755
> --- a/configure
> +++ b/configure
> @@ -1605,21 +1605,11 @@ echo "GENISOIMAGE=$genisoimage" >> $config_host_mak
>   echo "MESON=$meson" >> $config_host_mak
>   echo "NINJA=$ninja" >> $config_host_mak
>   echo "EXESUF=$EXESUF" >> $config_host_mak
> -

Maybe keep the empty line here?

>   # use included Linux headers for KVM architectures
>   if test "$host_os" = "linux" && test -n "$linux_arch"; then
>     symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
>   fi
>   
> -for target in $target_list; do
> -    target_dir="$target"
> -    target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
> -    case $target in
> -        *-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;
> -        *) symlink "../qemu-system-$target_name" "$target_dir/qemu-system-$target_name" ;;
> -    esac
> -done
> -

Anyway,
Reviewed-by: Thomas Huth <thuth@redhat.com>




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

* Re: [PATCH] configure: do not create legacy symlinks
  2024-01-29 13:46 ` Thomas Huth
@ 2024-01-29 13:47   ` Paolo Bonzini
  0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2024-01-29 13:47 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel

On Mon, Jan 29, 2024 at 2:46 PM Thomas Huth <thuth@redhat.com> wrote:
>
> On 29/01/2024 14.36, Paolo Bonzini wrote:
> > With more than three years since Meson was introduced in the build system, people
> > have had quite some time to move away from the foo-softmmu/qemu-system-* and
> > foo-linux-user/qemu-* symbolic links.  Remove them, and with them another
> > instance of the "softmmu" name for system emulators.
> >
> > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> > ---
> >   configure | 10 ----------
> >   1 file changed, 10 deletions(-)
> >
> > diff --git a/configure b/configure
> > index ff058d6c486..9cdb5a6818b 100755
> > --- a/configure
> > +++ b/configure
> > @@ -1605,21 +1605,11 @@ echo "GENISOIMAGE=$genisoimage" >> $config_host_mak
> >   echo "MESON=$meson" >> $config_host_mak
> >   echo "NINJA=$ninja" >> $config_host_mak
> >   echo "EXESUF=$EXESUF" >> $config_host_mak
> > -
>
> Maybe keep the empty line here?

Even better, the "if" can be moved with the other creation of symlinks from
$source_path to the build tree.

Paolo

> >   # use included Linux headers for KVM architectures
> >   if test "$host_os" = "linux" && test -n "$linux_arch"; then
> >     symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
> >   fi
> >
> > -for target in $target_list; do
> > -    target_dir="$target"
> > -    target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
> > -    case $target in
> > -        *-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;
> > -        *) symlink "../qemu-system-$target_name" "$target_dir/qemu-system-$target_name" ;;
> > -    esac
> > -done
> > -
>
> Anyway,
> Reviewed-by: Thomas Huth <thuth@redhat.com>
>
>



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

end of thread, other threads:[~2024-01-29 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29 13:36 [PATCH] configure: do not create legacy symlinks Paolo Bonzini
2024-01-29 13:46 ` Thomas Huth
2024-01-29 13:47   ` Paolo Bonzini

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