Bug 1109693

Summary: debuginfo-install plugin - possibly wrong dependencies installed
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: dnf-plugins-coreAssignee: Igor Gnatenko <ignatenko>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, ignatenko, packaging-team-maint, pnemade, rholy, sanjay.ankur, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-28 12:00:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1121318    
Bug Blocks:    
Attachments:
Description Flags
yum debuginfo-install output not requiring thunderbird and dnf debuginfo-install requiring it
none
debuginfo using dnf nightly repository
none
debuginfo using https://github.com/ignatenkobrain/dnf-plugins-core/tree/rhbz1108321
none
debugdata directory
none
dnf debuginfo vs yum's debuginfo output. none

Description Ankur Sinha (FranciscoD) 2014-06-16 07:22:44 UTC
Created attachment 909040 [details]
yum debuginfo-install output not requiring thunderbird and dnf debuginfo-install requiring it

Description of problem:
I was trying to install the debuginfo for evolution. Some how, dnf tried to install thunderbird-debuginfo also. I don't think this should be required. To double check, I ran a plain yum debuginfo install, and as expected, it didn't pull in thunderbird. 

Version-Release number of selected component (if applicable):
[asinha@ankur-laptop  ~]$ dnf --version
0.5.2
  Installed: dnf-0:0.5.2-99.970.20140612git358dd0b.fc20.noarch at 2014-06-12 12:45
  Built    :  at 2014-06-12 08:07

  Installed: rpm-0:4.11.2-2.fc20.x86_64 at 2014-02-21 05:35
  Built    : Fedora Project at 2014-02-18 07:24
[asinha@ankur-laptop  ~]$

How reproducible:
Always

Steps to Reproduce:
1. dnf debuginfo-install evolution
2.
3.

Actual results:
Tries to install thunderbird-debuginfo

Expected results:
Probably should not install thunderbird-debuginfo

Additional info:
Using the gnome 3.12 copr here.

Comment 1 Igor Gnatenko 2014-06-16 07:44:27 UTC
try plugin from my repo.

https://github.com/ignatenkobrain/dnf-plugins-core/tree/rhbz1108321

Comment 2 Radek Holy 2014-06-16 07:53:31 UTC
Attaching the depsolving info as described by http://dnf.baseurl.org/2013/11/25/reporting-depsolving-bugs/ also may help.

Comment 3 Ankur Sinha (FranciscoD) 2014-06-30 15:48:44 UTC
Sorry I haven't been able to pay attention to this. I'll do it this week and provide the required output.

Comment 4 Ankur Sinha (FranciscoD) 2014-07-19 04:43:02 UTC
Cannot work on this. Ran into another issue :/

Comment 5 Ankur Sinha (FranciscoD) 2014-07-22 10:37:29 UTC
Created attachment 919863 [details]
debuginfo using dnf nightly repository

Please find the required logs attached.

Comment 6 Ankur Sinha (FranciscoD) 2014-07-22 10:39:12 UTC
Created attachment 919864 [details]
debuginfo using https://github.com/ignatenkobrain/dnf-plugins-core/tree/rhbz1108321

Comment 7 Ankur Sinha (FranciscoD) 2014-07-22 10:40:35 UTC
No change in yum output - already attached.

Comment 8 Igor Gnatenko 2014-08-28 11:04:59 UTC
(In reply to Ankur Sinha (FranciscoD) from comment #5)
> Created attachment 919863 [details]
> debuginfo using dnf nightly repository
> 
> Please find the required logs attached.

there should be archive with files. attach it please.
http://dnf.baseurl.org/2013/11/25/reporting-depsolving-bugs/
attach the debugdata/ directory that will be created after the failure under the current working directory.

try with latest plugin from https://github.com/rpm-software-management/dnf-plugins-core master branch

Comment 9 Ankur Sinha (FranciscoD) 2014-08-28 11:50:04 UTC
Created attachment 931903 [details]
debugdata directory

Comment 10 Ankur Sinha (FranciscoD) 2014-08-28 11:51:50 UTC
Created attachment 931910 [details]
dnf debuginfo vs yum's debuginfo output.

debuginfo-install wants to install 9 packages, dnf's debuginfo-install wants to install 109.. :o

Comment 11 Igor Gnatenko 2014-08-28 12:00:23 UTC
ok, now it's not installing thunderbird. so Close.
Blog post about differences between yum and dnf debuginfo-install plugin will come in 1 month.

Comment 12 Igor Gnatenko 2014-08-28 12:18:36 UTC
From IRC:
(05:53:53 PM) ignatenkobrain: FranciscoD: my plugin written from scratch and has own algorithm 
(05:54:10 PM) FranciscoD: ignatenkobrain: yeah, i understand, but there must be a way of seeing what the right deps are?
(05:54:22 PM) ignatenkobrain: more complete algorithm
(05:54:38 PM) FranciscoD: ah, ok, that explains it
(05:54:53 PM) ignatenkobrain: let me write some notes
(05:55:00 PM) FranciscoD: ignatenkobrain: probably rectified then. I can't see anything glaringly wrong there to point out
(05:55:40 PM) ignatenkobrain: A requires B
(05:55:40 PM) ignatenkobrain: B requires C.so and D.so
(05:55:40 PM) ignatenkobrain: package which contains C.so requires E and F.so
(05:55:40 PM) ignatenkobrain: ...
(05:55:47 PM) ignatenkobrain: my plugin will install this tree
(05:55:52 PM) FranciscoD: ignatenkobrain: sounds right
(05:56:05 PM) ignatenkobrain: but yum plugin stops on some step
(05:56:13 PM) ignatenkobrain: this increase performance, but

Summary:
In dnf we have more complete algorithm, than in yum.