First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 147876
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Andrew Ross (RETIRED) <aross@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Richard Benjamin Voigt <richardvoigt@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
xen-emerge-info emerge --info application/octet-stream Richard Benjamin Voigt 2006-09-16 19:45 0000 5.78 KB Details
xen-test-gcc-flag-stack-protector.patch patch for app-emulation/xen patch Richard Benjamin Voigt 2006-09-16 19:47 0000 637 bytes Details | Diff
xen-tools-test-gcc-flags.patch patch for app-emulation/xen-tools patch Richard Benjamin Voigt 2006-09-16 19:48 0000 1.34 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 147876 depends on: Show dependency tree
Bug 147876 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-09-16 19:44 0000
new gcc croaks on some flags that the xen and xen-tools ebuilds pass in. 
There's language in some of the subdirs to use test-gcc-flag, these patches add
it to all of them

------- Comment #1 From Richard Benjamin Voigt 2006-09-16 19:45:44 0000 -------
Created an attachment (id=97194) [edit]
emerge --info

emerge --info

------- Comment #2 From Richard Benjamin Voigt 2006-09-16 19:47:02 0000 -------
Created an attachment (id=97195) [edit]
patch for app-emulation/xen

makes xen/Rules.mk use test-gcc-flag to avoid invalid -fno-stack-protector and
-fno-stack-protector-all on new gcc

------- Comment #3 From Richard Benjamin Voigt 2006-09-16 19:48:20 0000 -------
Created an attachment (id=97196) [edit]
patch for app-emulation/xen-tools

use test-gcc-flag, and changes -nopie which my compiler rejects to -fno-pie
which it likes (but also filtered through test-gcc-flag)

------- Comment #4 From Andrew Ross (RETIRED) 2006-10-05 03:13:12 0000 -------
The CFLAGs you've indicated are only included if you're using the hardened USE
flag, which is intended for use only with the hardened profile. GCC 4.1 isn't
compatible with Hardened Gentoo, so this bug is invalid.

------- Comment #5 From Richard Benjamin Voigt 2006-10-06 22:14:30 0000 -------
Other packages, like gcc, force disable the hardened USE flag when appropriate.
 Should xen then also ignore the hardened USE flag when not using a hardened
profile?

On the other hand, what's the harm in changing the makefiles to use
test-gcc-flag?  Should have no effect when the option is needed, but
automatically remove it for non-hardened gcc (which has doesn't recognize the
options).

------- Comment #6 From Andrew Ross (RETIRED) 2006-10-06 23:03:15 0000 -------
(In reply to comment #5)
> Other packages, like gcc, force disable the hardened USE flag when appropriate.
>  Should xen then also ignore the hardened USE flag when not using a hardened
> profile?

How strange - it was my understanding that the hardened USE flag was masked on
non-hardened profiles, but this doesn't seem to be the case.

> On the other hand, what's the harm in changing the makefiles to use
> test-gcc-flag?  Should have no effect when the option is needed, but
> automatically remove it for non-hardened gcc (which has doesn't recognize the
> options).

test-gcc-flag is broken by design and fails when used with "no*" flags, so your
proposed patches break xen on hardened. It looks like this is why the hardened
USE flag was originally added to the ebuild.

I actually like the solution in
http://overlays.gentoo.org/dev/aross/changeset/16 , so unless anyone objects
I'll go with that.

------- Comment #7 From Richard Benjamin Voigt 2006-10-10 18:43:50 0000 -------
Looks like a really clean fix.  ++

------- Comment #8 From Andrew Ross (RETIRED) 2006-10-13 17:06:41 0000 -------
Fixed in app-emulation/xen-tools-3.0.2-r4, thanks.

First Last Prev Next    No search results available      Search page      Enter new bug