Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299772 - gnome2.eclass should filter all -O? different than -O2
Summary: gnome2.eclass should filter all -O? different than -O2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-05 14:38 UTC by Pacho Ramos
Modified: 2010-01-05 17:16 UTC (History)
1 user (show)

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


Attachments
Ebuilds using gnome2.eclass (gnome2.eclass-consumers.txt,71.35 KB, text/plain)
2010-01-05 15:06 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2010-01-05 14:38:55 UTC
After checking bug 276549 and http://www.gentoo.org/proj/en/desktop/gnome/gnome-policy.xml#doc_chap2 , I think that would be interesting to try to force all gnome related ebuilds to build with -O2 instead of -O3, -Os...

The idea would be to modify gnome2.eclass from:
gnome2_src_compile() {
        has ${EAPI:-0} 0 1 && gnome2_src_configure "$@"
        emake || die "compile failure"
}

to something like (after inheriting flag-o-matic eclass of course ;-)):
gnome2_src_compile() {
        replace-flags -O? -O2
        has ${EAPI:-0} 0 1 && gnome2_src_configure "$@"
        emake || die "compile failure"
}

Best regards

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-01-05 14:44:59 UTC
Absolutely NOT.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-01-05 15:06:07 UTC
Created attachment 215301 [details]
Ebuilds using gnome2.eclass

It's not only gnome that's using gnome2.eclass. 
It would also break all debugging with -O0, -O1.
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-01-05 16:04:42 UTC
I agree. Flag-filtering has already been discussed extensively. Specific flags which do not work need to be disabled per-ebuild; never in such a widely-used eclass like gnome2.eclass
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2010-01-05 16:16:33 UTC
And please let toolchain know when you are filtering a flag...because you are merely ignoring a bug in gcc when you filter it :)
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-05 16:17:58 UTC
Just for the sake of it, I'll add that even if we constantly repeat that gnome herd and upstream do not support anything greater than -O2 it doesn't mean we will not look into bugs failing to meet this requirement and/or handover to gcc herd for further analysis.
Comment 6 Pacho Ramos gentoo-dev 2010-01-05 17:16:49 UTC
OK, thanks a lot for the information :-)