mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
office/evince: Fixed segfault due to missing configdir
If $HOME/.gnome2/evince/ is not already present, then evince segfaults because it is unable to write last_settings inside that directory. The included patch should fix that up. Thanks to Morten Juhl-Johansen Zölde-Fejéfor the report. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
1cc2be705d
commit
3fbfc78a07
2 changed files with 16 additions and 1 deletions
12
office/evince/evince-2.30.1-create_dotdir_on_startup.patch
Normal file
12
office/evince/evince-2.30.1-create_dotdir_on_startup.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Nur evince-2.30.1.orig//shell/ev-window.c evince-2.30.1/shell/ev-window.c
|
||||
--- evince-2.30.1.orig//shell/ev-window.c 2010-04-26 09:58:15.000000000 -0500
|
||||
+++ evince-2.30.1/shell/ev-window.c 2010-06-03 16:54:29.974562518 -0500
|
||||
@@ -6107,7 +6107,7 @@
|
||||
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);
|
||||
|
5
office/evince/evince.SlackBuild
Executable file → Normal file
5
office/evince/evince.SlackBuild
Executable file → Normal file
|
@ -25,7 +25,7 @@
|
|||
|
||||
PRGNAM=evince
|
||||
VERSION=${VERSION:-2.30.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG=_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -81,6 +81,9 @@ if [ "$NLS" != "YES" ]; then
|
|||
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/g' configure
|
||||
fi
|
||||
|
||||
# Create the $HOME/.gnome2/evince/ directory before trying to write files there
|
||||
patch -p1 < $CWD/evince-2.30.1-create_dotdir_on_startup.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
Loading…
Reference in a new issue