Subject: pkg/26992: x11/xfce4-panel needs to link against libpthread
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 09/19/2004 10:09:19
>Number:         26992
>Category:       pkg
>Synopsis:       x11/xfce4-panel needs to link against libpthread
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 19 01:08:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        NetBSD 2.0G
>Organization:
	
>Environment:
	
	
System: NetBSD orinoco.my.domain 2.0G NetBSD 2.0G (Orinoco) #0: Sun Sep 12 07:42:06 JST 2004 hiramatsu@orinoco.my.domain:/usr/src/sys/arch/i386/compile/Orinoco i386
Architecture: i386
Machine: i386
>Description:
On NetBSD-current, x11/xfce4-panel needs to link against libpthread because
it has plugin capability.

>How-To-Repeat:
- install meta-pkgs/xfce4 and meta-pkgs/xfce4-extras
- execute startxfce4

-> xfce4-panel dumps core

>Fix:

diff -buNr xfce4-panel.orig/Makefile xfce4-panel/Makefile
--- xfce4-panel.orig/Makefile	2004-09-19 09:26:10.000000000 +0900
+++ xfce4-panel/Makefile	2004-09-19 09:26:19.000000000 +0900
@@ -8,7 +8,11 @@
 
 PKGCONFIG_OVERRIDE=	panel/xfce4-panel-1.0.pc.in
 
+CFLAGS+=	${PTHREAD_CFLAGS}
+LIBS+=		${PTHREAD_LDFLAGS}
+
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../x11/xfce4-mcs-plugins/buildlink3.mk"
 .include "../../x11/startup-notification/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: