Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287308 - [patch] app-emulation/qemu-0.10.x/0.11.0 in portage does not work on hardened
Summary: [patch] app-emulation/qemu-0.10.x/0.11.0 in portage does not work 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: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-02 06:28 UTC by Xake
Modified: 2009-11-17 23:06 UTC (History)
0 users

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


Attachments
Fixes rules.mk do it includes $(CFLAGS) while linking, making filter-flags and alot of other things work. (qemu-0.10.6-link-with-cflags.patch,523 bytes, patch)
2009-10-02 06:30 UTC, Xake
Details | Diff
Patch for having the ebuild (qemu-0.10.6-ebuild.patch,910 bytes, patch)
2009-10-02 06:33 UTC, Xake
Details | Diff
Patch against qemu-0.11.0 using sed (qemu-0.11.0-ebuild.patch,690 bytes, patch)
2009-11-12 09:07 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-02 06:28:37 UTC
This is due to a missing $(CFLAG) in rules.mk which makes the build fail on amd64 and the binaries produce segfaults on x86.

Attaching patch for rules.mk and for ebuild
Comment 1 Xake 2009-10-02 06:30:03 UTC
Created attachment 205813 [details, diff]
Fixes rules.mk do it includes $(CFLAGS) while linking, making filter-flags and alot of other things work.
Comment 2 Xake 2009-10-02 06:33:58 UTC
Created attachment 205814 [details, diff]
Patch for having the ebuild

This patch also removes -fstack-protector from filter-flags.

The motivation for that is that filter-flags only handles one argument at a time, so -fstack-protector was not filtered to begin with, and it should not really be needed either.

If you decide remove it and someone complains in a bug, CC hardened and ask if it seems appropriate to put it back.
Comment 3 Xake 2009-11-12 09:07:09 UTC
Created attachment 209991 [details, diff]
Patch against qemu-0.11.0 using sed

I have changed the ebuild to do a sed instead of using a patch to get the linking right.

Please fix this, as qemu does not even compile currently on hardened x86_64.
Comment 4 Luca Barbato gentoo-dev 2009-11-17 23:06:34 UTC
Thank you for the ping on irc, committed