Thank you, Vitaly and Fabio!

That makes sense, I didn't look on the issue from new user's view. Most
people who use vi/vim are aware of the differences and wanted vi/vim
just work if the other is not installed, so vi/vim are drop-in
replacements for them in this matter of speaking. And Vi is just a Vim
compiled more strictly nowadays, so it adds another confusion :) .

But speaking technically, they aren't drop-in replacements because of
different configuration options.

I will drop alternatives usage and use wrappers - then it will work for
immutable Fedoras too.

On 1/30/21 7:41 PM, Fabio Valentini wrote:
> On Sat, Jan 30, 2021 at 7:24 PM Peter Boy <p...@uni-bremen.de> wrote:
>>
>>
>>> Am 30.01.2021 um 17:45 schrieb Vitaly Zaitsev via devel 
>>> <devel@lists.fedoraproject.org>:
>>>
>>> On 30.01.2021 16:58, Peter Boy wrote:
>>>> But it’s perfectly usable for Fedora Workstation or Server and almost 
>>>> indispensable for some development projects, e.g. Java (and vi/vim for a 
>>>> terminal environment). Why should alternatives not be usable there?  Or 
>>>> what is a suitable  and adequate replacement?
>>> https://docs.fedoraproject.org/en-US/packaging-guidelines/Alternatives/
>> Thanks for the info. Unfortunately, I don’t see a connection to immutable 
>> Fedora (it is about drop-in, user configurable, etc). Or do I miss something?
> If you read the Packaging Guidelines, they actually explicitly mention
> that vi / vim are a bad example for using the alternatives system -
> because they're not drop-in replacements.
>
> Additionally, as far as I know, OSTree based Fedora variants do not
> execute any RPM scriptlets, but implement their own handling of e.g.
> ldconfig and such things.
> And alternatives is definitely not compatible with OSTree - according
> to these bug reports, at least Java alternatives are broken -
> apparently primarily because OSTree stores configuration in /var
> instead of /etc:
>
> - https://bugzilla.redhat.com/show_bug.cgi?id=1657367
> - https://github.com/coreos/rpm-ostree/issues/1614
>
>
> Fabio
> _______________________________________________
> 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

-- 
Zdenek Dohnal
Software Engineer
Red Hat Czech - Brno TPB-C


Attachment: OpenPGP_signature
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

Reply via email to