Bug 994084 - Tracker bug: make packages own their symlinks in /etc/alternatives/*
Summary: Tracker bug: make packages own their symlinks in /etc/alternatives/*
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Deadline: 2016-10-01
Assignee: Víctor Cuadrado Juan
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 994250 994251 994252 994253 994254 994255 994256 994257 994258 994259 994260 994261 994262 994263 994264 994265 994266 994267 994268 994269 994270 994271 994272 994273 994274 994275 994276 994277 994278 994279 994280 994281 994282 994283 994284 994285 994286 994287 994288 994289 994290 994291 994292 994295
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-17 10:05 UTC by Víctor Cuadrado Juan
Modified: 2016-10-20 06:40 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Víctor Cuadrado Juan 2016-08-17 10:05: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
Comment 1 Todd R 2016-08-18 14:43:18 UTC
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.
Comment 2 Víctor Cuadrado Juan 2016-08-19 10:18:53 UTC
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
Comment 3 Víctor Cuadrado Juan 2016-08-23 09:54:52 UTC
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.
Comment 4 Chenzi Cao 2016-10-20 06:40:04 UTC
Victor, I'm assigning this to you now, thanks.