Author: gb Date: Tue Feb 6 19:11:15 2007 New Revision: 116890 Added: packages/cooker/qemu/current/SOURCES/kqemu-1.3.0pre10-kqemu-use-udev.patch Modified: packages/cooker/qemu/current/SPECS/qemu.spec
Log: SILENT use udev by default (auto-create the device) Added: packages/cooker/qemu/current/SOURCES/kqemu-1.3.0pre10-kqemu-use-udev.patch ============================================================================== --- (empty file) +++ packages/cooker/qemu/current/SOURCES/kqemu-1.3.0pre10-kqemu-use-udev.patch Tue Feb 6 19:11:15 2007 @@ -0,0 +1,21 @@ +--- kqemu-1.3.0pre10/kqemu-linux.c.kqemu-use-udev 2007-02-05 23:57:37.000000000 +0100 ++++ kqemu-1.3.0pre10/kqemu-linux.c 2007-02-06 21:00:23.000000000 +0100 +@@ -43,6 +43,9 @@ + #define pfn_to_page(pfn) (mem_map + (pfn)) + #endif + ++/* Mandriva Linux shipped with udev since 2.6.3 */ ++#define HAVE_UDEV (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,3)) ++ + #ifdef PAGE_KERNEL_EXEC + #if defined(__i386__) + /* problem : i386 kernels usually don't export __PAGE_KERNEL_EXEC */ +@@ -62,7 +65,7 @@ int page_alloc_count; + + /* if 0 is used, then devfs/udev is used to automatically create the + device */ +-int major = 250; ++int major = HAVE_UDEV ? 0 : 250; + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) + module_param(major, int, 0); + #else Modified: packages/cooker/qemu/current/SPECS/qemu.spec ============================================================================== --- packages/cooker/qemu/current/SPECS/qemu.spec (original) +++ packages/cooker/qemu/current/SPECS/qemu.spec Tue Feb 6 19:11:15 2007 @@ -50,6 +50,7 @@ Patch13: qemu-0.8.1-fix-errno-tls.patch Patch14: qemu-0.8.3-dont-strip.patch Patch15: qemu-0.8.3-x86_64-opts.patch +Patch100: kqemu-1.3.0pre10-kqemu-use-udev.patch License: GPL URL: http://fabrice.bellard.free.fr/qemu/ @@ -125,6 +126,10 @@ %patch14 -p1 -b .dont-strip %patch15 -p1 -b .x86_64-opts +cd kqemu-%{kqemu_fullver} +%patch100 -p1 -b .kqemu-use-udev +cd .. + %build # don't use -mtune=generic if it is not supported if ! echo | %{__cc} -mtune=generic -xc -c - -o /dev/null 2> /dev/null; then
