Bug 1094580 - [kernel] removes gcc, etc. when asking to remove only kernel-headers
Summary: [kernel] removes gcc, etc. when asking to remove only kernel-headers
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-06 04:26 UTC by Chris Murphy
Modified: 2014-05-09 15:04 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-09 15:04:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
debugdata.tar (1.13 MB, application/x-tar)
2014-05-06 04:26 UTC, Chris Murphy
no flags Details

Description Chris Murphy 2014-05-06 04:26:05 UTC
Created attachment 892758 [details]
debugdata.tar

Description of problem: dnf remove <singleitem> causes it to, by default, remove a bunch of things I didn't ask to be removed.


Version-Release number of selected component (if applicable):
dnf-0.5.1-1.fc21.noarch
hawkey-0.4.14-1.fc21.x86_64

How reproducible:
Always

Steps to Reproduce:
1. dnf remove kernel-headers-3.15.0-0.rc3.git0.1.fc21.x86_64

Actual results:
Removing:
 cpp
 gcc
 glibc-devel
 glibc-headers
 kernel-headers
 libmpc   

Expected results:

Remove only kernel-headers. I need gcc for other things.


Additional info:

# uname -r
3.15.0-0.rc4.git0.1.fc21.x86_64


# rpm -qa kernel\*
kernel-modules-extra-3.14.1-200.fc20.x86_64
kernel-modules-extra-3.15.0-0.rc3.git0.1.fc21.x86_64
kernel-modules-extra-3.15.0-0.rc2.git0.1.fc21.x86_64
kernel-core-3.15.0-0.rc4.git0.1.fc21.x86_64
kernel-3.14.1-200.fc20.x86_64
kernel-headers-3.15.0-0.rc3.git0.1.fc21.x86_64
kernel-devel-3.15.0-0.rc3.git0.1.fc21.x86_64
kernel-3.15.0-0.rc3.git0.1.fc21.x86_64
kernel-3.15.0-0.rc2.git0.1.fc21.x86_64
kernel-core-3.15.0-0.rc3.git3.1.fc21.x86_64

Comment 1 Ales Kozumplik 2014-05-06 04:38:50 UTC
Thanks Chris, we'll take a look.

Comment 2 Panu Matilainen 2014-05-06 06:20:21 UTC
Its because kernel-headers is required by glibc-headers which is required by glibc-devel, and hence gcc:

[root@localhost ~]# rpm -q --whatrequires kernel-headers
glibc-headers-2.18-12.fc20.x86_64
libdrm-devel-2.4.53-1.fc20.x86_64
audit-libs-devel-2.3.6-1.fc20.x86_64
[root@localhost ~]# rpm -q --whatrequires glibc-headers
glibc-devel-2.18-12.fc20.x86_64
[root@localhost ~]# rpm -q --whatrequires glibc-devel
perl-devel-5.18.2-289.fc20.x86_64
glibc-static-2.18-12.fc20.x86_64
gcc-4.8.2-7.fc20.x86_64

Doesn't look like a bug to me, unless dnf is supposed to do something else than offer to recursively remove dependencies.

Comment 3 Ales Kozumplik 2014-05-09 15:04:09 UTC
Panu's comment 2 exactly describes the situation, gcc transitively depends on kernel-headers through glibc-headers. This is the expected behavior.


Note You need to log in before you can comment on or make changes to this bug.