Re: Virtual provides and/or conflicts for alternate sets of packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23. 07. 25 13:17, Jan Stanek wrote:
Hello Fedora!

...
```
%package bin
Provides: alternate(nodejs-bin) = %{node_full_version}
Conflicts: alternate(nodejs-bin)
```

I did not find anything usable in the packaging guidelines (since they
still recommend using update-alternatives for this sort of thing).

WDYT? Is using this combination of Provides and Conflicts acceptable?
If so, what about the naming and/or introducing the `alternate(X)`
designation?

I'd go with alternative-for(nodejs-bin). There's even code in dnf that will tell you the options if you try to install nodejs-bin (unless the metapackage is called that).

You can try it out in RHEL 8. But the code made it to dnf5 as well [1].

  $ mock -r rhel-8-x86_64 --dnf-cmd install python
  ...
  No match for argument: python
There are following alternatives for "python": python2, python3.11, python3.12, python36, python38, python39

[1] https://github.com/rpm-software-management/dnf5/blob/5.2.15.0/libdnf5/base/transaction.cpp#L294

--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok

--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux