Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2013 17:22:33 GMT
From:      Quentin Stievenart <acieroid@awesom.eu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175513: [patch] graphics/zathura: update to 0.2.2
Message-ID:  <201301221722.r0MHMXlK080621@red.freebsd.org>
Resent-Message-ID: <201301221730.r0MHU2R1011552@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175513
>Category:       ports
>Synopsis:       [patch] graphics/zathura: update to 0.2.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 22 17:30:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Quentin Stievenart
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD daemon 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Updated to 0.2.2. A patch is needed to use the old static mutexes of glib (deprecated since 2.32, but only glib 2.28 is available in the ports tree).
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN --exclude=CVS /usr/ports/graphics/zathura/Makefile ./Makefile
--- /usr/ports/graphics/zathura/Makefile	2012-11-17 06:58:26.000000000 +0100
+++ ./Makefile	2013-01-22 18:10:06.000000000 +0100
@@ -2,7 +2,7 @@
 # $FreeBSD: ports/graphics/zathura/Makefile,v 1.18 2012/11/17 05:58:26 svnexp Exp $
 
 PORTNAME=	zathura
-PORTVERSION=	0.2.1
+PORTVERSION=	0.2.2
 PORTREVISION=	1
 CATEGORIES=	graphics print
 MASTER_SITES=	http://pwmt.org/projects/zathura/download/
@@ -11,7 +11,7 @@
 COMMENT=	Customizable lightweight pdf viewer
 
 LIB_DEPENDS=	cairo:${PORTSDIR}/graphics/cairo \
-		girara-gtk2.1:${PORTSDIR}/x11-toolkits/girara
+		girara-gtk2:${PORTSDIR}/x11-toolkits/girara
 
 USE_GNOME=	glib20 gtk20
 USE_GMAKE=	yes
diff -ruN --exclude=CVS /usr/ports/graphics/zathura/distinfo ./distinfo
--- /usr/ports/graphics/zathura/distinfo	2012-09-27 14:07:50.000000000 +0200
+++ ./distinfo	2013-01-22 18:07:37.000000000 +0100
@@ -1,2 +1,2 @@
-SHA256 (zathura-0.2.1.tar.gz) = 075b9def201c77ca738dc9e15b252bc23c085b7c4671a1810d1d962e8d0bd790
-SIZE (zathura-0.2.1.tar.gz) = 95179
+SHA256 (zathura-0.2.2.tar.gz) = 6506237ba76ce1611dc24ddd870853d753b5e70e5200d75d2a2257ff7c9242c9
+SIZE (zathura-0.2.2.tar.gz) = 108240
diff -ruN --exclude=CVS /usr/ports/graphics/zathura/files/patch-render.c ./files/patch-render.c
--- /usr/ports/graphics/zathura/files/patch-render.c	1970-01-01 01:00:00.000000000 +0100
+++ ./files/patch-render.c	2013-01-22 17:24:16.000000000 +0100
@@ -0,0 +1,36 @@
+--- render.c.orig	2013-01-22 17:23:39.000000000 +0100
++++ render.c	2013-01-22 17:23:03.000000000 +0100
+@@ -19,7 +19,7 @@
+ 
+ struct render_thread_s {
+   GThreadPool* pool; /**< Pool of threads */
+-  GMutex mutex; /**< Render lock */
++  GStaticMutex mutex; /**< Render lock */
+   bool about_to_close; /**< Render thread is to be freed */
+ };
+ 
+@@ -51,7 +51,7 @@
+ 
+   render_thread->about_to_close = false;
+   g_thread_pool_set_sort_function(render_thread->pool, render_thread_sort, zathura);
+-  g_mutex_init(&render_thread->mutex);
++  g_static_mutex_init(&render_thread->mutex);
+ 
+   return render_thread;
+ 
+@@ -328,7 +328,7 @@
+     return;
+   }
+ 
+-  g_mutex_lock(&render_thread->mutex);
++  g_static_mutex_lock(&render_thread->mutex);
+ }
+ 
+ void
+@@ -338,5 +338,5 @@
+     return;
+   }
+ 
+-  g_mutex_unlock(&render_thread->mutex);
++  g_static_mutex_unlock(&render_thread->mutex);
+ }


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301221722.r0MHMXlK080621>