Date: Thursday, April 29, 2010 @ 15:08:36
  Author: ibiru
Revision: 78993

upgpkg: evince 2.30.1-2
fix opening evince when ~/.gnome2/evince doesn't exists to create last_settings 
file

Added:
  evince/trunk/fix_creating_last_settings.patch
Modified:
  evince/trunk/PKGBUILD

----------------------------------+
 PKGBUILD                         |    9 ++++++---
 fix_creating_last_settings.patch |   22 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2010-04-29 16:05:50 UTC (rev 78992)
+++ PKGBUILD    2010-04-29 19:08:36 UTC (rev 78993)
@@ -3,7 +3,7 @@
 
 pkgname=evince
 pkgver=2.30.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Simply a document viewer"
 url="http://www.gnome.org";
 arch=('i686' 'x86_64')
@@ -15,11 +15,14 @@
 groups=('gnome-extra')
 install=evince.install
 options=('!libtool' '!emptydirs')
-source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.30/${pkgname}-${pkgver}.tar.bz2)
-sha256sums=('ab6b957ab422341f023baa8ee4061bc5719389f92d6745874d239cd1e737f225')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.30/${pkgname}-${pkgver}.tar.bz2
+       fix_creating_last_settings.patch)
+sha256sums=('ab6b957ab422341f023baa8ee4061bc5719389f92d6745874d239cd1e737f225'
+           '8a6b6fc4752ead2f2843782e581ae66717cea62a778a39f17da5a9ca82014f9d')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i ${srcdir}/fix_creating_last_settings.patch || return 1
   ./configure --prefix=/usr --sysconfdir=/etc \
       --localstatedir=/var --libexecdir=/usr/lib/evince \
       --disable-static --enable-nautilus \

Added: fix_creating_last_settings.patch
===================================================================
--- fix_creating_last_settings.patch                            (rev 0)
+++ fix_creating_last_settings.patch    2010-04-29 19:08:36 UTC (rev 78993)
@@ -0,0 +1,22 @@
+From 0ac70b958c575996f760fdd987718649398fd51b Mon Sep 17 00:00:00 2001
+From: Carlos Garcia Campos <carlo...@gnome.org>
+Date: Thu, 29 Apr 2010 09:53:26 +0000
+Subject: Make sure dot_dir exists before creating last_settings file
+
+Fixes bug #617154.
+---
+diff --git a/shell/ev-window.c b/shell/ev-window.c
+index fb40f70..4c4c460 100644
+--- a/shell/ev-window.c
++++ b/shell/ev-window.c
+@@ -6107,7 +6107,7 @@ ev_window_create_last_settings_metadata (EvWindow 
*window)
+       GFile *file;
+       gchar *path;
+ 
+-      path = g_build_filename (ev_application_get_dot_dir (EV_APP, FALSE), 
"last_settings", NULL);
++      path = g_build_filename (ev_application_get_dot_dir (EV_APP, TRUE), 
"last_settings", NULL);
+       file = g_file_new_for_path (path);
+       g_free (path);
+ 
+--
+cgit v0.8.3.1

Reply via email to