[Bug 529662] New: Handling of recommended packages is broken
http://bugzilla.novell.com/show_bug.cgi?id=529662 Summary: Handling of recommended packages is broken Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: binner@kde.org QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090730 SUSE/3.5.2-1.2 Firefox/3.5.2 Neither "zypper up --recommends" installs recommended packages nor does YaST select them automatically: linux-8zih:~ # rpm -q --recommends konqueror konqueror-plugins dolphin linux-8zih:~ # rpm -q --whatprovides konqueror-plugins no package provides konqueror-plugins linux-8zih:~ # zypper up --recommends Loading repository data... Reading installed packages... Nothing to do. linux-8zih:~ # zypper in konqueror-plugins Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: konqueror-plugins 1 new package to install. Overall download size: 591.0 KiB. After the operation, additional 1.6 MiB will be used. Continue? [y/n/?] (y): Retrieving package konqueror-plugins-4.3.0-1.2.i586 (1/1), 591.0 KiB (1.6 MiB unpacked) Retrieving: konqueror-plugins-4.3.0-1.2.i586.rpm [done] Installing: konqueror-plugins-4.3.0-1.2 [done] zlinux-8zih:~ #rpm -q --whatprovides konqueror-plugins konqueror-plugins-4.3.0-1.2 Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529662
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=529662#c2
--- Comment #2 from Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=529662
User binner@kde.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=529662#c3
--- Comment #3 from Stephan Binner
zypper up --recommends is not supposed to install any not-yet-installed recommended packages of already installed packages.
That's not obvious from the help text. Then maybe --recommends should not exist for "up" at all but only for "in" as option? But "zypper in --recommends" also doesn't work like I would expect it to work (smb4k-lang doesn't get installed): linux-8zih:~ # zypper se -s smb4k Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+-------------+---------+-------------+------+------------------ | smb4k | package | 0.10.2-2.12 | i586 | openSUSE-11.2-Oss | smb4k-devel | package | 0.10.2-2.12 | i586 | openSUSE-11.2-Oss | smb4k-doc | package | 0.10.2-2.12 | i586 | openSUSE-11.2-Oss | smb4k-lang | package | 0.10.2-2.12 | i586 | openSUSE-11.2-Oss linux-8zih:~ # zypper in --recommends smb4k Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW packages are going to be installed: smb4k smb4k-doc 2 new packages to install. Overall download size: 1.7 MiB. After the operation, additional 3.0 MiB will be used. Continue? [y/n/?] (y): Retrieving package smb4k-0.10.2-2.12.i586 (1/2), 469.0 KiB (1.6 MiB unpacked) Retrieving: smb4k-0.10.2-2.12.i586.rpm [done (119.0 KiB/s)] Installing: smb4k-0.10.2-2.12 [done] Retrieving package smb4k-doc-0.10.2-2.12.i586 (2/2), 1.3 MiB (1.5 MiB unpacked) Retrieving: smb4k-doc-0.10.2-2.12.i586.rpm [done (41.6 KiB/s)] Installing: smb4k-doc-0.10.2-2.12 [done] linux-8zih:~ # rpm -q --recommends smb4k smb4k-lang = 0.10.2 smb4k-doc = 0.10.2 linux-8zih:~ # zypper in smb4k-lang Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: smb4k-lang 1 new package to install. Overall download size: 162.0 KiB. After the operation, additional 537.0 KiB will be used. Continue? [y/n/?] (y): Retrieving package smb4k-lang-0.10.2-2.12.i586 (1/1), 162.0 KiB (537.0 KiB unpacked) Retrieving: smb4k-lang-0.10.2-2.12.i586.rpm [done (112.7 KiB/s)] Installing: smb4k-lang-0.10.2-2.12 [done] linux-8zih:~ # rpm -q --whatprovides smb4k-lang smb4k-lang-0.10.2-2.12 linux-8zih:~ # rpm -q --whatprovides smb4k-doc smb4k-doc-0.10.2-2.12 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529662
User binner@kde.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=529662#c4
Stephan Binner
http://bugzilla.novell.com/show_bug.cgi?id=529662
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=529662#c5
Ján Kupec
And just seconds after I posted the last command the behavior of "zypper in --recommends smb4k" changed and it now knows about smb4k-lang. :-(
No. I told you, if you install a _new_ package, it will drag the recommended deps in as well (by default - --recommends is not needed, if you don't have zypp.conf or zypper.conf configured otherwise).
Here is another, and I promise unedited :-), example. See how the first call of "z in --recommends gimp" omits gimp-help-browser while the second includes it:
Yup, that's weird. here's what happend:
linux-8zih:~ # z rm gimp-help-browser
* you explicitely removed gimp-help-browser- zypp remembered that you do not want it.
linux-8zih:~ # z in --recommends gimp
* now, gimp recommends gimp-help-browser, but zypp will not annoy you with installing gimp-help-browser, 'cause you explicitly told it to get rid of it.
linux-8zih:~ # z in gimp
The following NEW package is going to be installed: gimp
Either you have solver.onlyRequires = true in your zypp.conf, or this is a bug.
linux-8zih:~ # z in --recommends gimp
The following NEW packages are going to be installed: gimp gimp-help-browser gimp-plugins-python inkscape-extensions-gimp xsane new packages to install.
Alright, this is indeed weird, it should not install gimp-help-browser here, since you explicitly removed it before. Michael (ma), a bug in soft locks handling? Stefan, please attach your zypper.log. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529662
User binner@kde.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=529662#c6
--- Comment #6 from Stephan Binner
http://bugzilla.novell.com/show_bug.cgi?id=529662
User binner@kde.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=529662#c7
--- Comment #7 from Stephan Binner
* you explicitely removed gimp-help-browser- zypp remembered that you do not want it.
I don't want it to remember anything. I want consistent predictable results from package management based on current state and not based on history. :-)
Either you have solver.onlyRequires = true in your zypp.conf
No, nothing set. And the comment states that false would be default. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529662
User ma@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=529662#c9
Michael Andres
participants (1)
-
bugzilla_noreply@novell.com