Bug 177226 - devel/glib20 update: gnome-gmail-notifier won't start and nautilus eats cpu
Summary: devel/glib20 update: gnome-gmail-notifier won't start and nautilus eats cpu
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-22 09:30 UTC by ekoort
Modified: 2015-03-24 19:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ekoort 2013-03-22 09:30:00 UTC
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.
Comment 1 ekoort 2013-03-22 09:48:26 UTC
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).
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-22 17:29:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-11-23 23:05:13 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"
Comment 4 Bartek Rutkowski freebsd_committer freebsd_triage 2015-03-24 19:54:20 UTC
Closing this PR as the fix to the issue reported was already committed.