Package: kvm Version: 4-1 Severity: important Justification: fails to build from source Tags: patch
Hi, if I try to build kvm on debian-amd64, I receive an error message: cp -l qemu/amd64-softmmu/qemu /home/markus/build/kvm-4/debian/kvm/usr/bin/kvm cp: cannot stat `qemu/amd64-softmmu/qemu': No such file or directory Here is a patch that solves this problem, so you get a working kvm on debian-amd64. Regards, Markus -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (990, 'testing'), (400, 'unstable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17.14-ck Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Versions of packages kvm depends on: ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii libsdl1. 1.2.11-7 Simple DirectMedia Layer ii libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-1 universally unique id library ii qemu 0.8.1-1 fast processor emulator ii zlib1g 1:1.2.3-13 compression library - runtime kvm recommends no packages. -- no debconf information
diff -Nur kvm-4-old/debian/control kvm-4/debian/control --- kvm-4-old/debian/control 2006-11-27 00:45:07.000000000 +0100 +++ kvm-4/debian/control 2006-11-27 01:36:52.000000000 +0100 @@ -6,7 +6,7 @@ Standards-Version: 3.7.2 Package: kvm -Architecture: i386 +Architecture: i386 amd64 Depends: ${shlibs:Depends}, ${misc:Depends}, qemu Description: Full virtualization on x86 hardware KVM (for Kernel-based Virtual Machine) is a full virtualization solution for diff -Nur kvm-4-old/debian/rules kvm-4/debian/rules --- kvm-4-old/debian/rules 2006-11-27 00:45:07.000000000 +0100 +++ kvm-4/debian/rules 2006-11-27 01:36:38.000000000 +0100 @@ -164,7 +164,11 @@ cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules # Add here commands to install the package into debian/kvm. +ifneq "$(DEB_BUILD_ARCH)" "amd64" cp -l qemu/$(DEB_BUILD_ARCH)-softmmu/qemu $(CURDIR)/debian/kvm/usr/bin/kvm +else + cp -l qemu/x86_64-softmmu/qemu-system-x86_64 $(CURDIR)/debian/kvm/usr/bin/kvm +endif dh_install