Dne 20. 09. 21 v 9:19 Stefan Schubert napsal(a):
One additional benefit of libalternatives is that it does not create entries in the /etc directory anymore. In the future the /etc directory will be used for entries/changes ONLY which have been done by the administrator and do not belong to packages or have been created by package installation.
I am not sure whether this is the right way to do (linking all binaries into one shared binary? Are we missing a need for some more fundamental change? Does /usr/bin serve as well?), but yes, update-alternatives is pretty painful, so let's try something else, it couldn't be that much worse, and yes configuration via text file always beats configuration via symlinks, so let's do it.
This list includes a lot of python packages. Python packages are using nice RPM macros for handling update-alternatives stuff. Currently the fixes are made manually in the spec files and it will not be done by macros anymore.
??? Why you cannot push those %ifs (which I am not sure are correct, don't we want to have this working in SLE-15SP4 as well?) to our macros?
Now I will patch the alternatives macros or will write new one in order to simplify it again.
Looking forward to your pull request on python-rpm-macros then. Best, Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mcepl@ceplovi.cz GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 La vita è una combinazione di magia e pasta. -- Federico Fellini