[aspell/f17] - resolves: #813261 fixed crash when trying to run "aspell dump personal"
pschiffe
pschiffe at fedoraproject.org
Fri Jul 20 10:39:58 UTC 2012
commit 8cd76eda94fd6d79a958d9d65d3a4484baa4f9f6
Author: Peter Schiffer <pschiffe at redhat.com>
Date: Fri Jul 20 12:39:21 2012 +0200
- resolves: #813261
fixed crash when trying to run "aspell dump personal"
aspell-0.60.6.1-dump-personal-abort.patch | 13 +++++++++++++
aspell.spec | 8 +++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/aspell-0.60.6.1-dump-personal-abort.patch b/aspell-0.60.6.1-dump-personal-abort.patch
new file mode 100644
index 0000000..6aa982f
--- /dev/null
+++ b/aspell-0.60.6.1-dump-personal-abort.patch
@@ -0,0 +1,13 @@
+diff -upr aspell-0.60.6.1.orig/prog/aspell.cpp aspell-0.60.6.1/prog/aspell.cpp
+--- aspell-0.60.6.1.orig/prog/aspell.cpp 2011-07-04 11:13:58.000000000 +0200
++++ aspell-0.60.6.1/prog/aspell.cpp 2012-07-19 15:16:43.204799622 +0200
+@@ -1570,7 +1570,8 @@ void personal () {
+
+ Config * config = options;
+ Dictionary * per = new_default_writable_dict();
+- per->load(config->retrieve("personal-path"), *config);
++ PosibErr<void> pe = per->load(config->retrieve("personal-path"), *config);
++ if (pe.has_err()) {print_error(pe.get_err()->mesg); exit(1);}
+ StackPtr<WordEntryEnumeration> els(per->detailed_elements());
+ StackPtr<Convert> conv(setup_conv(per->lang(), config));
+
diff --git a/aspell.spec b/aspell.spec
index 4de3af9..0ac8290 100644
--- a/aspell.spec
+++ b/aspell.spec
@@ -1,7 +1,7 @@
Summary: Spell checker
Name: aspell
Version: 0.60.6.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 12
# LGPLv2+ .. aspell-0.60.6/misc/po-filter.c, ltmain.sh, modules/speller/default/affix.cpp
# GPLv2+ .. aspell-0.60.6/misc/po-filter.c, aspell-0.60.6/ltmain.sh
@@ -15,6 +15,7 @@ Patch5: aspell-0.60.5-fileconflict.patch
Patch7: aspell-0.60.5-pspell_conf.patch
Patch8: aspell-0.60.6-zero.patch
Patch9: aspell-0.60.6-mp.patch
+Patch10: aspell-0.60.6.1-dump-personal-abort.patch
BuildRequires: gettext, ncurses-devel, pkgconfig
BuildRequires: chrpath
Requires(pre): /sbin/install-info
@@ -49,6 +50,7 @@ libraries and header files needed for Aspell development.
%patch7 -p1 -b .mlib
%patch8 -p1 -b .zero
%patch9 -p1 -b .ai
+%patch10 -p1 -b .dump-personal
iconv -f windows-1252 -t utf-8 manual/aspell.info -o manual/aspell.info.aux
mv manual/aspell.info.aux manual/aspell.info
@@ -143,6 +145,10 @@ fi
%{_mandir}/man1/pspell-config.1*
%changelog
+* Fri Jul 20 2012 Peter Schiffer <pschiffe at redhat.com> - 12:0.60.6.1-3
+- resolves: #813261
+ fixed crash when trying to run "aspell dump personal"
+
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 12:0.60.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list