[Bug 849251] New: zypper: always installs a package not required by anything
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c0 Summary: zypper: always installs a package not required by anything Classification: openSUSE Product: openSUSE 13.1 Version: RC 2 Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: jengelh@inai.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- What I did: zypper dup --no-r (--no-recommends) What I observed: zypper always installs libyui-ncurses5. As I already use --no-r (--no-recommends), it would seems that this behavior is not the cause of Recommends: lines in .spec files. What I expected: Do not install libyui-ncurses5. Log: v-suse:/var/log # zypper dup --no-r Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command. Loading repository data... Reading installed packages... Computing distribution upgrade... The following NEW package is going to be installed: libyui-ncurses5 1 new package to install. Overall download size: 287.9 KiB. After the operation, additional 1.0 MiB will be used. Continue? [y/n/? shows all options] (y): ^C v-suse:/var/log # rpm -q zypper libzypp zypper-1.9.3-1.1.x86_64 libzypp-13.8.1-1.1.x86_64 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c1 --- Comment #1 from Jan Engelhardt <jengelh@inai.de> 2013-11-06 19:04:06 CET --- Created an attachment (id=566371) --> (http://bugzilla.novell.com/attachment.cgi?id=566371) /var/log/zypp* -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c2 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Michael Andres <ma@suse.com> 2013-11-07 12:05:31 CET --- Yast needs a libyui-ncurses. The installed libyui-ncurses4 would be sufficient, but the package is dropped in openSUSE-13.1. In this case the solver prefers to switch to the newer libyui-ncurses5 to give you a supported package. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c3 --- Comment #3 from Jan Engelhardt <jengelh@inai.de> 2013-11-07 14:26:51 CET --- After doing `zypper dup --no-r`, `rpm -e libyui-ncurses5` succeeds without raising a dependency issue, so there are no users of libyui-ncurses5. In addition, yast is not even installed, so there is no need for libyui-ncurses5 either (like, fixing up a potential dependency issue). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c4 --- Comment #4 from Michael Schröder <mls@suse.com> 2013-11-08 10:02:22 UTC --- The installed "libyui5" package needs either libyui-ncurses4 or libyui-ncurses5. As libyui-ncurses4 is orphaned, the solver installs libyui-ncurses5. 'rpm -e libyui-ncurses5' succeeds because you still have libyui-ncurses4 installed, but the solver prefers to resolve dependencies with "non-orphaned" packages. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c5 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |gs@suse.com Component|libzypp |libzypp Resolution|INVALID | Product|openSUSE 13.1 |openSUSE 12.3 Target Milestone|--- |Final --- Comment #5 from Michael Andres <ma@suse.com> 2013-11-08 11:48:46 CET --- - libyui5 requires 'yui_backend = 5' Unfortunately the old libyui-ncurses4 provides 'yui_backend' (without a version it matches any version). So from the dependency POV it is ok to remove libyui-ncurses5, as libyui-ncurses4 also provides 'yui_backend'( = 5). Though that's probably not what the libyui-ncurses maintainer intended. @Gabi, Thomas: In case the old libyui-*4 packages are still maintained, please try to switch to version dependencies ('yui_backend = 4') if possible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c6 Lukas Ocilka <locilka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvidner@suse.com --- Comment #6 from Lukas Ocilka <locilka@suse.com> 2013-11-08 13:58:32 UTC --- Martin, please, have a look at this bug (Qt deps). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|zypp-maintainers@forge.prov |tgoettlicher@suse.com |o.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c Lukas Ocilka <locilka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|tgoettlicher@suse.com |mvidner@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c7 --- Comment #7 from Jan Engelhardt <jengelh@inai.de> 2013-11-08 15:39:23 CET ---
The installed "libyui5" package needs either the solver prefers to resolve dependencies with "non-orphaned" packages.
That is very interesting :) I remember that zypper would automatically kill orphaned packages in such a way that a `zypper dup` might only show removals, something like --- Computing distribution upgrade... The following packages will be removed: libgmpxx3 1 package to remove. Continue? --- Which would hint towards openSUSE having a file in the install media for a list of recently-orphaned packages. Would this observation be correct? If so, libyui-ncurses4 should have been added to this list (too late for GM now, so…"oh well, next time"). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c8 Martin Vidner <mvidner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|REOPENED |NEEDINFO CC| |ma@suse.com InfoProvider| |jengelh@inai.de --- Comment #8 from Martin Vidner <mvidner@suse.com> 2013-11-08 15:50:42 CET --- (Michael, there's a zypp question above) Thanks for the report! This actually explains an issue that I had: installing libyui5 from YaST:Head onto 12.3 did not upgrade the widget-specific plugins from 4 to 5 and yast would crash. Of course it was not hard to upgrade manually so I forgot about the issue. On another machine I did a dup from 12.2(!) to 13.1 and all libyui packages were updated to v5. Jan, can you describe how you arrived at this problem? I want to assess how likely people are going to run into it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c9 Jan Engelhardt <jengelh@inai.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|jengelh@inai.de | --- Comment #9 from Jan Engelhardt <jengelh@inai.de> 2013-11-08 17:22:32 CET ---
can you describe how you arrived at this problem?
1. Take a 12.3 system, and set 13.1 in /etc/zypp/repos.d 2. `zypper up --no-r` (instead of dup). libyui4 and the old yast remains, because they were unfavorable solutions to the solver (which is expected). 3. `zypper dup --no-r`. libyui4 is NOT proposed for removal. If instead one were to do `zypper dup` in step 2, libyui4 would be correctly proposed for removal. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c10 Martin Vidner <mvidner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX Summary|zypper: always installs a |zypper: always installs a |package not required by |libyui package seemingly |anything |not required by anything --- Comment #10 from Martin Vidner <mvidner@suse.com> 2013-11-08 17:31:11 CET --- OK. I think the up-dup scenario is rather uncommon (correct me if I am wrong) so I think we don't need to fix this with an online update to libyui4 (in 12.3). It would be tricky anyway because generally it is not allowed to change dependencies in updates. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c11 --- Comment #11 from Jan Engelhardt <jengelh@inai.de> 2013-11-08 17:36:40 CET --- The question still is: how did zypper come to the conclusion that it has to remove libyui4, and why does not it conclude the same in the up-dup case? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c12 --- Comment #12 from Michael Andres <ma@suse.com> 2013-11-08 18:05:03 CET --- `rpm -q openSUSE-release --provides` The openSUSE-release package contains a special list of weakremover() provides. They list packages which are dropped in 13.1 and should be removed from the system upon a dist upgrade 'dup', if they are no longer required. This list of dropped packages is evaluated, if the version of the installed product _changes_ during a 'dup'. It is not evaluated by other commands. libyui-ncurses4 is included in that list. In your case the drop list is not evaluated, because the product version does not change. But the case also shows that it actually makes sense to re-evaluate the dropped list on every 'dup'. I already implemented this for factory. It might go to 13.1 as update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c13 --- Comment #13 from Jan Engelhardt <jengelh@inai.de> 2013-11-08 18:42:49 CET ---
it actually makes sense to re-evaluate the dropped list on every 'dup'. I already implemented this for factory.
Cool, then we are done here :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c14 Jan Engelhardt <jengelh@inai.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libzypp |libzypp Resolution|WONTFIX |FIXED Product|openSUSE 12.3 |openSUSE 13.1 --- Comment #14 from Jan Engelhardt <jengelh@inai.de> 2013-11-08 18:44:27 CET --- [ftr, this was 13.1 rc2.] If we have it in factory, I am happy to consider this fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c15 --- Comment #15 from Swamp Workflow Management <swamp@suse.de> 2014-01-07 11:07:36 UTC --- openSUSE-RU-2014:0032-1: An update that has 7 recommended fixes can now be installed. Category: recommended (low) Bug References: 756195,849251,850907,852943,853065,853167,854784 CVE References: Sources used: openSUSE 13.1 (src): libzypp-13.8.5-6.1, zypper-1.9.6-8.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849251 https://bugzilla.novell.com/show_bug.cgi?id=849251#c Jan Engelhardt <jengelh@inai.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com