Package: qemubuilder Severity: wishlist Tags: patch Hi,
I tried to use qemubuilder with hurd-i386 but it failed to pass proper architecture to kvm/qemu after bootstrapping: "Your architecture hurd-i386 does not seem to be supported" Although I couldn't quite make it work yet, the above error can be dealt with attached patch. Patched qemubuilder correctly "forking qemu" after bootstrap stage if run with ARCHITECTURE=hurd-i386 Perhaps more work will be necessary to support Gnu Hurd but at least this is a small step forward. Thank you. Regards, Dmitry.
Author: Dmitry Smirnov <only...@member.fsf.org> Last-Update: 2012-02-22 Forwarded: no Description: partial support for Gnu Hurd "hurd-i386" This patch help to set qemu/kvm arch for "hurd-i386" architecture to prevent error "Your architecture hurd-i386 does not seem to be supported" --- a/qemuarch.c +++ b/qemuarch.c @@ -121,8 +121,10 @@ return "qemu-system-mips"; else if (!strcmp(arch, "mipsel")) return "qemu-system-mipsel"; - else if (!strcmp(arch, "i386") || - !strcmp(arch, "amd64")) + else if (!strcmp(arch, "i386") + || !strcmp(arch, "amd64") + || !strcmp(arch, "hurd-i386") + ) { /* we're leaking this memory, but don't care too much */ char* host_arch = get_host_dpkg_arch(); @@ -143,6 +145,8 @@ else return "qemu-system-x86_64"; } + else if (!strcmp(arch, "hurd-i386")) + return "qemu"; else if (!strcmp(arch, "powerpc")) return "qemu-system-ppc"; else if (!strcmp(arch, "sparc")) @@ -160,7 +164,8 @@ !strcmp(arch, "armel")) return "versatilepb"; else if (!strcmp(arch, "i386") || - !strcmp(arch, "amd64")) + !strcmp(arch, "hurd-i386") || + !strcmp(arch, "amd64")) return "pc"; else if (!strcmp(arch, "mips")|| !strcmp(arch, "mipsel"))
signature.asc
Description: This is a digitally signed message part.