From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvFN4-0005se-AW for qemu-devel@nongnu.org; Sat, 18 Apr 2009 14:34:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvFN0-0005sF-Ty for qemu-devel@nongnu.org; Sat, 18 Apr 2009 14:34:34 -0400 Received: from [199.232.76.173] (port=50520 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvFN0-0005sC-PW for qemu-devel@nongnu.org; Sat, 18 Apr 2009 14:34:30 -0400 Received: from mail-bw0-f172.google.com ([209.85.218.172]:42186) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvFN0-00019l-78 for qemu-devel@nongnu.org; Sat, 18 Apr 2009 14:34:30 -0400 Received: by bwz20 with SMTP id 20so1193980bwz.34 for ; Sat, 18 Apr 2009 11:34:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20090418160104.GA18120@volta.aurel32.net> References: <20090418160104.GA18120@volta.aurel32.net> Date: Sat, 18 Apr 2009 21:34:27 +0300 Message-ID: Subject: Re: [Qemu-devel] [RFC][PATCH] Rename qemu into qemu-system-i386 and install a compat symlink From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 4/18/09, Aurelien Jarno wrote: > For historical reasons, qemu system on i386 is called qemu instead of > qemu-system-i386. This seems to confuse users. > > This patch installs it as qemu-system-i386, and create a compatibility > symlink qemu -> qemu-system-i386 as some tools may call it that way. > We can change or remove this symlink after a few releases when all the > tools have migrated to this new name. Reasonable change to me too. > Signed-off-by: Aurelien Jarno > --- > Makefile.target | 7 +++---- > 1 files changed, 3 insertions(+), 4 deletions(-) > > diff --git a/Makefile.target b/Makefile.target > index dae339b..88c7a32 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -63,12 +63,8 @@ ifdef CONFIG_USER_ONLY > QEMU_PROG=qemu-$(TARGET_ARCH2) > else > # system emulator name > -ifeq ($(TARGET_ARCH), i386) > -QEMU_PROG=qemu$(EXESUF) > -else > QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF) > endif > -endif > > PROGS=$(QEMU_PROG) > > @@ -743,6 +739,9 @@ install: all > ifneq ($(PROGS),) > $(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)" > endif > +ifeq ($(TARGET_ARCH), i386) > + ln -sf qemu-system-i386$(EXESUF) "$(DESTDIR)$(bindir)/qemu$(EXESUF)" IIRC '-f' (force) provided by some lns was actually very weak, so you'd have to use rm first.