Bug 351101 - "yum remove NetworkManager" removes too many packages as dependencies?
Summary: "yum remove NetworkManager" removes too many packages as dependencies?
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 8
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 466858 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-24 18:51 UTC by Duncan Innes
Modified: 2008-10-17 15:31 UTC (History)
4 users (show)

Fixed In Version: 0.7.0-0.9.4.svn3675.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-17 15:31:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to allow uninstalling NetworkManager (2.14 KB, patch)
2008-06-02 23:10 UTC, Dominik 'Rathann' Mierzejewski
no flags Details | Diff

Description Duncan Innes 2007-10-24 18:51:59 UTC
Description of problem:
`yum remove wpa_supplicant` appears to remove FAR too many packages as dependencies

Version-Release number of selected component (if applicable): 1:0.5.7-10.fc8


How reproducible: Every time


Steps to Reproduce:
1. yum remove wpa_supplicant

  
Actual results:

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Removing:
 wpa_supplicant          x86_64     1:0.5.7-10.fc8   installed         589 k
Removing for dependencies:
 NetworkManager          x86_64     1:0.7.0-0.3.svn2995.fc8  installed         2.2 M
 NetworkManager          i386       1:0.7.0-0.3.svn2995.fc8  installed         2.2 M
 NetworkManager-glib     x86_64     1:0.7.0-0.3.svn2995.fc8  installed         103 k
 NetworkManager-glib     i386       1:0.7.0-0.3.svn2995.fc8  installed          98 k
 NetworkManager-gnome    x86_64     1:0.7.0-0.3.svn2995.fc8  installed         521 k
 NetworkManager-openvpn  i386       0.3.2-7.fc6      installed         198 k
 NetworkManager-openvpn  x86_64     0.3.2-7.fc6      installed         208 k
 NetworkManager-vpnc     x86_64     1:0.7.0-0.3.svn2970.fc8  installed         316 k
 NetworkManager-vpnc     i386       1:0.7.0-0.3.svn2970.fc8  installed         305 k
 evolution               x86_64     2.12.1-3.fc8     installed          37 M
 evolution               i386       2.12.1-3.fc8     installed          36 M
 evolution-help          x86_64     2.12.1-3.fc8     installed          40 M
 krb5-auth-dialog        x86_64     0.7-5.fc8        installed          56 k
 libpurple               x86_64     2.2.1-2.fc8      installed          18 M
 nautilus-sendto         x86_64     0.12-3.fc8       installed         276 k
 pidgin                  x86_64     2.2.1-2.fc8      installed         2.2 M

Transaction Summary
=============================================================================
Install      0 Package(s)         
Update       0 Package(s)         
Remove      17 Package(s)         


Expected results:
Not sure what I expected, but I didn't think evolution or pidgin should be
removed.  The machine is wired to the network, so I'm just removing all packages
that are for wireless devices.  Should I not still have the ability to use
NetworkManager for wired-only connection?

Additional info:

Comment 1 Duncan Innes 2007-10-24 19:16:28 UTC
I've just tried removing NetworkManager and got the following:

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Removing:
 NetworkManager          x86_64     1:0.7.0-0.3.svn2995.fc8  installed         2.2 M
 NetworkManager          i386       1:0.7.0-0.3.svn2995.fc8  installed         2.2 M
Removing for dependencies:
 NetworkManager-glib     x86_64     1:0.7.0-0.3.svn2995.fc8  installed         103 k
 NetworkManager-glib     i386       1:0.7.0-0.3.svn2995.fc8  installed          98 k
 NetworkManager-gnome    x86_64     1:0.7.0-0.3.svn2995.fc8  installed         521 k
 NetworkManager-openvpn  i386       0.3.2-7.fc6      installed         198 k
 NetworkManager-openvpn  x86_64     0.3.2-7.fc6      installed         208 k
 NetworkManager-vpnc     x86_64     1:0.7.0-0.3.svn2970.fc8  installed         316 k
 NetworkManager-vpnc     i386       1:0.7.0-0.3.svn2970.fc8  installed         305 k
 evolution               x86_64     2.12.1-3.fc8     installed          37 M
 evolution               i386       2.12.1-3.fc8     installed          36 M
 evolution-help          x86_64     2.12.1-3.fc8     installed          40 M
 krb5-auth-dialog        x86_64     0.7-5.fc8        installed          56 k
 libpurple               x86_64     2.2.1-2.fc8      installed          18 M
 nautilus-sendto         x86_64     0.12-3.fc8       installed         276 k
 pidgin                  x86_64     2.2.1-2.fc8      installed         2.2 M

Transaction Summary
=============================================================================
Install      0 Package(s)         
Update       0 Package(s)         
Remove      16 Package(s)         

So will change the component of this bug to NetworkManager

Comment 2 Duncan Innes 2007-10-24 19:17:36 UTC
Version of NetworkManager is: 1:0.7.0-0.3.svn2995.fc8



