From nobody@FreeBSD.org  Fri Mar 22 09:26:07 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 51FF13EB
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Mar 2013 09:26:07 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4363222A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Mar 2013 09:26:07 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2M9Q6cO029197
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Mar 2013 09:26:06 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r2M9Q6c5029196;
	Fri, 22 Mar 2013 09:26:06 GMT
	(envelope-from nobody)
Message-Id: <201303220926.r2M9Q6c5029196@red.freebsd.org>
Date: Fri, 22 Mar 2013 09:26:06 GMT
From: Eimar Koort <eimar.koort@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: glib update: gnome-gmail-notifier won't start and  nautilus eats cpu
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         177226
>Category:       ports
>Synopsis:       devel/glib20 update: gnome-gmail-notifier won't start and  nautilus eats cpu
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 22 09:30:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Nov 23 23:10:00 UTC 2013
>Originator:     Eimar Koort
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD box 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
glib-2.34.3
glibmm-2.34.1,1
gnome-gmail-notifier-0.10.1_3
nautilus-2.32.2.1_3

1) 
eimar@box: ~ > gnome-gmail-notifier
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_unlock': Operation not permitted.  Aborting.
eimar@box: ~ >

2) 
Nautilus is constantly using cpu (taken from "top" command): 
load averages:  0.78,  0.84,  0.90 

  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
95338 eimar         5  23    0   519M   115M wait    1 445:20 14.45% nautilus


I'm not sure how both problems are related, but both appeared right after glib update from 2.28.8_5 to 2.34.3.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Eimar Koort <eimar.koort@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/177226: glib update: gnome-gmail-notifier won't start and
 nautilus eats cpu
Date: Fri, 22 Mar 2013 11:48:26 +0200

 Hi,
 Let's skip the nautilus part. Right after i submitted bugreport it
 started working normally  (I suspect this is related with todays
 poppler update).
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Mar 22 17:29:49 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177226 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/177226: commit references a PR
Date: Sat, 23 Nov 2013 23:05:13 +0000 (UTC)

 Author: kwm
 Date: Sat Nov 23 23:04:57 2013
 New Revision: 334698
 URL: http://svnweb.freebsd.org/changeset/ports/334698
 
 Log:
   Fix run-time with glib 2.36 [1]
   While here stageify, and use new lib_depend syntax.
   
   PR:		ports/177226 [1]
   Reported by:	Eimar Koort <eimar.koort@gmail.com>
 
 Added:
   head/mail/gnome-gmail-notifier/files/patch-src_main.c   (contents, props changed)
 Modified:
   head/mail/gnome-gmail-notifier/Makefile
 
 Modified: head/mail/gnome-gmail-notifier/Makefile
 ==============================================================================
 --- head/mail/gnome-gmail-notifier/Makefile	Sat Nov 23 22:47:39 2013	(r334697)
 +++ head/mail/gnome-gmail-notifier/Makefile	Sat Nov 23 23:04:57 2013	(r334698)
 @@ -2,16 +2,16 @@
  
  PORTNAME=	gnome-gmail-notifier
  PORTVERSION=	0.10.1
 -PORTREVISION=	3
 +PORTREVISION=	4
  CATEGORIES=	mail deskutils
  MASTER_SITES=	GOOGLE_CODE
  
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Gmail Inbox Monitor for the GNOME2 desktop
  
 -LIB_DEPENDS=	notify.4:${PORTSDIR}/devel/libnotify \
 -		soup-2.4:${PORTSDIR}/devel/libsoup \
 -		gnome-keyring.0:${PORTSDIR}/security/gnome-keyring
 +LIB_DEPENDS=	libnotify.so:${PORTSDIR}/devel/libnotify \
 +		libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
 +		libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring
  
  GNU_CONFIGURE=	yes
  USE_BZIP2=	yes
 @@ -20,10 +20,8 @@ USE_GNOME=	glib20 gtk20 gconf2 libxml2 l
  USE_GSTREAMER=	good
  LDFLAGS+=	-L${LOCALBASE}/lib -lintl
  
 -NO_STAGE=	yes
  post-patch:
  	@${REINPLACE_CMD} -e 's|@DATADIRNAME@|share|' ${WRKSRC}/po/Makefile.in.in
  	@${REINPLACE_CMD} -e 's|<glib/gthread.h>|<glib.h>|g' ${WRKSRC}/src/main.h
  
 -
  .include <bsd.port.mk>
 
 Added: head/mail/gnome-gmail-notifier/files/patch-src_main.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/mail/gnome-gmail-notifier/files/patch-src_main.c	Sat Nov 23 23:04:57 2013	(r334698)
 @@ -0,0 +1,19 @@
 +--- src/main.c.orig	2013-11-23 23:59:43.000000000 +0100
 ++++ src/main.c	2013-11-24 00:00:28.000000000 +0100
 +@@ -58,6 +58,7 @@
 + 
 +   /* start gdk threads. */
 +   gdk_threads_init ();
 ++  gdk_threads_enter();
 + 
 +   /* lock and start gtk. */
 +   gtk_init (&argc, &argv);
 +@@ -71,6 +72,8 @@
 +   /* punt control to the manager. */
 +   ggn_manager_main (manager, argc, argv);
 + 
 ++  gdk_threads_leave();
 ++
 +   /* exit the application. */
 +   return 0;
 + }
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
