Dne 14. 07. 25 v 16:27 Jan Stanek napsal(a):
Hello everyone!On Fri, Jul 11, 2025 at 9:09 AM Vitaly Zaitsev via devel <devel@lists.fedoraproject.org> wrote:On 10/07/2025 13:14, Aoife Moloney via devel-announce wrote:We aim to move away from manual management of <code>/usr/bin/node</code>, <code>/usr/bin/npm</code>, and similar symlinks to leveraging update-alternatives system.AFAIK, the alternatives system doesn't work reliably on immutable (ostree) Fedora versions.Thanks for raising this issue; we of course forgot about rpm-ostree and what complications it could bring. This is a compelling argument to reconsider.
Perhaps somebody would not mind to update this guidelines section reflecting this information?
https://docs.fedoraproject.org/en-US/packaging-guidelines/Alternatives/In my reading, this section (kind of) promotes the alternatives, while this feedback suggest quite strongly against.
Vít
If you need to provide multiple /usr/bin/node symlinks, consider generating swappable packages: nodeAB-bin, nodeXY-bin, etc. Then users will be able to use dnf swap feature: sudo dnf swap nodeAB-bin nodeXY-bin --allowerasingAnd thanks for this idea as well – this would not occur to me instinctively, since I would assume that installing one stream (including the -bin package) would prevent installation of any other streams (as it would conflict with the other -bin package). Then I read up some more on weak dependencies and as it turns out, dnf is smart enough to remove any Recommended package from the transaction if it would cause a conflict. With this information, the swappable package approach seems doable. I'll update the wiki page with the feedback and we'll start experimenting with it. Best regards!
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- _______________________________________________ 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 Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue