ports/132087: [PATCH] Enable pthread in polish/libgadu to fix crash in Kopete

Bartosz Fabianowski freebsd at chillt.de
Wed Feb 25 04:40:04 UTC 2009


>Number:         132087
>Category:       ports
>Synopsis:       [PATCH] Enable pthread in polish/libgadu to fix crash in Kopete
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 25 04:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Bartosz Fabianowski
>Release:        7-STABLE
>Organization:
>Environment:
FreeBSD takahe.local 7.1-STABLE FreeBSD 7.1-STABLE #0: Mon Feb 16 17:00:54 GMT 2009     root at takahe.local:/usr/obj/usr/src/sys/TAKAHE  i386
>Description:
KDE4's Kopete uses polish/libgadu to implement the Gadu-Gadu protocol and expects this library to be compiled with pthread support.

Without pthread support, libgadu calls fork() to start a resolver thread that then calls exit() when done. Kopete does not expect exit() to be called from a child and attempts to shut down the entire application, leading to a crash. With pthread enabled, the exit() is avoided and no crash occurs.
>How-To-Repeat:
Run KDE4's Kopete, connect using the Gadu-Gadu protocol => KCrash pops up a dialog box informing that an instance of Kopete has crashed.
>Fix:
Apply the attached patch.

Patch attached with submission follows:

--- Makefile.orig	2009-02-25 04:24:01.000000000 +0000
+++ Makefile	2009-02-25 04:27:43.000000000 +0000
@@ -6,6 +6,7 @@
 
 PORTNAME=	libgadu
 PORTVERSION=	1.8.2
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	polish net
 MASTER_SITES=	http://toxygen.net/libgadu/files/
@@ -19,7 +20,7 @@
 USE_GNOME=		gnomehack pkgconfig
 GNU_CONFIGURE=		yes
 
-CONFIGURE_ARGS=		--enable-shared --disable-static
+CONFIGURE_ARGS=		--enable-shared --disable-static --with-pthread
 
 USE_LDCONFIG=		yes
 


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list