# # spec file for package qemu (Version 0.9.0.cvs) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: qemu BuildRequires: SDL-devel bison e2fsprogs-devel URL: http://fabrice.bellard.free.fr/qemu/ License: BSD 3-Clause, GPL v2 or later Group: System/Emulators/PC Summary: Universal CPU emulator Version: 0.9.0.cvs Release: 1 Source: %name-%version.tar.bz2 #Patch400: qemu-0.7.0-gcc4-dot-syms.patch #Patch401: qemu-0.8.0-gcc4-hacks.patch #Patch402: qemu-0.8.3-gcc4.patch Patch1: qemu-0.7.0-binfmt.patch Patch5: qemu-0.7.0-sigaltstackhack.patch Patch6: qemu-0.7.0-amd64.patch Patch8: qemu-cvs-pthread.patch Patch10: linkerscripts.patch Patch14: qemu-0.7.1-jobsignals.patch Patch16: qemu-0.7.1-armfpaex.patch Patch19: qemu-0.9.0-nousbdevfs.patch Patch20: qemu-0.9.0-usbheaders.patch Patch34: qemu-0.9.0-migration.patch Patch37: qemu-0.9.0-kvm.patch Patch38: qemu-0.9.0-kvm-bios.patch Patch39: qemu-0.9.0-kvm-kqemu-window-caption.patch Patch48: qemu-z80.diff Patch49: qemu-cvs-img.patch Patch50: qemu-cvs-newpath.patch Patch51: qemu-cvs-tls.patch Patch52: qemu-cvs-futex.patch Patch53: qemu-cvs-sched_getaffinity.patch Patch54: qemu-cvs-mplayer.patch Patch55: qemu-cvs-netlink.patch Patch56: qemu-cvs-ipc.patch Patch57: qemu-cvs-ipc_semop.patch Patch58: qemu-cvs-ioctl_debug.patch Patch59: qemu-cvs-alsa_bitfield.patch Patch60: qemu-cvs-alsa_ioctl.patch Patch61: qemu-cvs-ioctl_nodirection.patch Patch62: qemu-cvs-alsa_mmap.patch Patch63: qemu-cvs-gettimeofday.patch Patch64: qemu-cvs-nofadvise64.patch Patch65: qemu-cvs-flash.patch Patch66: qemu-cvs-mmap-amd64.patch Patch67: qemu-cvs-noppcemb.patch Patch68: qemu-0.8.3-gcc4.patch Patch69: qemu-cvs-ia64.patch Patch70: qemu-m68k.diff Source200: kvm_bios.bin Source201: zx-rom.bin Source202: COPYING.zx-rom # GCC 3 sources/patches Source601: gcc-3.3.5.tar.bz2 Patch600: gcc-gcc-3.3.5-hammer.patch.bz2 Patch601: gcc-gcc-noalias-warn.diff Patch602: gcc-configure.patch Patch603: gcc-head-tail.patch Patch604: gcc-bug-reporting.patch Patch605: gcc-libgc.patch Patch606: gcc-ia64intrin.patch Patch607: gcc-ffi.patch Patch608: gcc-fworking-directory.patch Patch610: gcc-altivec.diff Patch611: gcc-compact-dwarf2.patch Patch616: gcc-c99-double-inline.diff Patch617: gcc-c99numbers.diff Patch621: gcc-gcse-volatile.patch Patch622: gcc-swig-alias.patch Patch632: gcc-aliasing.diff Patch633: gcc-aliasing12.diff Patch634: gcc-aliasing3.diff Patch637: gcc-cse-mem-expr.patch Patch642: gcc-emit-note.patch Patch643: gcc-unwind-ia64.patch Patch644: gcc-hppa.patch Patch645: gcc-suse46595.diff Patch646: gcc-stl-multiple-defs.diff # Ada patches Patch653: gcc-gcc32-ada-link.patch Patch654: gcc-gcc32-ada-addr2line.patch # c++ patches # PPC specific Patch661: gcc-gcc-3.3-ppc64.patch # Do not merge this patch into the Alan M patch, it will just get lost later. # If you think it is useless, try building "fam" and watch libtool break. Patch663: gcc-ppc-nostartfileprefix.patch Patch664: gcc-ppc-nof.patch Patch700: gcc-abuildappease.patch Patch701: gcc-3.3.5.dif # this is to make lint happy Source300: rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 ppc sparc x86_64 ia64 %description QEMU is an extremely well-performing CPU emulator that allows you to choose between simulating an entire system and running userspace binaries for different architectures under your native operating system. It currently emulates x86, ARM, PowerPC and SPARC CPUs as well as PC and PowerMac systems. Authors: -------- Fabrice Bellard %prep %setup -q -a601 #%patch400 -p1 #%patch401 -p1 #%patch402 -p1 %patch1 -p1 %patch5 %patch6 %patch8 -p1 %patch10 %patch14 %patch16 %patch19 %patch20 #%patch34 -p1 #%patch37 -p1 #%patch38 -p1 #%patch39 -p1 %patch48 -p1 %patch49 %patch50 -p1 %patch51 -p1 %patch52 -p1 %patch53 -p1 %patch54 -p1 %patch55 -p1 %patch56 -p1 %patch57 -p1 %patch58 -p1 %patch59 -p1 %patch60 -p1 %patch61 -p1 %patch62 -p1 %patch63 -p1 %patch64 -p1 %patch65 -p1 %patch66 -p1 %patch67 -p1 %patch69 %patch70 %ifarch ia64 ppc64 #this is the dyngen for gcc4 patch (does not work on x86) %patch68 -p1 %endif cp -p %SOURCE200 pc-bios/ cp -p %SOURCE202 . cd gcc-3.3.5 %patch600 %patch601 %patch602 %patch603 %patch604 %patch605 %patch606 %patch607 %patch608 -p1 %patch610 %patch611 %patch616 %patch617 %patch621 %patch622 %patch632 %patch633 %patch634 %patch637 %patch642 %patch643 %patch644 %patch645 %patch646 %patch653 %patch654 #%ifarch ppc ppc64 %patch661 -p1 #%patch6063 -p1 #%endif %patch700 -p1 %patch701 cd .. %build %ifarch ia64 ppc64 %define qemucc gcc %else %define gcc33tmp /tmp/gcc33 %define qemucc %{gcc33tmp}/bin/gcc QEMU_OPT_FLAGS="$RPM_OPT_FLAGS" # fix opt flags for gcc3 %ifarch %ix86 QEMU_OPT_FLAGS="${RPM_OPT_FLAGS/-mtune=/-mcpu=}" %endif QEMU_OPT_FLAGS="${QEMU_OPT_FLAGS//-fstack-protector/}" # build gcc 3.3 %define GCCDIST %{_target_cpu}-suse-linux cd gcc-3.3.5 ./configure --enable-threads=posix \ --prefix=%{gcc33tmp} --with-local-prefix=/usr/local \ --enable-languages=c \ --enable-shared --disable-biarch --disable-multilib \ %ifarch sparc --with-cpu=v7 \ %endif --host=%{GCCDIST} make bootstrap-lean BOOT_CFLAGS="$QEMU_OPT_FLAGS" STAGE1_CFLAGS="$QEMU_OPT_FLAGS" CFLAGS="$QEMU_OPT_FLAGS" %{?jobs:-j%{jobs}} make install cd .. QEMU_OPT_FLAGS="$QEMU_OPT_FLAGS -fno-strict-aliasing" %endif # build QEMU mkdir -p dynamic # build qemu-system without kqemu support ./configure --prefix=/usr \ --interp-prefix=/usr/share/qemu/qemu-i386 \ --cc=%qemucc --enable-adlib --disable-gcc-check \ --extra-cflags="$QEMU_OPT_FLAGS" --enable-system --disable-linux-user make %{?jobs:-j%{jobs}} mv */qemu */qemu-* dynamic || true make clean # build qemu-system with kqemu support # kqemu target %ifarch %ix86 x86_64 %ifarch x86_64 target_list_kqemu="x86_64-softmmu" %else target_list_kqemu="i386-softmmu" %endif ./configure --prefix=/usr \ --interp-prefix=/usr/share/qemu/qemu-i386 \ --target-list="$target_list_kqemu" --cc=%qemucc \ --enable-adlib --extra-cflags="$QEMU_OPT_FLAGS" echo '#define USE_KQEMU 1' >>config-host.h make %{?jobs:-j%{jobs}} mv */qemu */qemu-* dynamic || true make clean %endif # build userland emus ./configure --prefix=/usr \ --interp-prefix=/usr/share/qemu/qemu-i386 \ --enable-linux-user --disable-system --cc=%qemucc \ --static --disable-gcc-check \ --extra-cflags="$QEMU_OPT_FLAGS" make %{?jobs:-j%{jobs}} %install install -d -m 755 $RPM_BUILD_ROOT/usr/bin %ifnarch alpha install -m 755 */qemu $RPM_BUILD_ROOT/usr/bin ln -sf qemu $RPM_BUILD_ROOT/usr/bin/qemu-system-i386 %endif install -m 755 */qemu-*[^.]? $RPM_BUILD_ROOT/usr/bin install -d -m 755 $RPM_BUILD_ROOT/%{_mandir}/man1 install -m 644 qemu.1 $RPM_BUILD_ROOT/%{_mandir}/man1 install -d -m 755 $RPM_BUILD_ROOT/usr/share/qemu install -m 644 pc-bios/*.bin pc-bios/video.x pc-bios/openbios-sparc* $RPM_BUILD_ROOT/usr/share/qemu install -d -m 755 $RPM_BUILD_ROOT/usr/sbin install -m 755 qemu-binfmt-conf.sh $RPM_BUILD_ROOT/usr/sbin install -m 755 qemu-img $RPM_BUILD_ROOT/usr/bin install -d -m 755 $RPM_BUILD_ROOT/usr/share/qemu/keymaps install -m 644 keymaps/[a-z]* $RPM_BUILD_ROOT/usr/share/qemu/keymaps %ifnarch %ix86 x86_64 ln -sf ../../../emul/ia32-linux $RPM_BUILD_ROOT/usr/share/qemu/qemu-i386 %endif %ifnarch ia64 mkdir -p $RPM_BUILD_ROOT/emul/ia32-linux %endif install -m 644 %SOURCE201 $RPM_BUILD_ROOT/usr/share/qemu/ %clean rm -rf ${RPM_BUILD_ROOT} rm -rf %{gcc33tmp} %files %defattr(-, root, root) %doc COPYING COPYING.LIB Changelog README TODO VERSION qemu-doc.html COPYING.zx-rom %ifnarch alpha /usr/bin/qemu %endif /usr/bin/qemu-* /usr/sbin/qemu* %{_mandir}/man1/qemu*.1.gz /usr/share/qemu %ifnarch %ix86 x86_64 ia64 %dir /emul/ia32-linux %endif %changelog * Tue Jul 10 2007 - schwab@suse.de - Add (incomplete) m68k emulation. * Mon Jul 09 2007 - agraf@suse.de - included alsa support in qemu-user - update to current cvs - TFTP booting from host directory (Anthony Liguori, Erwan Velu) - Tap device emulation for Solaris (Sittichai Palanisong) - Monitor multiplexing to several I/O channels (Jason Wessel) - ds1225y nvram support (Herve Poussineau) - CPU model selection support (J. Mayer, Paul Brook, Herve Poussineau) - Several Sparc fixes (Aurelien Jarno, Blue Swirl) - MIPS 64-bit FPU support (Thiemo Seufer) - Xscale PDA emulation (Andrzei Zaborowski) - ColdFire system emulation (Paul Brook) - Improved SH4 support (Magnus Damm) - MIPS64 support (Aurelien Jarno, Thiemo Seufer) - Preliminary Alpha guest support (J. Mayer) - IPC fixes * Wed Jun 20 2007 - agraf@suse.de - applied proper fix for x86_64 and the MAP_32BIT flag * Wed Jun 20 2007 - uli@suse.de - added secfixes (bug #252519) * Thu Jun 14 2007 - agraf@suse.de - made wine work (set FS register to 0 on init) - suppressed robust_list warnings * Wed Jun 13 2007 - agraf@suse.de - made flash player 9 work on ppc - fixed FUTEX_WAKE_OP on machines where endianness differs - made mmap on x86_64 use the MAP_32BIT flag - removed a useless spin_lock - removed an annoying debug message for forking - implemented sched_getaffinity syscall - fixed configure call so it takes gcc3 again * Wed Jun 13 2007 - uli@suse.de - support "vga=" parameter (Pascal Terjan) - direct jump support for x86-64 (Gwenole Beauchesne) - fix chaining of CPU instances (Gwenole Beauchesne) - live migration support (Anthony Liguori) - fix fprem/fprem1 insns (Julian Seward) - KVM support - Z80/ZX Spectrum emulation (Stuart Brady) - GCC4 support postponed (breaks x86-64 on i386) * Mon Jun 11 2007 - agraf@suse.de - implemented TLS support on i386 so qemu-user can be used to run with current libc versions (partly done by David Woodhouse, fixed by Alexander Graf) - added a dirty hack for an mmap page table bug on qemu-user x86 emulation - disable AF_NETLINK in qemu-user (endianness problems) - applied fast path mangling patch from Kirill A. Shutemov - applied strace patch for debugging (by Stuart R. Anderson) * Wed Apr 04 2007 - agraf@suse.de - fixed initrd loading on x86 * Thu Mar 29 2007 - ro@suse.de - added bison to BuildRequires * Tue Feb 20 2007 - uli@suse.de - added better fix by Robert Schiele (bug #241950) - update -> 0.9.0 - Support for relative paths in backing files for disk images - Async file I/O API - New qcow2 disk image format - Support of multiple VM snapshots - Linux: specific host CDROM and floppy support - SMM support - Moved PCI init, MP table init and ACPI table init to Bochs BIOS - Support for MIPS32 Release 2 instruction set (Thiemo Seufer) - MIPS Malta system emulation (Aurelien Jarno, Stefan Weil) - Darwin userspace emulation (Pierre d'Herbemont) - m68k user support (Paul Brook) - several x86 and x86_64 emulation fixes - Mouse relative offset VNC extension (Anthony Liguori) - PXE boot support (Anthony Liguori) - '-daemonize' option (Anthony Liguori) * Tue Feb 06 2007 - uli@suse.de - added fix by Robert Schiele to work without usbdevfs (bug #241950) * Fri Feb 02 2007 - ro@suse.de - remove -fstack-protector from CFLAGS * Fri Oct 27 2006 - schwab@suse.de - Fix char signedness. * Mon Sep 11 2006 - uli@suse.de - re-added ARM FPE patch - fixed SPARC on PPC - install missing openbios-sparc32 * Sat Sep 09 2006 - dmueller@suse.de - update to 0.8.2: - ACPI support - PC VGA BIOS fixes - MIPS FPU support (Marius Groeger) - PPC breakpoints and single stepping (Jason Wessel) - USB updates (Paul Brook) - UDP/TCP/telnet character devices (Jason Wessel) - Windows sparse file support (Frediano Ziglio) - RTL8139 NIC TCP segmentation offloading (Igor Kovalenko) - PCNET NIC support (Antony T Curtis) - Support for variable frequency host CPUs - Workaround for win32 SMP hosts - Support for AMD Flash memories (Jocelyn Mayer) - Audio capture to WAV files support (malc) * Tue May 30 2006 - uli@suse.de - fixed to build on PPC with new glibc * Mon May 29 2006 - uli@suse.de - fixed to build with new kernel headers * Wed Mar 08 2006 - uli@suse.de - split giant patch - added NWFPE glue code fix * Tue Mar 07 2006 - schwab@suse.de - More fixes for ia64 port. * Mon Mar 06 2006 - schwab@suse.de - Remove obsolete hunk from ia64 patch. * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Tue Dec 20 2005 - uli@suse.de - update -> 0.8.0 * Thu Dec 08 2005 - uli@suse.de - update to current CVS (MIPS userspace, ARM system, SMP, USB, NX, VLAN, serial, parallel, ES1370, ALSA backend) - build i386 and AMD64 emus with kqemu support if possible - install missing PPC video driver, SPARC boot ROM - install missing keymaps * Mon Nov 07 2005 - uli@suse.de - updated linker scripts for new binutils release * Sat Sep 17 2005 - dmueller@suse.de - update to 0.7.2 * Mon Aug 15 2005 - schwab@suse.de - Don't package /emul/ia32-linux on ia64. * Mon Aug 15 2005 - schwab@suse.de - Fix compilation on ia64. * Mon Aug 01 2005 - uli@suse.de - update -> 0.7.1 - enabled x86_64-system * Mon Jul 11 2005 - uli@suse.de - update -> CVS (MIPS emulation) - build with throwaway GCC3 (still no GCC4-compatible QEMU in sight) - enabled armeb-user - link *-user statically (necessary for chrooting into non-native systems) - disabled s390, alpha, armv4l build (broken and unmaintained) - disabled qemu-fast (broken and deprecated) - disabled i386-user on x86_64 (useless) - build with %%jobs * Wed Jun 01 2005 - ro@suse.de - update to 0.7.0, still no success with gcc-4 * Thu Jan 27 2005 - uli@suse.de - baselibs-x86 link is unnecessary on x86/AMD64 - two ARM emulation fixes (RRX operand fix by Paul Brook, shifter carry fix by me) - SDL 1.2.8 can be linked statically -> enabled qemu-fast * Mon Nov 29 2004 - uli@suse.de - update -> 0.6.1 - build softmmu binaries on s390 (still doesn't work though) - pack /emul/ia32-linux directory and symlink from /usr/share/qemu so it's possible to use the IA64 baselibs-x86 packages * Wed Sep 15 2004 - uli@suse.de - removed unnecessary dependency on private glibc symbol (bug #44864) * Fri Aug 06 2004 - uli@suse.de - update -> 0.6.0 (fixes for several OSs, improvements in emulated hardware (IDE, PCI, network, VGA, APM, PowerMac), minor fixes, tool for conversion of VMware images) * Tue May 11 2004 - uli@suse.de - update -> 0.5.5 (contains ARM, utime() fixes and several others) - make uname() return target machine name (fixes config.guess, rpm etc.) - fake sigaltstack() (fixes m4) - enabled x86-64 * Wed May 05 2004 - uli@suse.de - fixed ARM emulation bug * Wed Apr 28 2004 - uli@suse.de - build with -fno-unit-at-a-time (fixes PPC system emulator) * Wed Apr 28 2004 - uli@suse.de - update -> 0.5.4 (runs Linux/PPC, several fixes) * Mon Apr 19 2004 - uli@suse.de - initial package