You are not logged in.

#1 2009-11-29 05:24:48

gelendir
Member
From: Québec
Registered: 2009-11-29
Posts: 7

Patched pidgin that fixes msn nickname bug

Hello everyone !

Although this is my first post on the forum i've been a regular arch user for quite a while now. As some of you might have noticed, there's been a bug with the nickname that keeps getting reset to your default name in the MSN protocol of pidgin. Its not an actual pidign bug, but a change that has been made in the msn server. Details can be found on pidgin's bugzilla here : http://developer.pidgin.im/ticket/10763. A patch has been submitted and will be included in the next release. But, since this bug has been really getting on my nerves, I took the patch and integrated it into pidgin's PKGBUILD. I'm posting it here if ever there are other people who are interested by it.

# $Id: PKGBUILD 58022 2009-11-03 14:24:41Z ibiru $
# Maintainer : Biru Ionut <ionut@archlinux.ro>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Lucien Immink <l.immink@student.fnt.hvu.nl>

pkgbase=('pidgin')
pkgname=('libpurple' 'pidgin' 'finch')
pkgver=2.6.3
pkgrel=2
arch=('i686' 'x86_64')
url="http://pidgin.im/"
license=('GPL')
makedepends=('startup-notification' 'gtkspell' 'libxss' 'nss' 'libsasl' 'python'
    'hicolor-icon-theme' 'silc-toolkit' 'gstreamer0.10-base' 'farsight2' 'avahi'
    'tk' 'ca-certificates' 'intltool' 'networkmanager')
