Bugzilla – Bug 994084
Tracker bug: make packages own their symlinks in /etc/alternatives/*
Last modified: 2016-10-20 06:40:04 UTC
This is a tracker bug for making all packages using update-alternatives own their symlinks at `/etc/alternatives/*`. Problem: Currently there is a mix of owned and not owned files by packages in `/etc/alternatives/*` (just look at `rpm -qf /etc/alternatives/*`). Currently there seems to be a sizeable chunk of packages not declaring `%ghost %_sysconfdir/alternatives/<binary>`, as specified at [1]. Also, see discussion on opensuse-factory m-l [2]. Once the mass bug filling for the issue is done, I will wait until 1 October for maintainers to action on the bugs, and afterwards I will start fixing each package by hand. Cheers, [1] https://en.opensuse.org/openSUSE:Packaging_Multiple_Version_guidelines [2] https://lists.opensuse.org/opensuse-factory/2016-08/msg00218.html
There are multiple reasons this warning could appear. The alternatives not being marked as %ghost is just one of them. This could also be due to quotes around the alternatives invocation, no /etc/alternatives at all, wrong files being symlinked, and I have even seen issues where man files that are compressed automatically cause the warning.
As said in some bugs depending on this one, rpmlint hits a bug when checking for update-alternatives, where the quote (") around the update-alternatives command causes the problem. See [1] and [2] for rpmlint fix. [1] https://bugzilla.novell.com/show_bug.cgi?id=994259#c1 [2] https://bugzilla.novell.com/show_bug.cgi?id=994259#c2
Since packages failing the rpmlint check because of the quotes are correctly owning the symlinks, I have submitted a pull request with vcizek authored fix to the rpmlint-checks repo: https://github.com/openSUSE/rpmlint-checks/pull/12 I will close bugs related only to the buggy check, and wait for the rest of the bugs.
Victor, I'm assigning this to you now, thanks.