On Thu, Aug 11, 2016 at 12:27 PM, Víctor Cuadrado Juan
Hi everyone!
Problem: Currently the files at /etc/alternatives/* are a mix of files owned by some packages, and not owned by any package: ...
Upstream's usage is consistent with what update-alternatives(8) implies and what common sense says. In the wiki [1] there's some mention to update-alternatives, and it contains a mention to add `%ghost %_sysconfdir/alternatives/foo`, which can explain why some packages own files there and why some not.
If a package owns the symlinks there, IMHO it overcomplicates things, such problems when updating a package, and forgetting to redo `update-alternatives --config`, etc. Also, there's a chance that it didn't use update-alternatives and it did set up the links manually; breaking the mechanism of update-alternatives.
As it stands right now, it seems wrong to me. Either we make all links owned by packages or not.
Installing actual links is definitely wrong.
I haven't filled any bug yet, since that would need to need a mass bug filling for all the packages that own files in /etc/alternatives/*.
I would love to gather some ideas and consensus on this, and ideally, get a policy on how update-alternatives should be used, and have an rpmlint check written/improved so we can start filling bugs per package.
I think having them %ghost'ed makes sense as it offers additional cleanup possibility on uninstall. I have seen far too many dangling links in /etc/alternatives. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org