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 swap the system compiler with
alternatives, what benefit do we get? Are there other, less script-y
approaches that we could use?

We could have a cc-is-gcc and cc-is-clang conflicting packages with /ur/bin/cc 
and:


 - require /usr/bin/cc from gcc and from clang
 - suggest cc-is-gcc from gcc
 - suggest cc-is-clang from clang

That gets rid of the scriplets, but creates a nontrivial resolving chaos. Also when installing gcc and clang at the same time, we would not be able to trivially give cc-is-gcc higher priority unless we maybe suggest it from fedora-release, but that's... meh.

We could mix in some recommends, but the current behavior would probably try to install it on every upgrade, so not sure if that works.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to