On Fri, Aug 12, 2016 at 11:53 AM, Stephan Kulow
On 12.08.2016 05:30, Andrei Borzenkov wrote:
One step is missing in example - creating (empty) file for %ghost to work - %{buildroot}%{_sysconfdir}/alternatives/vim. This should obviously happen under buildroot.
You only need this in ancient rpm versions.
Why do we need to create directory then?
What I am unsure - I was under impression that link target is managed by update-alternatives too, i.e. in this case /usr/bin/vim is created by update-alternatives --install. In this case it probably has to be %ghost as well.
No, /usr/bin/vim is a link to /etc/alternatives is a link shared in all packages owning vim.
Yes, I understand that, but what I mean - update-alternatives --install will create /usr/bin/vim as link to /etc/alternatives/vim anyway. So is it necessary to ship it in package at all? This simplifies packaging by removing one more step. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org