File qemu-datadir.diff of Package kvm.openSUSE_12.1_Update
Index: qemu-kvm-0.15.0/configure
===================================================================
--- qemu-kvm-0.15.0.orig/configure
+++ qemu-kvm-0.15.0/configure
@@ -152,12 +152,12 @@ mingw32="no"
EXESUF=""
prefix="/usr/local"
mandir="\${prefix}/share/man"
-datadir="\${prefix}/share/qemu"
+datadir="\${prefix}/share/qemu-kvm"
docdir="\${prefix}/share/doc/qemu"
bindir="\${prefix}/bin"
libdir="\${prefix}/lib"
sysconfdir="\${prefix}/etc"
-confsuffix="/qemu"
+confsuffix="/qemu-kvm"
slirp="yes"
fmod_lib=""
fmod_inc=""
Index: qemu-kvm-0.15.0/os-posix.c
===================================================================
--- qemu-kvm-0.15.0.orig/os-posix.c
+++ qemu-kvm-0.15.0/os-posix.c
@@ -83,7 +83,7 @@ void os_setup_signal_handling(void)
/* Find a likely location for support files using the location of the binary.
For installed binaries this will be "$bindir/../share/qemu". When
running from the build tree this will be "$bindir/../pc-bios". */
-#define SHARE_SUFFIX "/share/qemu"
+#define SHARE_SUFFIX "/share/qemu-kvm"
#define BUILD_SUFFIX "/pc-bios"
char *os_find_datadir(const char *argv0)
{
Index: qemu-kvm-0.15.0/Makefile
===================================================================
--- qemu-kvm-0.15.0.orig/Makefile
+++ qemu-kvm-0.15.0/Makefile
@@ -263,8 +263,8 @@ ifdef CONFIG_POSIX
endif
install-sysconfig:
- $(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
- $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
+ $(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu-kvm"
+ $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu-kvm"
install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
$(INSTALL_DIR) "$(DESTDIR)$(bindir)"