Comment 3 Duncan Innes 2007-10-24 19:19:03 UTC
Think this should be at least a Medium severity since NetworkManager is going to
be "released" as soon after F8 as possible?

Comment 4 Dan Williams 2007-10-24 19:41:30 UTC
wpa_supplicant is a hard dep of NM.  it can also be used on _wired_ links for
802.1x authentication.  Until RPM grows a 'recommends' function or something
else like that, it's likely to remain this way, otherwise you would always have
to know to also install wpa_supplicant if you want wireless or wired 802.1x support.

Comment 5 Duncan Innes 2007-10-25 08:58:00 UTC
Hmm - fair call.

But is there then an issue with evolution, pidgin, nautilus-sendto etc being
removed as deps of NetworkManager?  I should be able to use all these packages
without having NetworkManager installed shouldn't I?

Comment 6 Dan Williams 2007-10-25 11:25:36 UTC
Yeah, there may well be a bug here; these apps should require
NetworkManager-gnome, but not NetworkManager (ie, NM and -gnome are not mutually
dependent).  I think that the issue here was that the API between NM and -gnome
needs to be in lock-step at the moment so we added a hard dep for NM + NM-gnome,
and we can break that dep later once NM has settled down a bit.  Thanks for
bringing this up again though.

Comment 7 Dominik 'Rathann' Mierzejewski 2007-12-12 12:33:43 UTC
The problem is that on F-7, NetworkManager-glib depends only on libnm_glib.so.0,
while on F-8 it also depends on libnm-util.so.0, which is provided by the main
NetworkManager package. My suggestion is to move libnm-util to another
subpackage if possible.

F-7:
% rpm -q NetworkManager-glib
NetworkManager-glib-0.6.5-7.fc7.x86_64
% rpm -qR NetworkManager-glib | grep nm
libnm_glib.so.0()(64bit)  

F-8:
% rpm -q NetworkManager-glib 
NetworkManager-glib-0.7.0-0.6.6.svn3109.fc8.i386
% rpm -qR NetworkManager-glib | grep nm
libnm-util.so.0  
libnm_glib.so.0  
libnm_glib_vpn.so.0  


Comment 8 Dominik 'Rathann' Mierzejewski 2008-01-17 12:40:51 UTC
Ping.

Come on, this is a trivial packaging issue. It doesn't require rocket science to
fix.


Comment 9 Dan Williams 2008-01-17 15:52:14 UTC
This can only be done when the API between NetworkManager and libnm_glib is
stable enough that people won't get screwed when they update NM but it doesn't
pull in a new libnm_glib.  The requirement reflects D-Bus API requirements at
the current time too, not just ABI.

