[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-02 Thread Vaeth
Ryan Hill dirtye...@gentoo.org wrote: If your build system sets -ffast-math or -fstrict-aliasing then the user can disable this by setting -fno-fast-math or -fno-strict-aliasing in their CFLAGS. Just because some flags have counter-flags by accident, this does not hold for all flags. It is

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-02 Thread Ryan Hill
On Fri, 2 Jul 2010 15:29:44 +0200 (CEST) Vaeth va...@mathematik.uni-wuerzburg.de wrote: Ryan Hill dirtye...@gentoo.org wrote: If your build system sets -ffast-math or -fstrict-aliasing then the user can disable this by setting -fno-fast-math or -fno-strict-aliasing in their CFLAGS.

Re: [gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-02 Thread Mike Frysinger
On Friday, July 02, 2010 16:39:57 Ryan Hill wrote: On Fri, 2 Jul 2010 15:29:44 +0200 (CEST) Vaeth wrote: Ryan Hill wrote: If your build system sets -ffast-math or -fstrict-aliasing then the user can disable this by setting -fno-fast-math or -fno-strict-aliasing in their CFLAGS.

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Vaeth
(Sorry that this mail does not contain the proper References:; I am not a regular reader of this list and therefore cannot reply). Ryan Hill dirtye...@gentoo.org wrote: USE flags should not affect CFLAGS unless there is a very good reason A valid reason should be that upstream would prefer to

Re: [gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Mike Frysinger
On Thursday, July 01, 2010 08:53:19 Vaeth wrote: The debug USE flag in eix is also about convenience for the user: If eix segfaults, it prints instructions how to produce a backtrace in such a way which is most likely useful for upstream to locate the problem. Currently, these instructions

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Ryan Hill
On Thu, 1 Jul 2010 14:53:19 +0200 (CEST) Vaeth va...@mathematik.uni-wuerzburg.de wrote: (Sorry that this mail does not contain the proper References:; I am not a regular reader of this list and therefore cannot reply). Ryan Hill dirtye...@gentoo.org wrote: USE flags should not affect

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Nikos Chantziaras
On 07/01/2010 11:00 PM, Ryan Hill wrote: [...] The way to control compiler flags in Gentoo is CFLAGS. That is true. However, there's a problem; you can control package options of individual packages with USE flags, but you can't control compilation switches of individual packages with

Re: [gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Alec Warner
On Thu, Jul 1, 2010 at 1:04 PM, Nikos Chantziaras rea...@arcor.de wrote: On 07/01/2010 11:00 PM, Ryan Hill wrote: [...] The way to control compiler flags in Gentoo is CFLAGS. That is true.  However, there's a problem; you can control package options of individual packages with USE flags,

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Vaeth
Ryan Hill dirtye...@gentoo.org wrote: Upstream is free to use whatever CFLAGS they see fit, as long as the user has the option of disabling them. This is simply done by appending the user's CFLAGS to those of the build system. Since it is obvious that by _appending_ only the user's CFLAGS to

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Vaeth
Nikos Chantziaras rea...@arcor.de wrote: If you use portage than you can control per-package CFLAGS using bashrc and /etc/portage/env or similar functionality. This is correct, but the problem is that an ebuild author or upstream cannot set a default here: IMHO, it shouldn't be necessary for

Re: [gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Alec Warner
On Thu, Jul 1, 2010 at 3:14 PM, Vaeth va...@mathematik.uni-wuerzburg.de wrote: Nikos Chantziaras rea...@arcor.de wrote: If you use portage than you can control per-package CFLAGS using bashrc and /etc/portage/env or similar functionality. This is correct, but the problem is that an ebuild

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Ryan Hill
On Thu, 1 Jul 2010 23:44:17 +0200 (CEST) Vaeth va...@mathematik.uni-wuerzburg.de wrote: Ryan Hill dirtye...@gentoo.org wrote: Upstream is free to use whatever CFLAGS they see fit, as long as the user has the option of disabling them. This is simply done by appending the user's CFLAGS to

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Ryan Hill
On Thu, 01 Jul 2010 23:04:10 +0300 Nikos Chantziaras rea...@arcor.de wrote: On 07/01/2010 11:00 PM, Ryan Hill wrote: [...] The way to control compiler flags in Gentoo is CFLAGS. That is true. However, there's a problem; you can control package options of individual packages with USE

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-07-01 Thread Duncan
Ryan Hill posted on Thu, 01 Jul 2010 19:48:49 -0600 as excerpted: We've had per-package CFLAGS for quite a long time now. Maybe we need to advertise this a little more? There would certainly be a market for some util to manage all the per-package options that we have scattered around in

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-06-30 Thread Jeremy Olexa
On Wed, 30 Jun 2010 17:09:00 +0200, Diego E. 'Flameeyes' Pettenò flamee...@gentoo.org wrote: Please check the linked documentation or my blog post[1] on the matter if you want to understand the reasoning. I'll be dropping the flag and its context from now on if I stumble across it, without

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-06-30 Thread Paweł Hajdan, Jr.
On 6/30/10 5:09 PM, Diego E. 'Flameeyes' Pettenò wrote: Please check the linked documentation or my blog post[1] on the matter if you want to understand the reasoning. Could you rather add these guidelines to the QA project webpage? I wouldn't consider a blog post a documentation of a policy

Re: [gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-06-30 Thread Mike Frysinger
On Wednesday, June 30, 2010 19:25:32 Jeremy Olexa wrote: On Wed, 30 Jun 2010 17:09:00 +0200, Diego E. 'Flameeyes' Pettenò wrote: Please check the linked documentation or my blog post[1] on the matter if you want to understand the reasoning. I'll be dropping the flag and its context from now

[gentoo-dev] Re: [gentoo-dev-announce] debug USE flag misuse

2010-06-30 Thread Ryan Hill
On Wed, 30 Jun 2010 23:25:32 + Jeremy Olexa darks...@gentoo.org wrote: What is the consensus on if the metadata.xml specifies that it will add CFLAGS? Surely it is not as black/white as the global suggests..? local:debug:app-portage/eix: Build with CXXFLAGS/LDFLAGS for debugging