[Bug 466146] New: yast installs suggested packages while only driver package requested
https://bugzilla.novell.com/show_bug.cgi?id=466146 Summary: yast installs suggested packages while only driver package requested Classification: openSUSE Product: openSUSE 11.1 Version: RC 2 Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: remur@gmx.net QAContact: jsrain@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5 After plugging a new printer I did the following: - Yast -> Hardware -> Printer -> add Printer -> add Driver - select hplip - press Ok This installed not only hplip but also the suggested fetchmsttffonts (which are f*ugly) I guess this happens everytime another yast component besides the obvious package manager wants to install a package Reproducible: Didn't try Steps to Reproduce: as above 1. Yast -> Hardware -> Printer -> add Printer -> add Driver 2. select hplip 3. press Ok Actual Results: Suggested package gets installed to without possibilty to interefere. Expected Results: Just install the single package requested by yast component -- 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=466146 Robert Vojcik <rvojcik@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |jsmeix@novell.com |ovo.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=466146 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466146#c1 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsmeix@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com --- Comment #1 from Johannes Meixner <jsmeix@novell.com> 2009-01-15 06:10:26 MST --- I know this. It is not caused by the YaST printer module but by the underlying package installation stuff. I call only Package::Install( "hplip" ) Therefore I reassgn it back to YaST. I would need a YaST package installation function which installs automatically only what is required by the package which was specified and nothing else. See my comments for the TestAndInstallPackage function in /usr/share/YaST2/modules/Printerlib.ycp (you use openSUSE 11.1 RC2, I run the final version so that there might be minor differences to what you have on your system): ----------------------------------------------------------------------------- Intentionally Package::Installed(package_name) is not used here because it does 'rpm -q' and if this fails it does 'rpm -q --whatprovides' but I am only interested in the result for the real package name here because alternatives would be handled in the upper-level functions (e.g. in the user dialogs) which call TestAndInstallPackage: .. Package::Install(package_name) has unexpected side-effects because it does additionally remove whatever other packages for example to "automatically solve" existing package conflicts without any dialog where the user could accept or reject additional removals (the user may have intentionally accepted whatever package conflict). I am only interested to install exactly the one package which was specified and all what this one package requires but I am not interested to get whatever other packages removed but I do not know a function which does this. Therefore I use Package::Install(package_name) because it is most important to get all installed what is required by the package which was specified. .. Intentionally Package::Remove(package_name) is not used here because it does additionally remove whatever other packages for example to "automatically solve" existing package conflicts without any dialog where the user could accept or reject additional removals (the user may have intentionally accepted whatever package conflict). Furthermore Package::Remove(package_name) does additionally install whatever other packages for example to "automatically solve" whatever kind of soft requirements (Recommends) for other packages. I am only interested to remove exactly the one package which was specified and I am not interested to get whatever replacement package installed automatically because alternatives and/or substitutes would be handled in the upper-level functions (e.g. in the user dialogs) which call TestAndInstallPackage. Usually (i.e. in a openSUSE standard system) the packages which are removed here do not have dependencies or the calling function removes dependant packages in the right order (e.g. first hplip and then hplip-hpijs, see driveradd.ycp) but the user might have installed whatever third-party packages which could have dependencies to the package which should be removed here. Therefore there is a test if the removal would break RPM dependencies but intentionally it is not tested whether the removal would "break" whatever kind of soft requirements (Recommends). ----------------------------------------------------------------------------- -- 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=466146 User remur@gmx.net added comment https://bugzilla.novell.com/show_bug.cgi?id=466146#c2 Karsten König <remur@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|RC 2 |Final --- Comment #2 from Karsten König <remur@gmx.net> 2009-01-15 16:45:51 MST --- Thanks for this extensive explanation, I hope you guys will figure out a clean way to do this, the current one is suboptimal =) Maybe allow for entering all the requested additional packages in one go (hplip, foomatic, ...) and then presenting a list with all the modifications which needs to be aknowledged (and maybe you could even deselect unwanted changes then) So the yast module developer will call: Package::Install( "hplip" , " footmatic" ) etc. and then the user gets presented a similar to package manager list, maybe with a simple caption like "Go ahead and install this?" plus ok, too keep it simple but allow deselecting for people who know what they are doing. Btw, I am not on RC2 but 11.1 final, the bugreports created for 11.1 final always get declarated as RC2 for me =/ -- 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=466146 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.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=466146 User tgoettlicher@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466146#c3 Thomas Göttlicher <tgoettlicher@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |lslezak@novell.com --- Comment #3 from Thomas Göttlicher <tgoettlicher@novell.com> 2009-01-20 03:36:12 MST --- It's about Package::Install( package_name ). Ladislav, could you look into it please? -- 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=466146 User lslezak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466146#c4 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Ladislav Slezak <lslezak@novell.com> 2009-01-20 05:37:06 MST --- This has been already fixed in Yast trunk (for openSUSE 11.2). *** This bug has been marked as a duplicate of bug 439373 *** https://bugzilla.novell.com/show_bug.cgi?id=439373 -- 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=466146 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466146#c5 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |florian.drouchon@orange.fr --- Comment #5 from Johannes Meixner <jsmeix@novell.com> 2009-02-26 02:30:48 MST --- *** Bug 463566 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=463566 -- 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