Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407193 - app-emulation/qemu-kvm-1.0-r3: Support Prefix
Summary: app-emulation/qemu-kvm-1.0-r3: Support Prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: PPC64 Linux
: Normal enhancement (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-06 23:01 UTC by Richard Yao (RETIRED)
Modified: 2012-03-06 23:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
app-emulation/qemu-kvm-1.0-r3 build failure (build.log,15.83 KB, text/plain)
2012-03-06 23:01 UTC, Richard Yao (RETIRED)
Details
app-emulation/qemu-kvm-9999 build failure (build.log,8.03 KB, text/plain)
2012-03-06 23:02 UTC, Richard Yao (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-03-06 23:01:33 UTC
Created attachment 304477 [details]
app-emulation/qemu-kvm-1.0-r3 build failure

I successfully built app-emulation/qemu-kvm-0.15.1-r1 on the current unsupported ppc64-linux running Fedora with a custom 3.1.0-rc9 kernel. This required the following change to the ebuild to support Gentoo Prefix:

--- a/qemu-kvm-0.15.1-r1.ebuild 2012-03-06 17:49:30.357227000 -0500
+++ b/qemu-kvm-0.15.1-r1.ebuild 2012-03-06 17:49:53.316282000 -0500
@@ -244,7 +244,7 @@ src_configure() {
 }
 
 src_install() {
-       emake DESTDIR="${D}" install || die "make install failed"
+       emake DESTDIR="${ED}" install || die "make install failed"
 
        if [ ! -z "${softmmu_targets}" ]; then
                insinto /$(get_libdir)/udev/rules.d/
@@ -272,7 +272,7 @@ src_install() {
        # FIXME: Need to come up with a solution for non-x86 based systems
        if use x86 || use amd64; then
                # Remove SeaBIOS since we're using the SeaBIOS packaged one
-               rm "${D}/usr/share/qemu/bios.bin"
+               rm "${ED}usr/share/qemu/bios.bin"
                dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
        fi
 }

app-emulation/qemu-kvm-1.0-r3 and app-emulation/qemu-kvm-9999 require similar patches, but unfortunately, they build issues.
Comment 1 Richard Yao (RETIRED) gentoo-dev 2012-03-06 23:02:06 UTC
Created attachment 304479 [details]
app-emulation/qemu-kvm-9999 build failure
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-03-06 23:06:06 UTC
qemu team: patch looks acceptable to me since ebuild is already EAPI3.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2012-03-06 23:34:53 UTC
Fixed in tree.