Bug 465122

Summary: Removal try for "powerdevil" results in unexpected reactions
Product: [openSUSE] openSUSE 11.1 Reporter: Markus Elfring <Markus.Elfring>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: solver test case

Description Markus Elfring 2009-01-10 15:19:19 UTC
Created attachment 264311 [details]
solver test case

I try to delete the following application from my system.

Sonne:~ # zypper remove powerdevil
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  kdebase4-workspace-branding-upstream


The following packages are going to be REMOVED:
  compiz-kde4 kde4-kate kde4-kget kde4-knewsticker kde4-ktux kde4-plasma-addons
kde4-superkaramba kdeartwork4-screensaver kdebase4 kdebase4-nsplugin
kdebase4-openSUSE kdebase4-openSUSE-lang kdebase4-session kdebase4-workspace
kdebase4-workspace-branding-openSUSE powerdevil powerdevil-lang


Overall download size: 26.0 K. After the operation, 45.2 M will be freed.
Continue? [Y/n/p/?]: n


I wonder about the suggested removal of some other software components which do not seem to be relevant for a power manager. I have got doubts in the correctness for this dependency resolution.
Comment 1 Stephan Binner 2009-01-10 15:45:17 UTC
powerdevil is (defined as) a requirement of kdebase4-workspace - dunno where you want to see a fault of the dependency solver.
Comment 2 Jan Kupec 2009-01-10 21:48:56 UTC
(In reply to comment #0)
> Continue? [Y/n/p/?]: n

JFYI, answering 'p' would show you the dependency problem which caused this. Try also '?'.
Comment 3 Markus Elfring 2009-01-10 22:30:31 UTC
It would be better to show a bit more about the meanings for these keys.

Continue? [Y/n/p/?]: p
Resolving package dependencies...
2 Problems:
Problem: powerdevil-lang-1.4.1-16.4.x86_64 requires powerdevil = 1.4.1, but this requirement cannot be provided
Problem: kdebase4-workspace-4.1.3-160.1.x86_64 requires powerdevil, but this requirement cannot be provided

Problem: powerdevil-lang-1.4.1-16.4.x86_64 requires powerdevil = 1.4.1, but this requirement cannot be provided
  uninstallable providers: powerdevil-1.4.1-4.3.i586[Haupt-Repository_(OSS)_11.1
                   powerdevil-1.4.1-16.13.i586[KDE4_Core]
                   powerdevil-1.4.1-16.13.x86_64[KDE4_Core]
 Solution 1: Following actions will be done:
  deinstallation of powerdevil-lang-1.4.1-16.4.x86_64
  deinstallation of compiz-kde4-0.7.8-20.1.x86_64
  deinstallation of kdeartwork4-screensaver-4.1.3-18.13.x86_64
  deinstallation of kde4-plasma-addons-4.1.3-42.17.x86_64
  deinstallation of kde4-superkaramba-4.1.3-35.7.x86_64
  deinstallation of kde4-ktux-4.1.3-17.13.x86_64
  deinstallation of kde4-knewsticker-4.1.3-48.7.x86_64
  deinstallation of kdebase4-4.1.3-60.6.x86_64
  deinstallation of kde4-kget-4.1.3-48.7.x86_64
  deinstallation of kde4-kate-4.1.3-32.7.x86_64
  deinstallation of kdebase4-session-4.1.3-26.2.x86_64
  deinstallation of kdebase4-openSUSE-11.1-83.3.x86_64
  deinstallation of kdebase4-workspace-branding-openSUSE-11.1-83.3.x86_64
  deinstallation of kdebase4-openSUSE-lang-11.1-83.3.x86_64
  deinstallation of kdebase4-nsplugin-4.1.3-60.6.x86_64
 Solution 2: keep powerdevil-1.4.1-4.4.x86_64
 Solution 3: Ignore some dependencies of powerdevil-lang


I wonder why the zypper command wants to delete software components like Compiz and Kate. I do not see a direct relationship to the application that I want to be removed only.
Comment 4 Markus Elfring 2009-01-10 22:40:54 UTC
Can the software management trigger also the removal of the corresponding language package?
Comment 5 Jan Kupec 2009-01-11 20:15:56 UTC
(In reply to comment #3)
> It would be better to show a bit more about the meanings for these keys.

Continue? [Y/n/p/?]: ?

y - Accept the summary and proceed with installation/removal of packages.
n - Cancel the operation.
p - Restart solver in no-force-resolution mode in order to show dependency problems.

[Y/n/p/?]:
Comment 6 Jan Kupec 2009-01-11 20:36:06 UTC
(In reply to comment #3)
> I wonder why the zypper command wants to delete software components like Compiz
> and Kate. I do not see a direct relationship to the application that I want to
> be removed only.

There is no direct relationship, they rather depend on powerdevil through several packages.

Stefan already told you, kdebase4-workspace requires powerdevil, then kdebase4-workspace-branding needs kdebase4-workspace, then kde4-kwin needs  kdebase4-workspace-branding, etc...

Try playing with the dependency tree dialog in YaST a bit.
Comment 7 Jan Kupec 2009-01-11 20:39:29 UTC
(In reply to comment #4)
> Can the software management trigger also the removal of the corresponding
> language package?

I'm not sure what you mean, please explain. Also if you do not suggest there is a bug somewhere, please take this question to one of the mailing list or forums. Bugzilla is not a discussion forum.
Comment 8 Markus Elfring 2009-01-12 19:30:56 UTC
(In reply to comment #5)

I would prefer the display "Continue? [Yes/no/problems/help(?)]:".


(In reply to comment #6)

The YaST2 dependency tree dialogue that appears after a click in the context menu of the package manager looks nice at the first glance. Unfortunately, the list on the tab "required by" ("Benötigt von") remains empty on my screen.


(In reply to comment #7)

I guess that language packages should also be deinstalled if their application was removed.

I imagine a fine-tuning of the dependencies for computer workspaces where the power is driven by batteries like for laptops. Will an additional "pattern" be useful?
Comment 9 Markus Elfring 2009-01-12 19:35:03 UTC
I would appreciate little improvements in the affected dependency resolution.
Comment 10 Jan Kupec 2009-01-13 11:23:49 UTC
(In reply to comment #8)
> I would prefer the display "Continue? [Yes/no/problems/help(?)]:".

Hmm... we would have to change all prompts then, and we would have to find a way how to highlight the letters that should be used as answer (people don't want to write the whole word there). We have no problem changing the prompts if there will be more people requesting it. This is subject to discussion so please use the mailing lists.

> (In reply to comment #6)
> 
> The YaST2 dependency tree dialogue that appears after a click in the context
> menu of the package manager looks nice at the first glance. Unfortunately, the
> list on the tab "required by" ("Benötigt von") remains empty on my screen.

New problem => new bugreport please.

> (In reply to comment #7)
> I guess that language packages should also be deinstalled if their application
> was removed.

They should, they depend on the app. In fact the powerdevil-lang gets uninstalled in your case.

> I imagine a fine-tuning of the dependencies for computer workspaces where the
> power is driven by batteries like for laptops. Will an additional "pattern" be
> useful?

Please discuss on MLs.
Comment 11 Markus Elfring 2009-01-13 22:17:07 UTC
(In reply to comment #10)
> New problem => new bugreport please.

See bug #465851 and bug #465895 ...