You are not logged in.

#1 2008-10-20 22:29:03

aneiser
Member
Registered: 2008-07-21
Posts: 59

[SOLVED] Compiling Pidgin 2.5.2 with Networkmanager support

Hey folks,
it seems to me that the pidgin package in extra does not support the networkmanager (no depends and --disable-nm in PKGBUILD). So I just compiled pidgin 2.5.2 with --enable-nm and the About dialog says the following:

Debugging Information
  Arguments to ./configure:   '--prefix=/usr' '--sysconfdir=/etc' '--disable-schemas-install' '--disable-meanwhile' '--enable-nm' '--disable-perl' '--disable-gnutls' '--disable-doxygen' '--with-system-ssl-certs=/etc/ssl/certs' 'CFLAGS=-march=pentium-m -O2 -pipe -fomit-frame-pointer' 'CXXFLAGS=-march=pentium-m -O2 -pipe -fomit-frame-pointer'
  Print debugging messages: No
  Plugins: Enabled
  SSL: SSL support is present.

  Library Support
    Cyrus SASL: Disabled
    D-Bus: Enabled
    Evolution Addressbook: Disabled
    Gadu-Gadu library (libgadu): Internal
    GtkSpell: Enabled
    GnuTLS: Disabled
    GStreamer: Enabled
    Mono: Disabled
    NetworkManager: Enabled
    Network Security Services (NSS): Enabled
    Perl: Disabled
    Startup Notification: Enabled
    Tcl: Enabled
    Tk: Enabled
    X Session Management: Enabled
    XScreenSaver: Enabled
    Zephyr library (libzephyr): Internal
    Zephyr uses Kerberos: No

As you can see, the networkmanager support is enabled. But nothing happens when I plug out my network cable while pidgin is running (Networkmanager shows the change in the connection and I can see something going on with `dbus-monitor`). I expected that Pidgin notices the loss of connection and reconnects the protocols properly. But this doesn't happen and it takes some minutes until Pidgin notices a disconnection... Is there something I have to enable in order to get it working? For example tell dbus that pidgin is allowed to listen to the dbus events triggered by networkmanager?
My networkmanager version is 0.6.5.
Thanks for an answer
Andreas

Last edited by aneiser (2008-10-22 17:54:31)

Offline

#2 2008-10-21 13:20:58

aneiser
Member
Registered: 2008-07-21
Posts: 59

Re: [SOLVED] Compiling Pidgin 2.5.2 with Networkmanager support

Okay, I investigated the problem further and pidgin notices that the connection changes, since if I start `pidgin --debug` in a terminal, I get as output:

...
(15:18:03) network: Got StateChange from NetworkManager: 4.
...
(15:18:23) network: Got StateChange from NetworkManager: 2.
...
(15:19:00) network: Got StateChange from NetworkManager: 3.

The code 4 appears immediately after a plugged my network cable out. Code 2 when I plug it in and code 3 when the connection has got some IP address over DHCP.
So, why the hell is pidgin not reconnecting nor showing anything in the UI of these network changes? I think a file a ticket at http://pidgin.im...

Offline

#3 2008-10-22 17:57:08

aneiser
Member
Registered: 2008-07-21
Posts: 59

Re: [SOLVED] Compiling Pidgin 2.5.2 with Networkmanager support

So, here http://student.physik.uni-mainz.de/~aneiser/pidgin/ you find an edited PKGBUILD and a precompiled new version of Pidgin which works with Networkmanager, yeah! I need to patch a small thing and now everything seems to be fine!

Of course I reported this upstream here: http://developer.pidgin.im/ticket/7323

Last edited by aneiser (2008-10-22 18:04:51)

Offline

Board footer

Powered by FluxBB