public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] conversion of USE=nocxx to USE=cxx
@ 2011-11-13 18:42 Mike Frysinger
  2011-11-13 21:42 ` Mike Gilbert
  2011-11-14 17:40 ` Mike Frysinger
  0 siblings, 2 replies; 9+ messages in thread
From: Mike Frysinger @ 2011-11-13 18:42 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

now that we have USE=cxx, and base/make.defaults has USE=cxx, i'd like to 
migrate gcc away from USE=nocxx.

since this can be a pickle, i'd propose toolchain.eclass grow the checks:
	- use cxx && use nocxx && die
	- use !cxx && use !nocxx && die

this way when i do cut over from USE=nocxx to USE=cxx, we don't end up with 
users missing C++ compilers simply because they have old make.conf settings 
that started out with:
	USE="-* ..."

there are other ebuilds in the tree now that have USE=nocxx, but i'll take 
care of converting them.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] conversion of USE=nocxx to USE=cxx
  2011-11-13 18:42 [gentoo-dev] conversion of USE=nocxx to USE=cxx Mike Frysinger
@ 2011-11-13 21:42 ` Mike Gilbert
  2011-11-14  3:49   ` [gentoo-dev] " Ryan Hill
  2011-11-14  4:37   ` [gentoo-dev] " Mike Frysinger
  2011-11-14 17:40 ` Mike Frysinger
  1 sibling, 2 replies; 9+ messages in thread
From: Mike Gilbert @ 2011-11-13 21:42 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

On 11/13/2011 01:42 PM, Mike Frysinger wrote:
> now that we have USE=cxx, and base/make.defaults has USE=cxx, i'd like to 
> migrate gcc away from USE=nocxx.
> 
> since this can be a pickle, i'd propose toolchain.eclass grow the checks:
> 	- use cxx && use nocxx && die
> 	- use !cxx && use !nocxx && die
> 
> this way when i do cut over from USE=nocxx to USE=cxx, we don't end up with 
> users missing C++ compilers simply because they have old make.conf settings 
> that started out with:
> 	USE="-* ..."
> 
> there are other ebuilds in the tree now that have USE=nocxx, but i'll take 
> care of converting them.
> -mike

www-client/google-chrome has RDEPEND=">=sys-devel/gcc-4.4.0[-nocxx]" to
ensure that we have a recent version of libstdc++. We basically need to
match Ubuntu LTS since that is what Google builds with.

If I understand you correctly, you are just going to add a "cxx" use
flag to gcc for some transitional period? If so, I can simply switch it
at some point after you add the new flag?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-dev] Re: conversion of USE=nocxx to USE=cxx
  2011-11-13 21:42 ` Mike Gilbert
@ 2011-11-14  3:49   ` Ryan Hill
  2011-11-14 15:43     ` Mike Gilbert
  2011-11-14  4:37   ` [gentoo-dev] " Mike Frysinger
  1 sibling, 1 reply; 9+ messages in thread
From: Ryan Hill @ 2011-11-14  3:49 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

On Sun, 13 Nov 2011 16:42:39 -0500
Mike Gilbert <floppym@gentoo.org> wrote:

> www-client/google-chrome has RDEPEND=">=sys-devel/gcc-4.4.0[-nocxx]" to
> ensure that we have a recent version of libstdc++. We basically need to
> match Ubuntu LTS since that is what Google builds with.

Ewwww.


-- 
fonts, gcc-porting,                  it makes no sense how it makes no sense
toolchain, wxwidgets                           but i'll take it free anytime
@ gentoo.org                EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] conversion of USE=nocxx to USE=cxx
  2011-11-13 21:42 ` Mike Gilbert
  2011-11-14  3:49   ` [gentoo-dev] " Ryan Hill
@ 2011-11-14  4:37   ` Mike Frysinger
  2011-11-14 19:00     ` Mike Gilbert
  1 sibling, 1 reply; 9+ messages in thread
From: Mike Frysinger @ 2011-11-14  4:37 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: Text/Plain, Size: 450 bytes --]

On Sunday 13 November 2011 16:42:39 Mike Gilbert wrote:
> If I understand you correctly, you are just going to add a "cxx" use
> flag to gcc for some transitional period? If so, I can simply switch it
> at some point after you add the new flag?

transition period:
http://sources.gentoo.org/www-client/google-chrome/google-chrome-17.0.932.0_alpha108826.ebuild?r1=1.1&r2=1.2

eventually you can drop the [-nocxx] dep, but it'll prob be a while.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] Re: conversion of USE=nocxx to USE=cxx
  2011-11-14  3:49   ` [gentoo-dev] " Ryan Hill
@ 2011-11-14 15:43     ` Mike Gilbert
  0 siblings, 0 replies; 9+ messages in thread
From: Mike Gilbert @ 2011-11-14 15:43 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

On 11/13/2011 10:49 PM, Ryan Hill wrote:
> On Sun, 13 Nov 2011 16:42:39 -0500
> Mike Gilbert <floppym@gentoo.org> wrote:
> 
>> www-client/google-chrome has RDEPEND=">=sys-devel/gcc-4.4.0[-nocxx]" to
>> ensure that we have a recent version of libstdc++. We basically need to
>> match Ubuntu LTS since that is what Google builds with.
> 
> Ewwww.
> 
> 

