[Bug 1172896] New: Flood of "update-alternatives: warning: forcing reinstallation of alternative xxx because link group yyy is broken"
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896 Bug ID: 1172896 Summary: Flood of "update-alternatives: warning: forcing reinstallation of alternative xxx because link group yyy is broken" Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: arvidjaar@gmail.com QA Contact: qa-bugs@suse.de CC: coolo@suse.com Found By: --- Blocker: --- Since PR https://github.com/openSUSE/brp-check-suse/pull/31 installation of almost every package that uses alternatives results in: # update-alternatives: warning: forcing reinstallation of alternative /usr/lib/pk-gstreamer-install because link group gst-install-plugins-helper is broken # update-alternatives: warning: forcing reinstallation of alternative /usr/lib/X11/displaymanagers/gdm because link group default-displaymanager is broken # update-alternatives: warning: forcing reinstallation of alternative /usr/bin/pyroute2-cli-3.8 because link group pyroute2-cli is broken # update-alternatives: warning: forcing reinstallation of alternative /usr/bin/ss2-3.8 because link group ss2 is broken I count 187 in my /var/log/zypp/history. The reason is 1. update-alternatives creates and expects absolute symlink. 2. All packages that issue warnings include target target symlink (e.g. /usr/bin/pyroute2-cli-3.8) in RPM package as normal symlink (not ghost). This symlink is created as absolute symlink during rpm build (at least in those cases I checked) 3. due to above PR absolute symlink is replaced by relative symlink which gets installed (replacing symlink created by previous update-alternatives) 4. %post update-alternatives compares symlink target and complains that it does not match expected value and replaces it again with absolute symlink -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896
Paul Tannington
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896#c6
Fabian Vogt
(In reply to Tomáš Chvátal from comment #3)
We should probably force brp-check to not relativize the symlinks for u-a but I dunno how to achieve that (maybe a check if it points to /etc/alternatives/?)
Actually it already checks for them explicitly.
https://github.com/openSUSE/brp-check-suse/blob/ 8ff16cf99f0b18bf0dac683889c9c3c70e0bafd3/brp-25-symlink#L39
Yep, but that only ignores dangling links. It's still converted into a relative link down below. It would need "link_dest=$link_absolut" to avoid that. The change is because this condition was removed: # links crossing top level directory boundaries (/usr/* -> /etc/*) # are absolute links -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896#c7
--- Comment #7 from Stephan Kulow
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896#c8
--- Comment #8 from Tomáš Chvátal
So we need to except update-alternative links specifically? Or can we fix update-alternatives not to be a dick?
We could carry permanent suse patch to the u-a code as the dep people are quite backpushing our changes for it -> It might be saner to do it on the brp side. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896#c9
--- Comment #9 from Stephan Kulow
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896#c10
--- Comment #10 from Tomáš Chvátal
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896
Stephan Kulow
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896
http://bugzilla.opensuse.org/show_bug.cgi?id=1172896#c11
Stephan Kulow
participants (1)
-
bugzilla_noreply@suse.com