Comment 10 Dominik 'Rathann' Mierzejewski 2008-03-28 10:30:28 UTC
(In reply to comment #9)
> This can only be done when the API between NetworkManager and libnm_glib is
> stable enough that people won't get screwed when they update NM but it doesn't
> pull in a new libnm_glib.  The requirement reflects D-Bus API requirements at
> the current time too, not just ABI.

Then add explicit Requires: NetworkManager-glib = %{version}-%{release} to
NetworkManager.spec so that it doesn't happen. You're irritating a lot of people
by forcing them to keep wireless-releated packages on systems without a wireless
card. Or by forcing them to keep NetworkManager. Or both. Or are you simply too
busy with other stuff to fix this trivial issue? If that's the case, then please
say so instead of inventing irrelevant reasons for not fixing this.

This is still broken in rawhide/f9 beta.


Comment 11 Tobias Felipe 2008-05-15 16:06:03 UTC
Still broken on F9/i386 release. NetworkManager screws up wired connections with
fixed ip, a workaround is to remove it, but them pidgin, system-config-printer
(?!) and many others are removed too. NetworkManager doesn't work since f5,
please just get rid of it.

Comment 12 Dan Williams 2008-05-15 18:35:32 UTC
NM works fine with static IP connections.  If you have static DNS servers
though, you'll need to add them directly to the ifcfg file as
DNS1=xxx.xxx.xxx.xxx and DNS2=xxx.xxx.xxx.xxx.  The fact that
system-config-network doesn't do that is a bug that I'm fixing now.

Comment 13 Dominik 'Rathann' Mierzejewski 2008-05-15 20:50:21 UTC
Nevertheless it should be possible to remove it without removing pidgin and
others. I've already described a solution, so why can't you implement it?

Comment 14 Dominik 'Rathann' Mierzejewski 2008-06-02 23:10:36 UTC
Created attachment 308169 [details]
patch to allow uninstalling NetworkManager

And to put my money where my mouth is, here's a patch that does what I want.

Comment 15 Dan Williams 2008-06-04 21:18:30 UTC
Patch has the right idea, but we also need to put the libnm-util headers into a
devel subpackage.

I think the better solution is to put libnm-util and it's associated headers
into NetworkManager-glib and NetworkManager-glib-devel (since you still need
glib to use libnm-util), and then make NM depend on NetworkManager-glib instead.
 Thus NM-glib is the bottom of the stack, not NetworkManager.  This is what I'll
put into the next testing update.


Comment 16 Fedora Update System 2008-06-05 14:59:07 UTC
NetworkManager-0.7.0-0.9.4.svn3675.fc9 has been submitted as an update for Fedora 9

Comment 17 Dan Williams 2008-06-06 04:47:45 UTC
Also built as 0.7.0-0.6.8.svn3675.fc8

Comment 18 Fedora Update System 2008-06-06 07:49:22 UTC
NetworkManager-0.7.0-0.9.4.svn3675.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update NetworkManager'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-5017

Comment 19 Fedora Update System 2008-06-14 04:18:32 UTC
NetworkManager-0.7.0-0.9.4.svn3675.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Phil Kim 2008-06-19 19:39:32 UTC
NetworkManager-1:0.7.0-0.9.4.svn3675.fc9 (i386) is missing on the Fedora 9
stable repository. "yum update" fails with the following error:

Resolving Dependencies
1:NetworkManager-0.7.0-0.9.3.svn3623.fc9.i386 from installed has depsolving problems
  --> Missing Dependency: NetworkManager-glib = 1:0.7.0-0.9.3.svn3623.fc9 is
needed by package 1:NetworkManager-0.7.0-0.9.3.svn3623.fc9.i386 (installed)
1:NetworkManager-0.7.0-0.9.3.svn3623.fc9.i386 from installed has depsolving problems
  --> Missing Dependency: NetworkManager-glib = 1:0.7.0-0.9.3.svn3623.fc9 is
needed by package 1:NetworkManager-0.7.0-0.9.3.svn3623.fc9.i386 (installed)
Error: Missing Dependency: NetworkManager-glib = 1:0.7.0-0.9.3.svn3623.fc9 is
needed by package 1:NetworkManager-0.7.0-0.9.3.svn3623.fc9.i386 (installed)

Comment 21 Dan Williams 2008-06-23 14:46:55 UTC
Phil; I see
http://download.fedora.redhat.com/pub/fedora/linux/updates/9/i386/NetworkManager-0.7.0-0.9.4.svn3675.fc9.i386.rpm
; can you check again to see if it's still missing for you?

Comment 22 Dan Williams 2008-06-23 18:50:37 UTC
So we're going to have to break this again and we won't be able to 'yum remove
NetworkManager' without taking out half the desktop.

The reason is that due to multilib, which Phil has just encountered, there is no
way to remove the NM.i386 package on multilib (x86-64) arches.  The i386 package
was installed originally because libnm-util was in the core package.  When it
got moved out to -glib to fix this bug, there was no way to obsolete the core
i386 package since we can't do cross-arch obsoletes.

Unfortunately, multilib more important than being able to 'yum remove
NetworkManager' easily.  I'd suggest that instead, you 'chkconfig NetworkManager
off' since that should produce the same runtime effect as removing the NM RPM
completely.

For F10, we can fix this issue from anaconda-assisted upgrades, but not from a
'yum upgrade' directly.

Comment 23 Dominik 'Rathann' Mierzejewski 2008-06-23 23:20:26 UTC
Why do you want to obsolete it? Is there a problem with having both 32bit and
64bit NM package in the repo? Just keep it there. It won't break for people who
want it and it won't break for the people who don't. I don't understand why the
main 32bit package vanished from the 64bit repos.

Comment 24 Dan Williams 2008-06-24 11:00:19 UTC
It disappeared because it no longer contains libraries, which was the whole
point of this bug in the first place.  Multilib packages should be parallel
installable, but having both a 32-bit and 64-bit NetworkManager package
installed obviously isn't since the binaries use the same path.  On a 64-bit
machine, your binaries should be 64-bit if the 64-bit package is installed.

Comment 25 Dominik 'Rathann' Mierzejewski 2008-06-24 12:45:47 UTC
The previous main NM 32bit and 64bit packages had the binaries in the same
place. Of course, rpm would keep only the 64bit binaries if you installed both.
I agree that you should only have 64bit binaries, but in this case you will,
even if you have the 32bit package installed, too. I think you should just keep
the NM.i386 package in the repo (some manual override?) to help with updates. It
can be removed manually (or by anaconda on upgrade) afterwards.

Comment 26 Dan Williams 2008-10-17 15:29:26 UTC
*** Bug 466858 has been marked as a duplicate of this bug. ***

Comment 27 Dan Williams 2008-10-17 15:31:27 UTC
This is fixed in rawhide, there is no longer a dependency between NetworkManager and NetworkManager-glib.  Again, cannot be fixed for F9 and earlier due to #451519.


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