Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#13096 - [pidgin] enable network manager support

Attached to Project: Arch Linux
Opened by Congyi Wu (congyiwu) - Monday, 02 February 2009, 14:40 GMT
Last edited by Ionut Biru (wonder) - Tuesday, 03 November 2009, 14:26 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Over a year ago network manager support was removed from the pidgin build in arch b/c it was causing issues for people without network manager installed (http://bugs.archlinux.org/task/7075). I just built pidgin with network manager support by removing "--disable-nm" from the PKGBUILD and it seems to work fine.

With networkmanager installed and running, pidgin connects and disconnects in sync with my wifi. With network manager removed and not running, pidgin behaves exactly as before.

Since network manager support in pidgin is really useful for laptops, and doesn't seem to have any negative side effects any more could it be reenabled?
This task depends upon

Closed by  Ionut Biru (wonder)
Tuesday, 03 November 2009, 14:26 GMT
Reason for closing:  Implemented
Comment by Jan de Groot (JGC) - Tuesday, 03 February 2009, 08:12 GMT
What happens with pidgin when networkmanager isn't running and/or dbus isn't available? Will it run, or will it, as it did before, crash? The point here is that networkmanager should be optional for a program like pidgin, which isn't the case when it crashes in environments without networkmanager.
Comment by Congyi Wu (congyiwu) - Tuesday, 03 February 2009, 13:26 GMT
I tried uninstalling the networkmanager package (0.7 from testing) and then killing the networkmanager daemon. Pidgin started up fine and worked exactly the same as it did with the stock Arch package (IM connection dies when wifi dies, but doesn't come back after wifi reconnect).

So, not having networkmanager does not cause problems even with networkmanager support compiled for pidgin (which is why I filed this request).

I haven't tried killing off dbus, but doesn't X now need hal, and doesn't hal autostart dbus? the pidgin package depends on packages that depend on hal dbus, so both of those will already be installed (and likely running).
Comment by Tomas Mudrunka (harvie) - Tuesday, 10 March 2009, 15:20 GMT
Hello? How it is with this task? I had to recompile pidgin again today... ;(
It seems pidgin with nm support works also without nm. so whats the catch?
Comment by orbisvicis (orbisvicis) - Wednesday, 11 March 2009, 17:20 GMT
++resovling this issue

If X starts pidgin before a wifi connection is established, pidgin is no longer able to resolve DNS names and has to be restarted (apparently its the way DNS works in glibc).
...Which defeats the purpose of autostarting pidgin.

Support for NetworkManager sidesteps this issue. 1/2 bugfix + 1/2 feature request
Comment by Tomas Mudrunka (harvie) - Wednesday, 11 March 2009, 19:53 GMT
yes. thats second issue. i had the same problem before i started to use network manager enabled pidgin.
but it was affecting more applications and when pidgin was connecting it caused problems with resolving DNS not only to itself, but also to other applications like firefox, totem and few others. (for example: "curl google.com" and "ping google.com" worked allright...)

then i was forced to restart these applications...
Comment by Tomas Mudrunka (harvie) - Sunday, 22 March 2009, 13:04 GMT
FYI i tried again nm enabled pidgin without nm and dbus and it worked same way like nm disabled pidgin do - so if somebody doesn't have it, everything will be OK.
Comment by João Vieira (Vieira) - Monday, 13 April 2009, 22:17 GMT
Please make this happen :P
Comment by Tomas Mudrunka (harvie) - Wednesday, 20 May 2009, 15:58 GMT
some progress?
Comment by João Vieira (Vieira) - Thursday, 21 May 2009, 15:08 GMT
I hope to see this in the 2.6.6 PKGBUILD...
Comment by João Vieira (Vieira) - Thursday, 21 May 2009, 15:08 GMT
Oops, I mean 2.5.6.
Comment by Tomas Mudrunka (harvie) - Saturday, 12 September 2009, 14:43 GMT
There is cool new feature in latest pidgin which makes nm-support possible without affecting users whose don't like it:

"Added -f command line option to tell Pidgin to ignore NetworkManager and assume it has a valid network connection." ( http://developer.pidgin.im/wiki/ChangeLog )

So now you can add nm support to archlinux package now and add "-f" to /usr/share/applications/pidgin.desktop or you can rename pidgin binary to /usr/bin/pidgin-nm and make wrapper script /usr/bin/pidgin which will launch it with "-f" option.
Comment by orbisvicis (orbisvicis) - Saturday, 12 September 2009, 15:37 GMT
Reference to my earlier comment, about needing network-manager to resolve DNS names: just found out about nscd (part of glibc) which detects changes in NSS resources including /etc/resolv.conf and automatically flushes the cache. Works only for glibc name reseolver. Cool point is, network-manager in pidgin is no longer necessary to fix the DNS issue.
Comment by Tomas Mudrunka (harvie) - Monday, 14 September 2009, 14:12 GMT
yea, nscd fixed my issues with several applications (including pidgin) few months ago. but it doesn't really matter now, because pidgin package is not supposed to force nscd to be running. Anyway there's no longer reason to not add nm support to pidgin (it's not dependent on any version of nm and it can be disabled somehow using "-f" argument). Using pidgin without nm on wifi connection really sux.

BTW makepkg now enables building of multiple packages with one PKGBUILD, so there can be also package which will add nm-support and package with Purple for perl (pidgin-perl).

Loading...