Bug 1321323

Summary: DNF wants to remove unrelated packages when removing libgit2.
Product: [Fedora] Fedora Reporter: Barry Scott <barry>
Component: kf5-ktexteditorAssignee: Daniel Vrátil <me>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: jgrulich, jsilhan, me, mluscon, packaging-team-maint, pnemade, rdieter, than, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-31 13:22:39 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:
Attachments:
Description Flags
Output of rpm -q -a none

Description Barry Scott 2016-03-25 13:37:17 UTC
Created attachment 1140312 [details]
Output of rpm -q -a

Description of problem:

I wish to remove libgit2 but DNF wants to remove the following packages:
$ cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=false
$ dnf remove libgit2
Dependencies resolved.
=======================================================================================================================================================
 Package                                          Arch                        Version                              Repository                     Size
=======================================================================================================================================================
Removing:
 kde-print-manager                                x86_64                      15.12.1-1.fc23                       @updates                      772 k
 kde-print-manager-libs                           x86_64                      15.12.1-1.fc23                       @updates                      586 k
 kf5-ktexteditor                                  x86_64                      5.19.0-1.fc23                        @updates                       13 M
 kf5-ktexteditor-devel                            x86_64                      5.19.0-1.fc23                        @updates                      305 k
 ktp-auth-handler                                 x86_64                      15.12.1-1.fc23                       @updates                      267 k
 ktp-common-internals                             x86_64                      15.12.1-1.fc23                       @updates                      2.5 M
 ktp-contact-list                                 x86_64                      15.12.1-1.fc23                       @updates                      581 k
 ktp-contact-runner                               x86_64                      15.12.1-1.fc23                       @updates                      104 k
 ktp-filetransfer-handler                         x86_64                      15.12.1-1.fc23                       @updates                      173 k
 ktp-kded-integration-module                      x86_64                      15.12.1-1.fc23                       @updates                      397 k
 ktp-send-file                                    x86_64                      15.12.1-1.fc23                       @updates                       91 k
 ktp-text-ui                                      x86_64                      15.12.1-1.fc23                       @updates                      2.5 M
 kwrite                                           x86_64                      15.12.1-2.fc23                       @updates                      209 k
 libgit2                                          x86_64                      0.23.4-1.fc23                        @updates                      973 k
 libgit2-devel                                    x86_64                      0.23.4-1.fc23                        @updates                      748 k
 plasma-desktop                                   x86_64                      5.5.5-2.fc23                         @updates                       27 M
 plasma-workspace                                 x86_64                      5.5.5-4.fc23                         @updates                       30 M
 plasma-workspace-drkonqi                         x86_64                      5.5.5-4.fc23                         @updates                      4.9 M
 sddm-breeze                                      noarch                      5.5.5-4.fc23                         @updates                      1.2 M

Transaction Summary
=======================================================================================================================================================
Remove  19 Packages


Version-Release number of selected component (if applicable):

dnf-1.1.7-2.fc23.noarch

Actual results:


Expected results:

Only libgit2 is removed not the KDE desktop.


Additional info:

Comment 1 Barry Scott 2016-03-25 13:47:16 UTC
I found the dependency I had missed. kf5-ktexteditor uses libgit2.

I'm still surprised that this remove would remove the plasma-desktop
and leave me with a broken isntallation.

Comment 2 Michal Luscon 2016-03-31 13:06:52 UTC
Please add recommends on libgit2 into kf5-ktexteditor if it's not a hard requirement.

Comment 3 Rex Dieter 2016-03-31 13:22:39 UTC
It is a hard requirement, kf5-ktexteditor links libgit2