Package: qemu Version: 0.8.2-4etch1 Severity: wishlist Tags: patch Shouldn't /usr/bin/qemu be an alias for qemu-system-$(ARCH), where $(ARCH) is the native architecture? Defaulting to i386 doesn't make much sense nowadays, specially since x86_64 is gradually obsoleting it.
See attached patch (already sent upstream). -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-amd64 Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8) Versions of packages qemu depends on: ii bochsbios 2.3-2 BIOS for the Bochs emulator ii libasound2 1.0.13-2 ALSA library ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libncurses5 5.5-5 Shared libraries for terminal hand ii libsdl1.2debian 1.2.11-8 Simple DirectMedia Layer ii openhackware 0.4.1-2 OpenFirmware emulator for PowerPC ii proll 18-2 JavaStation PROM 2.x compatible re ii vgabios 0.6a-1 VGA BIOS software for the Bochs an ii zlib1g 1:1.2.3-13 compression library - runtime Versions of packages qemu recommends: ii debootstrap 0.3.3.2 Bootstrap a basic Debian system ii sharutils 1:4.2.1-15 shar, unshar, uuencode, uudecode pn vde <none> (no description available) -- no debconf information
--- qemu-0.8.2.old/Makefile.target 2006-07-22 19:23:34.000000000 +0200 +++ qemu-0.8.2/Makefile.target 2007-07-08 14:05:33.000000000 +0200 @@ -43,11 +43,7 @@ QEMU_USER=qemu-$(TARGET_ARCH2) # system emulator name ifdef CONFIG_SOFTMMU -ifeq ($(TARGET_ARCH), i386) -QEMU_SYSTEM=qemu$(EXESUF) -else QEMU_SYSTEM=qemu-system-$(TARGET_ARCH2)$(EXESUF) -endif else QEMU_SYSTEM=qemu-fast endif @@ -531,6 +527,13 @@ install: all ifneq ($(PROGS),) $(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)" +ifeq ($(ARCH), $(TARGET_ARCH2)) +ifdef _WIN32 + mv "$(DESTDIR)$(bindir)/qemu-system-$(TARGET_ARCH2)$(EXESUF)" "$(DESTDIR)$(bindir)/qemu$(EXESUF)" +else + ln -s qemu-system-$(TARGET_ARCH2)$(EXESUF) "$(DESTDIR)$(bindir)/qemu$(EXESUF)" +endif +endif endif ifneq ($(wildcard .depend),)