Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2020-01-13 Thread Tom Stellard
On 01/13/2020 06:20 AM, Vít Ondruch wrote: > > Dne 11. 01. 20 v 5:46 Tom Stellard napsal(a): >> On 01/08/2020 11:28 PM, Miro Hrončok wrote: >>> On 08. 01. 20 23:47, Tom Stellard wrote: I suspect that if I can find some way to set the CC and CXX environment variables for all builds, not j

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2020-01-13 Thread Vít Ondruch
Dne 11. 01. 20 v 5:46 Tom Stellard napsal(a): > On 01/08/2020 11:28 PM, Miro Hrončok wrote: >> On 08. 01. 20 23:47, Tom Stellard wrote: >>> I suspect that if I can find some way to set the CC and CXX environment >>> variables for all builds, not just ones using autoconf, cmake or meson, >>> that m

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2020-01-10 Thread Tom Stellard
On 01/08/2020 11:28 PM, Miro Hrončok wrote: > On 08. 01. 20 23:47, Tom Stellard wrote: >> I suspect that if I can find some way to set the CC and CXX environment >> variables for all builds, not just ones using autoconf, cmake or meson, >> that might help cut down on the number of packages that sti

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2020-01-09 Thread Nicolas Chauvet
Le jeu. 9 janv. 2020 à 17:42, Tom Stellard a écrit : > > On 01/08/2020 11:40 PM, Igor Gnatenko wrote: > > So this just means that packages do not respect the environment. What about > > fixing them instead of trying to hack the environment? > > > > Do you mean that packages should be updated to r

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2020-01-09 Thread Tom Stellard
On 01/08/2020 11:40 PM, Igor Gnatenko wrote: > So this just means that packages do not respect the environment. What about > fixing them instead of trying to hack the environment? > Do you mean that packages should be updated to respect the __cc and __cxx macros? -Tom > On Wed, Jan 8, 2020, 2

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2020-01-08 Thread Igor Gnatenko
So this just means that packages do not respect the environment. What about fixing them instead of trying to hack the environment? On Wed, Jan 8, 2020, 23:53 Tom Stellard wrote: > On 12/23/2019 11:59 AM, Tom Stellard wrote: > > On 12/21/2019 02:30 PM, Tomasz Kłoczko wrote: > >> > >> > >> On Sat,

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2020-01-08 Thread Miro Hrončok
On 08. 01. 20 23:47, Tom Stellard wrote: I suspect that if I can find some way to set the CC and CXX environment variables for all builds, not just ones using autoconf, cmake or meson, that might help cut down on the number of packages that still use gcc. I'm just not quite sure how to implement

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2020-01-08 Thread Tom Stellard
On 12/23/2019 11:59 AM, Tom Stellard wrote: > On 12/21/2019 02:30 PM, Tomasz Kłoczko wrote: >> >> >> On Sat, 21 Dec 2019 at 00:37, Neal Gompa > > wrote: >> [..] >> >> I believe it's also used by the %cmake and %meson macros. >> >> >> Yep. >> Look on the output of the

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-23 Thread Tom Stellard
On 12/21/2019 02:30 PM, Tomasz Kłoczko wrote: > > > On Sat, 21 Dec 2019 at 00:37, Neal Gompa > wrote: > [..] > > I believe it's also used by the %cmake and %meson macros. > > > Yep. > Look on the output of the “rpm -E %cmake” and you will find that to switch to

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-21 Thread Tomasz Kłoczko
On Sat, 21 Dec 2019 at 00:37, Neal Gompa wrote: [..] > I believe it's also used by the %cmake and %meson macros. Yep. Look on the output of the “rpm -E %cmake” and you will find that to switch to other C and C++ compilers all what you need to do is redefine %__cc and %__cxx macros, The same is

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Neal Gompa
On Fri, Dec 20, 2019 at 5:25 PM Tom Stellard wrote: > > On 12/20/2019 03:20 PM, Neal Gompa wrote: > > On Fri, Dec 20, 2019 at 5:19 PM Tom Stellard wrote: > >> > >> On 12/20/2019 02:01 PM, Neal Gompa wrote: > >>> On Fri, Dec 20, 2019 at 3:24 PM Tom Stellard wrote: > > On 12/20/2019 03:3

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Tom Stellard
On 12/20/2019 03:20 PM, Neal Gompa wrote: > On Fri, Dec 20, 2019 at 5:19 PM Tom Stellard wrote: >> >> On 12/20/2019 02:01 PM, Neal Gompa wrote: >>> On Fri, Dec 20, 2019 at 3:24 PM Tom Stellard wrote: On 12/20/2019 03:33 AM, Nicolas Chauvet wrote: > Le jeu. 19 déc. 2019 à 22:44, Ben

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Neal Gompa
On Fri, Dec 20, 2019 at 5:19 PM Tom Stellard wrote: > > On 12/20/2019 02:01 PM, Neal Gompa wrote: > > On Fri, Dec 20, 2019 at 3:24 PM Tom Stellard wrote: > >> > >> On 12/20/2019 03:33 AM, Nicolas Chauvet wrote: > >>> Le jeu. 19 déc. 2019 à 22:44, Ben Cotton a écrit : > > https://fedora

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Tom Stellard
On 12/20/2019 02:01 PM, Neal Gompa wrote: > On Fri, Dec 20, 2019 at 3:24 PM Tom Stellard wrote: >> >> On 12/20/2019 03:33 AM, Nicolas Chauvet wrote: >>> Le jeu. 19 déc. 2019 à 22:44, Ben Cotton a écrit : https://fedoraproject.org/wiki/Changes/Use-Update-Alternatives-For-usr-bin-cc

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Neal Gompa
On Fri, Dec 20, 2019 at 3:24 PM Tom Stellard wrote: > > On 12/20/2019 03:33 AM, Nicolas Chauvet wrote: > > Le jeu. 19 déc. 2019 à 22:44, Ben Cotton a écrit : > >> > >> https://fedoraproject.org/wiki/Changes/Use-Update-Alternatives-For-usr-bin-cc > >> > >> == Summary == > >> Modify the gcc package

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Tom Stellard
On 12/20/2019 05:27 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Dec 19, 2019 at 03:47:13PM -0600, Neal Gompa wrote: >>> == Release Notes == >>> The user /usr/bin/cc and /usr/bin/c++ symlinks are now managed by >>> update-alternatives. If you would like to change these symlinks to >>> point to

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Tom Stellard
On 12/20/2019 03:33 AM, Nicolas Chauvet wrote: > Le jeu. 19 déc. 2019 à 22:44, Ben Cotton a écrit : >> >> https://fedoraproject.org/wiki/Changes/Use-Update-Alternatives-For-usr-bin-cc >> >> == Summary == >> Modify the gcc package so that the /usr/bin/cc and /usr/bin/c++ >> symlinks are managed by

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Tom Stellard
On 12/19/2019 01:47 PM, Neal Gompa wrote: > On Thu, Dec 19, 2019 at 3:44 PM Ben Cotton wrote: >> >> https://fedoraproject.org/wiki/Changes/Use-Update-Alternatives-For-usr-bin-cc >> >> == Summary == >> Modify the gcc package so that the /usr/bin/cc and /usr/bin/c++ >> symlinks are managed by update

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Dec 19, 2019 at 03:47:13PM -0600, Neal Gompa wrote: > > == Release Notes == > > The user /usr/bin/cc and /usr/bin/c++ symlinks are now managed by > > update-alternatives. If you would like to change these symlinks to > > point to another compiler, like clang, for example, you can use these

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Nicolas Chauvet
Le jeu. 19 déc. 2019 à 22:44, Ben Cotton a écrit : > > https://fedoraproject.org/wiki/Changes/Use-Update-Alternatives-For-usr-bin-cc > > == Summary == > Modify the gcc package so that the /usr/bin/cc and /usr/bin/c++ > symlinks are managed by update-alternatives. > > == Owner == > * Name: [[User:t

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-20 Thread Miro Hrončok
On 19. 12. 19 22:47, Neal Gompa wrote: I don't know if I want *more* alternatives usage in Fedora. I like the fact that a basic buildroot is generally supposed to work without scriptlets... On the other hand, I think we're already using alternatives for ld... Aside from making it possible to swa

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-19 Thread Vitaly Zaitsev via devel
On 19.12.2019 22:42, Ben Cotton wrote: > Modify the gcc package so that the /usr/bin/cc and /usr/bin/c++ > symlinks are managed by update-alternatives. It seems to me that it has already been implemented in old Fedora releases as well as alternatives for text editors. Later it was decided to drop

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-19 Thread Robin Lee
On Fri, Dec 20, 2019 at 5:44 AM Ben Cotton wrote: > > https://fedoraproject.org/wiki/Changes/Use-Update-Alternatives-For-usr-bin-cc > > == Summary == > Modify the gcc package so that the /usr/bin/cc and /usr/bin/c++ > symlinks are managed by update-alternatives. > > == Owner == > * Name: [[User:ts

Re: Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-19 Thread Neal Gompa
On Thu, Dec 19, 2019 at 3:44 PM Ben Cotton wrote: > > https://fedoraproject.org/wiki/Changes/Use-Update-Alternatives-For-usr-bin-cc > > == Summary == > Modify the gcc package so that the /usr/bin/cc and /usr/bin/c++ > symlinks are managed by update-alternatives. > > == Owner == > * Name: [[User:ts

Fedora 32 System-Wide Change proposal: Use update-alternatives for /usr/bin/cc and /usr/bin/c++

2019-12-19 Thread Ben Cotton
https://fedoraproject.org/wiki/Changes/Use-Update-Alternatives-For-usr-bin-cc == Summary == Modify the gcc package so that the /usr/bin/cc and /usr/bin/c++ symlinks are managed by update-alternatives. == Owner == * Name: [[User:tstellar| Tom Stellard]] * Email: == Detailed Description == The gc