options=('!libtool')
source=(http://downloads.sourceforge.net/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.bz2
    #Patch to fix msn nickname reset
    http://developer.pidgin.im/viewmtn/revision/rawdiff/3bffd7b4a3d8f99940661652e971595b53cdc48d/with/5471a4305312ead74567c9099c837adcbebb640c)
md5sums=('8d0ff6215b2d023eaa8efef59097ef83'
     '79ab921f87240e5875e0561f7d64b8ec')

build() {
    cd "$srcdir/$pkgbase-$pkgver"
    #Apply msn nickname patch
    patch -Np0 < ../5471a4305312ead74567c9099c837adcbebb640c

    ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --disable-schemas-install \
                --disable-meanwhile \
                --disable-nm \
                --disable-perl \
                --disable-gnutls \
                --enable-cyrus-sasl \
                --disable-doxygen \
        --enable-nm \
                --with-system-ssl-certs=/etc/ssl/certs || return 1
    make || return 1
}
package_libpurple(){
    pkgdesc="IM library extracted from Pidgin"
    depends=('farsight2' 'libsasl' 'dbus-glib' 'silc-toolkit' 'nss')
    cd "$srcdir/$pkgbase-$pkgver"

    for dir in libpurple share/sounds share/ca-certs m4macros po
    do
    make -C "$dir" DESTDIR="$pkgdir" install || return 1
    done
#    rm -rf "$pkgdir/etc" || return 1
}

package_pidgin(){
    pkgdesc="Multi-protocol instant messaging client"
    depends=("libpurple=$pkgver" 'startup-notification' 'gtkspell' 'libxss' 'python'
            'hicolor-icon-theme' 'gstreamer0.10-base')
    optdepends=('gstreamer0.10-good: to play sounds'
                'avahi: Bonjour protocol support'
                'tk: Tcl/Tk scripting support'
                'ca-certificates: SSL CA certificates'
                'aspell: for spelling correction')

    install=pidgin.install
    cd "$srcdir/$pkgbase-$pkgver"
    #for linking
    make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES || return 1

    make -C pidgin DESTDIR="$pkgdir" install || return 1
    make -C doc DESTDIR="$pkgdir" install || return 1

    #clean up libpurple
    make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES || return 1

    install -D -m 0644 pidgin.desktop "$pkgdir"/usr/share/applications/pidgin.desktop || return 1

    rm -f "$pkgdir"/usr/share/man/man1/finch.1 || return 1
}
package_finch(){
    pkgdesc="A ncurses-based messaging client"
    depends=("libpurple=$pkgver" 'libidn')
    optdepends=('avahi: Bonjour protocol support'
            'tk: Tcl/Tk scripting support'
        'ca-certificates: SSL CA certificates')

    cd "$srcdir/$pkgbase-$pkgver"
    #for linking
    make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES || return 1

    make -C finch DESTDIR="$pkgdir" install || return 1
    make -C doc DESTDIR="$pkgdir" install || return 1

    #clean up libpurple
    make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES || return 1
    rm -f "$pkgdir"/usr/share/man/man1/pidgin.1 || return 1
}

I am a classical musician. I am a programmer. I am an open source enthusiast. For a while now, I have been looking for some kind of sign that could link these 3 traits together. Now, i finally have : The debian logo is just like a vertically flipped F Key !
<img src="http://www.nerdtests.com/images/badge/nt2/b86cfc385cb81a0d.jpg">

Offline

#2 2009-11-29 21:40:53

myrkiada
Member
From: Norway
Registered: 2009-04-15
Posts: 74

Re: Patched pidgin that fixes msn nickname bug

I love you man! Got really tired of this behavior after a while, so I did a search here at the forums, and you already have it pached up and ready to go. Thanks!


My Configs @ Github

Offline

#3 2009-11-30 22:41:12

andreamer
Member
Registered: 2009-08-11
Posts: 41

Re: Patched pidgin that fixes msn nickname bug

Great, thanks! lol
I've been following the bug and it's cool to not have to wait for the next release to fix this really annoying bug.

I've ran to a small problem though, it seems you have configured the PKGBUILD to be compatible only with network-manager (i use wicd) and gnome (i use KDE). had to make the following changes to it so it would compile correctly:

erase this dependencies:'tk' 'networkmanager'
add this lines:
--disable-nm /
--disable-tk /

Last edited by andreamer (2009-11-30 22:42:36)

Offline

#4 2009-11-30 23:09:46

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Patched pidgin that fixes msn nickname bug

andreamer wrote:

Great, thanks! lol
I've been following the bug and it's cool to not have to wait for the next release to fix this really annoying bug.

I've ran to a small problem though, it seems you have configured the PKGBUILD to be compatible only with network-manager (i use wicd) and gnome (i use KDE). had to make the following changes to it so it would compile correctly:

erase this dependencies:'tk' 'networkmanager'
add this lines:
--disable-nm /
--disable-tk /

doesn't really matter. pidgin is autodetecting if somebody use networkmanager. if doesn't have will continue to work like it was if we have compiled without networkmanager support.

p.s this bug was fixed in 2.6.4 which is in extra

Last edited by wonder (2009-11-30 23:10:16)


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-12-01 01:09:48

andreamer
Member
Registered: 2009-08-11
Posts: 41

Re: Patched pidgin that fixes msn nickname bug

wonder wrote:
andreamer wrote:

Great, thanks! lol
I've been following the bug and it's cool to not have to wait for the next release to fix this really annoying bug.

I've ran to a small problem though, it seems you have configured the PKGBUILD to be compatible only with network-manager (i use wicd) and gnome (i use KDE). had to make the following changes to it so it would compile correctly:

erase this dependencies:'tk' 'networkmanager'
add this lines:
--disable-nm /
--disable-tk /

doesn't really matter. pidgin is autodetecting if somebody use networkmanager. if doesn't have will continue to work like it was if we have compiled without networkmanager support.

p.s this bug was fixed in 2.6.4 which is in extra

The problem was i could't compile it (errors) caused by what i said.

Haha, you're right version 2.6.4 is up, syncing pacman... lol

Last edited by andreamer (2009-12-01 01:10:14)

Offline

#6 2009-12-03 03:18:22

gelendir
Member
From: Québec
Registered: 2009-11-29
Posts: 7

Re: Patched pidgin that fixes msn nickname bug

Glad to see that my PKGBUILD was useful to a few ppl, even if it was for a short while XD

better go sync my pacman now


I am a classical musician. I am a programmer. I am an open source enthusiast. For a while now, I have been looking for some kind of sign that could link these 3 traits together. Now, i finally have : The debian logo is just like a vertically flipped F Key !
<img src="http://www.nerdtests.com/images/badge/nt2/b86cfc385cb81a0d.jpg">

Offline

Board footer

Powered by FluxBB