Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291007 - app-emulation/kvm, "kvm -disable-kvm" fails on hardened
Summary: app-emulation/kvm, "kvm -disable-kvm" fails on hardened
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-29 11:42 UTC by Xake
Modified: 2009-11-23 00:10 UTC (History)
0 users

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


Attachments
patch for kvm-ebuild, based on kvm-88-r1 (kvm-ebuild.patch,1.66 KB, patch)
2009-10-29 11:54 UTC, Xake
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2009-10-29 11:42:54 UTC
This bug is in short a filter-flags-issue.

qemu/kvms buildsystem links without CFLAGS (something that the devs of gcc even thinks is a bad idea) breaking everything depending on softmmu.

Attaching patch for ebuild to fix this with a sed, and to remove all ugly/bad code that is not needed anymore after this fix.
Comment 1 Xake 2009-10-29 11:54:09 UTC
Created attachment 208630 [details, diff]
patch for kvm-ebuild, based on kvm-88-r1

This patch adds QEMU_CFLAGS and CFLAGS to LINK in rules.mak,
removes the ${S} which repoman complains about,
places filter-flags before ./configure so it actually makes a difference (since ./configure set the CFLAGS for the buildsystem, using filter-flags afterwards makes no difference) and split it in two since filter-flags currently only handles on flag at a time,
and removed all of src_compile() since nothing in there is needed any more.

This is tested and confirmed to work unlike the current ebuild in portage on several x86 and x86_64 machines.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2009-11-22 23:52:14 UTC
fixed in qemu-kvm
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2009-11-23 00:10:04 UTC
fixed in app-emulation/qemu-kvm