From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 25 04:40:03 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEF781065673 for ; Wed, 25 Feb 2009 04:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3D43C8FC16 for ; Wed, 25 Feb 2009 04:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1P4e279084243 for ; Wed, 25 Feb 2009 04:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1P4e2xr084242; Wed, 25 Feb 2009 04:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 25 Feb 2009 04:40:02 GMT Resent-Message-Id: <200902250440.n1P4e2xr084242@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bartosz Fabianowski Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41D58106564A for ; Wed, 25 Feb 2009 04:39:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3648FC1A for ; Wed, 25 Feb 2009 04:39:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1P4dCID038765 for ; Wed, 25 Feb 2009 04:39:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n1P4dCCn038764; Wed, 25 Feb 2009 04:39:12 GMT (envelope-from nobody) Message-Id: <200902250439.n1P4dCCn038764@www.freebsd.org> Date: Wed, 25 Feb 2009 04:39:12 GMT From: Bartosz Fabianowski To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/132087: [PATCH] Enable pthread in polish/libgadu to fix crash in Kopete X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2009 04:40:04 -0000 >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@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: