Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355589 - app-emulation/qemu-0.14.0 doesn’t build - missing scripts from /files
Summary: app-emulation/qemu-0.14.0 doesn’t build - missing scripts from /files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-02-19 16:50 UTC by Raffaello D. Di Napoli
Modified: 2011-06-18 03:21 UTC (History)
4 users (show)

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


Attachments
Failed build log (qemu-0.14.0.log,20.40 KB, text/plain)
2011-02-19 16:54 UTC, Raffaello D. Di Napoli
Details
Improved ebuild for QEMU 0.14.0 (qemu-0.14.0.ebuild,6.12 KB, text/plain)
2011-02-20 22:46 UTC, Raffaello D. Di Napoli
Details
Improved ebuild for QEMU 0.14.0 (qemu-0.14.0.ebuild.patch,3.43 KB, patch)
2011-02-20 22:53 UTC, Raffaello D. Di Napoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raffaello D. Di Napoli 2011-02-19 16:50:17 UTC
* ERROR: app-emulation/qemu-0.14.0 failed:
 *   qemu interface scripts missing
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 3585:  Called die
 * The specific snippet of code:
 *           use qemu-ifup && doexe "${FILESDIR}/qemu-ifup" "${FILESDIR}/qemu-ifdown" || die "qemu interface scripts missing";


Reproducible: Always

Steps to Reproduce:
1. emerge =app-emulation/qemu-0.14.0
Actual Results:  
Build fails.

Expected Results:  
Build succeeds.

qemu-kvm has a few scripts which need to be copied over to qemu.

In bug 304771 comment 8, I provided a fully working ebuild for 0.13.0, did anybody notice? I also tried to address some QA issues, in that.
Comment 1 Raffaello D. Di Napoli 2011-02-19 16:54:19 UTC
Created attachment 263069 [details]
Failed build log

Not really necessary, as it’s obvious what the problem is.
Comment 2 Cody Schafer 2011-02-20 21:30:07 UTC
I am also running into this issue.

Raffaello: can your 1.3.0 ebuild be used to work around it?
Comment 3 Zac Medico gentoo-dev 2011-02-20 22:10:37 UTC
I've committed the following logic fix to cvs:

--- qemu-0.14.0.ebuild  20 Feb 2011 03:26:03 -0000      1.2
+++ qemu-0.14.0.ebuild  20 Feb 2011 22:05:30 -0000
@@ -176,10 +176,10 @@
 
        if [ ! -z "${softmmu_targets}" ]; then
                exeinto /etc/qemu
-               use qemu-ifup && doexe \
+               use qemu-ifup && { doexe \
                        "${FILESDIR}/qemu-ifup" \
                        "${FILESDIR}/qemu-ifdown" \
-                       || die "qemu interface scripts missing"
+                       || die "qemu interface scripts missing" ; }
        fi
Comment 4 Raffaello D. Di Napoli 2011-02-20 22:46:32 UTC
Created attachment 263221 [details]
Improved ebuild for QEMU 0.14.0

Well, I see I was beaten in time. Also, I don’t know why I didn’t think about it earlier, but half an hour ago I found out that the files reported as missing are actually there. Then I found the patch posted here :)
Anyway, I’m still posting this.

I revised my prior ebuild for 0.13.0, now combining it with the previously-non-working 0.14.0.
This ebuild doesn’t depend on the kernel-headers or linux-info.eclass at all, since this plain QEMU, 100% userspace, no kernel modules involved. It also tries to do something about a few QA issues. And, the fix to the bug in original 0.14.0 is cleaner than the patch posted here, IMO.


Required files (to be put in /files) are:
1.  qemu-0.11.0-mips64-user-fix.patch
2.  qemu-0.12.3-include-madvise-defines.patch
3.  qemu-ifdown
4.  qemu-ifup
which can be found in app-emulation/qemu/files (1, 3, 4) and app-emulation/qemu-kvm/files (2).
Comment 5 Raffaello D. Di Napoli 2011-02-20 22:53:06 UTC
Created attachment 263223 [details, diff]
Improved ebuild for QEMU 0.14.0

Same ebuild, as a patch on the faulty 0.14.0 ebuild.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2011-02-22 19:00:09 UTC
Don't CC maintainers when you cannot assign bugs.
Comment 7 SpanKY gentoo-dev 2011-06-18 03:21:16 UTC
Zac's commit fixed the issue.  if you have a different bug, file a new report.