[Bug 1031133] New: update-alternatives: spurious warnings with --remove
http://bugzilla.suse.com/show_bug.cgi?id=1031133 Bug ID: 1031133 Summary: update-alternatives: spurious warnings with --remove Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem Assignee: tchvatal@suse.com Reporter: jmatejek@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- when using update-alternatives in %postun, the following warnings are emitted: update-alternatives: warning: alternative /usr/bin/virtualenv-3.6 (part of link group virtualenv) doesn't exist; removing from list of alternatives update-alternatives: warning: /etc/alternatives/virtualenv is dangling; it will be updated with best choice update-alternatives: using /usr/bin/virtualenv-2.7 to provide /usr/bin/virtualenv (virtualenv) in auto mode This is because update-alternatives first checks if it must modify the auto-selection, and discovers that key files are missing so it auto-corrects the alternative choice. ...which is what I was telling it to do in the first place. Unfortunately, using "--quiet" also silences the one non-warning, "using <something> to provide <something> in auto mode" which seems like a thing we should keep. update-alternative should not warn about broken files when instructed to remove them. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1031133 http://bugzilla.suse.com/show_bug.cgi?id=1031133#c1 --- Comment #1 from Tomáš Chvátal <tchvatal@suse.com> --- Shouldn't this rather be given to upstream directly? Note that I agree this is a bug but I guess they might have more time to actually fix it... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1031133 http://bugzilla.suse.com/show_bug.cgi?id=1031133#c2 Tomáš Chvátal <tchvatal@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|tchvatal@suse.com |mcalabkova@suse.com --- Comment #2 from Tomáš Chvátal <tchvatal@suse.com> --- @Maggie: could you please check the code of update-alternatives and send a patch fixing this to upstream debian developers? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1031133 http://bugzilla.suse.com/show_bug.cgi?id=1031133#c3 --- Comment #3 from Marketa Calabkova <mcalabkova@suse.com> --- Propagated to upstream: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926228 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1031133 http://bugzilla.suse.com/show_bug.cgi?id=1031133#c5 --- Comment #5 from Marketa Calabkova <mcalabkova@suse.com> --- I got an answer: I checked this yesterday, and silencing the first warning would be trivial, the second one might need more code shuffling. But I'm actually wondering now whether that would be the correct thing to do at all. The problem I can see, is that this is really dealing with a broken alternative and symlinks, so I think the user should be notified, but will ponder about it a bit more. In any case ISTM that the real problem here is how u-a is being used in SUSE, which is not how u-a expects it to be operated. I'd say you'd need to switch to call it from %preun, which is what we are doing in Debian (removal is executed in prerm). This makes sure the alternative gets removed before the files disappear, so there's never a broken alternative (making the installation more robust), and u-a never sees that breakage as something that needs fixing, so no warnings will get emitted. The above is documented in the man page, I guess I could improve it to cover the rpm case. Thanks, Guillem So Debian tells us we are using update alternatives the wrong way :) . -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1031133 http://bugzilla.suse.com/show_bug.cgi?id=1031133#c6 Marketa Calabkova <mcalabkova@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #6 from Marketa Calabkova <mcalabkova@suse.com> --- Fixing this bug would be painful, as this affects many packages. It is just a warning after all, so let us ignore it :) . -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1031133 http://bugzilla.suse.com/show_bug.cgi?id=1031133#c7 --- Comment #7 from Marketa Calabkova <mcalabkova@suse.com> --- And the answer was: Ok, thanks, I'll close this then. I'd still very much recommend you switch to the correct usage, because it would remove a warning that might confuse packagers and users alike within your distribution, it avoids potentially training them to ignore warnings, it makes the upgrade more robust as the alternatives are not dangling for a period of time during some package removals, and as you all are not too bothered with this problem, making this a long transition would (apparently) not be a problem by itself? Packagers would be confused much more if we started a long transition... -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com