Thank you for that constructive criticism. It is a bit ugly. ;)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] conversion of USE=nocxx to USE=cxx
  2011-11-13 18:42 [gentoo-dev] conversion of USE=nocxx to USE=cxx Mike Frysinger
  2011-11-13 21:42 ` Mike Gilbert
@ 2011-11-14 17:40 ` Mike Frysinger
  1 sibling, 0 replies; 9+ messages in thread
From: Mike Frysinger @ 2011-11-14 17:40 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: Text/Plain, Size: 244 bytes --]

On Sunday 13 November 2011 13:42:43 Mike Frysinger wrote:
> now that we have USE=cxx, and base/make.defaults has USE=cxx, i'd like to
> migrate gcc away from USE=nocxx.

http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.478&r2=1.479
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] conversion of USE=nocxx to USE=cxx
  2011-11-14  4:37   ` [gentoo-dev] " Mike Frysinger
@ 2011-11-14 19:00     ` Mike Gilbert
  2011-11-14 20:03       ` Mike Frysinger
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Gilbert @ 2011-11-14 19:00 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]

On 11/13/2011 11:37 PM, Mike Frysinger wrote:
> On Sunday 13 November 2011 16:42:39 Mike Gilbert wrote:
>> If I understand you correctly, you are just going to add a "cxx" use
>> flag to gcc for some transitional period? If so, I can simply switch it
>> at some point after you add the new flag?
> 
> transition period:
> http://sources.gentoo.org/www-client/google-chrome/google-chrome-17.0.932.0_alpha108826.ebuild?r1=1.1&r2=1.2
> 
> eventually you can drop the [-nocxx] dep, but it'll prob be a while.
> -mike

Thanks.

Why do I need the [-nocxx] dep at this point? Everybody is going to end
up rebuilding gcc with the new use flag anyway.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] conversion of USE=nocxx to USE=cxx
  2011-11-14 19:00     ` Mike Gilbert
@ 2011-11-14 20:03       ` Mike Frysinger
  2011-11-14 20:42         ` Mike Gilbert
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Frysinger @ 2011-11-14 20:03 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: Text/Plain, Size: 1030 bytes --]

On Monday 14 November 2011 14:00:01 Mike Gilbert wrote:
> On 11/13/2011 11:37 PM, Mike Frysinger wrote:
> > On Sunday 13 November 2011 16:42:39 Mike Gilbert wrote:
> >> If I understand you correctly, you are just going to add a "cxx" use
> >> flag to gcc for some transitional period? If so, I can simply switch it
> >> at some point after you add the new flag?
> > 
> > transition period:
> > http://sources.gentoo.org/www-client/google-chrome/google-chrome-17.0.932
> > .0_alpha108826.ebuild?r1=1.1&r2=1.2
> > 
> > eventually you can drop the [-nocxx] dep, but it'll prob be a while.
> 
> Why do I need the [-nocxx] dep at this point? Everybody is going to end
> up rebuilding gcc with the new use flag anyway.

some people might, but not everyone.  if we remove the [-nocxx], and someone 
where to run `emerge google-chrome -u`, portage would fail with dependency 
errors.  i'd leave the dep in there for a while until most people have 
upgraded naturally.  perhaps after the next gcc stabilization.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] conversion of USE=nocxx to USE=cxx
  2011-11-14 20:03       ` Mike Frysinger
@ 2011-11-14 20:42         ` Mike Gilbert
  0 siblings, 0 replies; 9+ messages in thread
From: Mike Gilbert @ 2011-11-14 20:42 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]

On 11/14/2011 3:03 PM, Mike Frysinger wrote:
> On Monday 14 November 2011 14:00:01 Mike Gilbert wrote:
>> On 11/13/2011 11:37 PM, Mike Frysinger wrote:
>>> On Sunday 13 November 2011 16:42:39 Mike Gilbert wrote:
>>>> If I understand you correctly, you are just going to add a "cxx" use
>>>> flag to gcc for some transitional period? If so, I can simply switch it
>>>> at some point after you add the new flag?
>>>
>>> transition period:
>>> http://sources.gentoo.org/www-client/google-chrome/google-chrome-17.0.932
>>> .0_alpha108826.ebuild?r1=1.1&r2=1.2
>>>
>>> eventually you can drop the [-nocxx] dep, but it'll prob be a while.
>>
>> Why do I need the [-nocxx] dep at this point? Everybody is going to end
>> up rebuilding gcc with the new use flag anyway.
> 
> some people might, but not everyone.  if we remove the [-nocxx], and someone 
> where to run `emerge google-chrome -u`, portage would fail with dependency 
> errors.

Actually, it pulls in gcc[cxx], and rebuilds gcc. There is no dependency
error. We can prevent an unnecessary gcc rebuild by listing [-nocxx]
first however, so I committed that.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-14 20:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-13 18:42 [gentoo-dev] conversion of USE=nocxx to USE=cxx Mike Frysinger
2011-11-13 21:42 ` Mike Gilbert
2011-11-14  3:49   ` [gentoo-dev] " Ryan Hill
2011-11-14 15:43     ` Mike Gilbert
2011-11-14  4:37   ` [gentoo-dev] " Mike Frysinger
2011-11-14 19:00     ` Mike Gilbert
2011-11-14 20:03       ` Mike Frysinger
2011-11-14 20:42         ` Mike Gilbert
2011-11-14 17:40 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox