Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic.sk@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Dying on some CFLAGS instead of filtering them.
Date: Sun, 09 Jul 2006 23:56:30
Message-Id: e8s4no$kn4$1@sea.gmane.org
In Reply to: [gentoo-dev] Dying on some CFLAGS instead of filtering them. by Denis Dupeyron
1 Denis Dupeyron wrote:
2
3 > In bug #139412, I ask Paul de Vriese why he thinks python should die
4 > on --fast-math instead of just filtering it. Here's his answer :
5 >
6 > "Denis, quite simple. -ffast-math is broken and short-sighted for a
7 > global flag.
8 > Filtering gives the shortsighted message that it works globally, while
9 > it is
10 > not suited for any package not specifically tested for it. As it breaks
11 > python,
12 > dieing makes people understand that it does not work on python. It is
13 > better
14 > than the alternative of not looking for it at all."
15
16 Ebuilds shouldn't die on anything according to the non-interactive portage
17 philosophy. I don't know how official that philosophy is though.
18
19 > This, for me, triggers 3 questions that are gentoo-dev@ material :
20 >
21 > 1) Should all ebuilds that currently filter --fast-math die on its
22 > presence instead of filtering it ?
23
24 No, that would be a major pain in the ass for anyone wanting to use -fast-math,
25 which does have legitimate uses.
26
27 > 2) If yes, are there any other flags that ebuilds should die on ?
28
29 There's a million, and they're constantly changing. For example,
30 -frename-registers is generally safe on GCC 3.4, broken in 4.0, and enabled by
31 default on 4.1.
32
33 > 3) Suppose that -ftracer, for example, is one of those, and knowing
34 > that enabling -fprofile-use enables -ftracer, shouldn't ebuilds also
35 > die on use of -fprofile-use ? It's only an example, this situation
36 > will exist for other pairs of flags.
37 >
38 > The hidden question behind these three is : shouldn't we have a
39 > "something" that enables us to safely handle this kind of situations ?
40 > Like some kind of system- and/or architecture-wide flag mask that
41 > could be overriden by the ebuild and/or the user (at his own risk) ?
42 > This could potentialy reduce the number of bugs that poor old bugzie
43 > has to cope with, and simplify ebuild writing and maintenance.
44
45 Users playing with CFLAGS get to keep the pieces. Trying to dummy-proof the
46 system doesn't help anyone but the dummies. ;)
47
48 --de.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies