Bug 177652 - Fails to launch graphics/mirage 0.9.5.2_1
Summary: Fails to launch graphics/mirage 0.9.5.2_1
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: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 11:40 UTC by eric.douzet
Modified: 2013-04-10 19:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eric.douzet 2013-04-05 11:40:00 UTC
Hello,

There is a problem with Python, at the starting of mirage-0.9.5.2_1, one python core dump is generated.

Best regards,

Eric Douzet



PS : python27-2.7.3_6 and python32-3.2.3_2 are installed.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-04-05 16:23:56 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 robert.ayrapetyan 2013-04-07 09:15:22 UTC
The issue is same as here:
http://freebsd.1045724.n5.nabble.com/ports-176888-PATCH-audio-sonata-crashes-since-last-devel-glib20-update-td5795080.html.
Must be fixed in glib20.
Comment 3 robert.ayrapetyan 2013-04-08 00:57:11 UTC
After more detailed look into sources found wrong order of calling
gtk.gdk.threads_* methods on app initialization stage (threads_enter()
function is not called yet in some circumstances, which somehow worked
prior latest glib20 release).
Putting threads_* calls into correct order solves an issue.

However, issue is already solved in 1.0-svn version, so fastest solution is
like:

cd /usr/local/lib/python2.7/site-packages
sudo wget -N http://svn.berlios.de/svnroot/repos/mirageiv/trunk/mirage.py
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-04-10 18:57:11 UTC
Author: pawel
Date: Wed Apr 10 17:57:03 2013
New Revision: 315778
URL: http://svnweb.freebsd.org/changeset/ports/315778

Log:
  Add upstream patch to fix crash at startup after
  recent glib2 update
  
  PR:		ports/177652
  Reported by:	Eric Douzet <eric.douzet@gmail.com>
  Approved by:	portmgr (bdrewery)

Added:
  head/graphics/mirage/files/patch-mirage.py   (contents, props changed)
Modified:
  head/graphics/mirage/Makefile   (contents, props changed)

Modified: head/graphics/mirage/Makefile
==============================================================================
--- head/graphics/mirage/Makefile	Wed Apr 10 17:06:58 2013	(r315777)
+++ head/graphics/mirage/Makefile	Wed Apr 10 17:57:03 2013	(r315778)
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	mirage
-# Date created:		31 January 2007
-# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
-#
+# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	mirage
 PORTVERSION=	0.9.5.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	BERLIOS/mirageiv
 

Added: head/graphics/mirage/files/patch-mirage.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/mirage/files/patch-mirage.py	Wed Apr 10 17:57:03 2013	(r315778)
@@ -0,0 +1,20 @@
+--- mirage.py.orig	2013-04-10 19:04:47.000000000 +0200
++++ mirage.py	2013-04-10 19:05:50.000000000 +0200
+@@ -1,3 +1,4 @@
++#!/usr/bin/python2
+ # $HeadURL: http://svn.berlios.de/svnroot/repos/mirageiv/branches/mirage-0.9.x/mirage.py $
+ # $Id: mirage.py 337 2011-02-13 22:40:05Z fredricj $
+ 
+@@ -4575,10 +4576,10 @@
+ 				timer_screensaver = gobject.timeout_add(1000, self.disable_screensaver_in_slideshow_mode)
+ 
+ 	def main(self):
++		gtk.gdk.threads_enter()
+ 		gtk.main()
++		gtk.gdk.threads_leave()
+ 
+ if __name__ == "__main__":
+ 	base = Base()
+-	gtk.gdk.threads_enter()
+ 	base.main()
+-	gtk.gdk.threads_leave()
_______________________________________________
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 5 Pawel Pekala freebsd_committer freebsd_triage 2013-04-10 18:58:17 UTC
State Changed
From-To: open->closed

Fixed in r315778. Thanks for reporting!