From 926a65e81f6b629df6dd017c4b52d10e56e0d1eb Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Tue, 22 Jun 2010 10:28:53 +0000 Subject: [PATCH] use valgrind in make check --- hunspell-1.2.11-valgrind.patch | 14 ++++ hunspell.spec | 132 ++++++++++++++++++--------------- 2 files changed, 86 insertions(+), 60 deletions(-) create mode 100644 hunspell-1.2.11-valgrind.patch diff --git a/hunspell-1.2.11-valgrind.patch b/hunspell-1.2.11-valgrind.patch new file mode 100644 index 0000000..a48e780 --- /dev/null +++ b/hunspell-1.2.11-valgrind.patch @@ -0,0 +1,14 @@ +--- hunspell-1.2.11/tests/test.sh 2010-06-22 11:12:00.000000000 +0100 ++++ hunspell-1.2.11/tests/test.sh 2010-06-22 11:12:08.000000000 +0100 +@@ -41,8 +41,9 @@ + if [ ! -d $TEMPDIR/badlogs ]; then + mkdir $TEMPDIR/badlogs + fi +- alias hunspell='valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/.libs/lt-hunspell' +- alias analyze='valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/.libs/lt-analyze' ++ ++ alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell' ++ alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/analyze' + fi + + # Tests good words diff --git a/hunspell.spec b/hunspell.spec index fbdd51c..06fb1e3 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -1,13 +1,17 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.2.11 -Release: 1%{?dist} +Release: 2%{?dist} Source: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz Group: System Environment/Libraries URL: http://hunspell.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: LGPLv2+ or GPLv2+ or MPLv1.1 BuildRequires: ncurses-devel +%ifarch %{ix86} x86_64 +BuildRequires: valgrind +%endif +Patch0: hunspell-1.2.11-valgrind.patch %description Hunspell is a spell checker and morphological analyzer library and program @@ -25,13 +29,18 @@ Includes and definitions for developing with hunspell %prep %setup -q +%patch0 -p1 -b .valgrind %build %configure --disable-rpath --disable-static --with-ui --with-readline make %{?_smp_mflags} %check -make -C tests check-TESTS +%ifarch %{ix86} x86_64 +VALGRIND=memcheck make check +%else +make check +%endif %install rm -rf $RPM_BUILD_ROOT @@ -80,200 +89,203 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/hunspell.3.gz %changelog -* Thu May 06 2010 Caolan McNamara - 1.2.11-1 +* Tue Jun 22 2010 Caolán McNamara - 1.2.11-2 +- use valgrind in make check + +* Thu May 06 2010 Caolán McNamara - 1.2.11-1 - Resolves: rhbz#589326 wrong malloc -* Fri Apr 30 2010 Caolan McNamara - 1.2.10-1 +* Fri Apr 30 2010 Caolán McNamara - 1.2.10-1 - latest version -* Thu Mar 04 2010 Caolan McNamara - 1.2.9-2 +* Thu Mar 04 2010 Caolán McNamara - 1.2.9-2 - Resolves: ooo#107768 hunspell-1.2.9-stacksmash.patch -* Wed Mar 03 2010 Caolan McNamara - 1.2.9-1 +* Wed Mar 03 2010 Caolán McNamara - 1.2.9-1 - latest version, drop all upstreamed patchs -* Mon Mar 01 2010 Caolan McNamara - 1.2.8-17 +* Mon Mar 01 2010 Caolán McNamara - 1.2.8-17 - Resolves: rhbz#569449 hu man dir now exists in filesystem -* Mon Jan 18 2010 Caolan McNamara - 1.2.8-16 +* Mon Jan 18 2010 Caolán McNamara - 1.2.8-16 - Resolves: rhbz#554876 fix suggestmgr crash -* Tue Jan 05 2010 Caolan McNamara - 1.2.8-15 +* Tue Jan 05 2010 Caolán McNamara - 1.2.8-15 - Remove bad const warnings -* Mon Dec 21 2009 Caolan McNamara - 1.2.8-14 +* Mon Dec 21 2009 Caolán McNamara - 1.2.8-14 - Preserve timestamps -* Tue Dec 08 2009 Caolan McNamara - 1.2.8-13 +* Tue Dec 08 2009 Caolán McNamara - 1.2.8-13 - Resolves: rhbz#544372 survive having no HOME -* Thu Jul 30 2009 Caolan McNamara - 1.2.8-12 +* Thu Jul 30 2009 Caolán McNamara - 1.2.8-12 - handle some other interesting edge-cases * Fri Jul 24 2009 Fedora Release Engineering - 1.2.8-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild -* Thu Jul 23 2009 Caolan McNamara - 1.2.8-10 +* Thu Jul 23 2009 Caolán McNamara - 1.2.8-10 - run tests in check -* Thu Jul 09 2009 Caolan McNamara - 1.2.8-9 +* Thu Jul 09 2009 Caolán McNamara - 1.2.8-9 - Resolves: rhbz#510360 unowned dirs - fix up rpmlint warnings -* Tue Jul 07 2009 Caolan McNamara - 1.2.8-8 +* Tue Jul 07 2009 Caolán McNamara - 1.2.8-8 - Resolves: rhbz#509882 ignore an empty LANGUAGE variable -* Fri Jun 26 2009 Caolan McNamara - 1.2.8-7 +* Fri Jun 26 2009 Caolán McNamara - 1.2.8-7 - Related: rhbz#498556 default to something sensible in "C" locale for language -* Wed Jun 24 2009 Caolan McNamara - 1.2.8-6 +* Wed Jun 24 2009 Caolán McNamara - 1.2.8-6 - Resolves: rhbz#507829 fortify fixes -* Fri May 01 2009 Caolan McNamara - 1.2.8-5 +* Fri May 01 2009 Caolán McNamara - 1.2.8-5 - Resolves: rhbz#498556 fix default language detection * Tue Feb 24 2009 Fedora Release Engineering - 1.2.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild -* Sun Nov 23 2008 Caolan McNamara - 1.2.8-3 +* Sun Nov 23 2008 Caolán McNamara - 1.2.8-3 - tweak summary -* Wed Nov 19 2008 Caolan McNamara - 1.2.8-2 +* Wed Nov 19 2008 Caolán McNamara - 1.2.8-2 - Resolves: rhbz#471085 in ispell compatible mode (-a), ignore -m option which means something different to ispell -* Sun Nov 02 2008 Caolan McNamara - 1.2.8-1 +* Sun Nov 02 2008 Caolán McNamara - 1.2.8-1 - latest version -* Sat Oct 18 2008 Caolan McNamara - 1.2.7-5 +* Sat Oct 18 2008 Caolán McNamara - 1.2.7-5 - sort as per "C" locale -* Fri Oct 17 2008 Caolan McNamara - 1.2.7-4 +* Fri Oct 17 2008 Caolán McNamara - 1.2.7-4 - make wordlist2hunspell remove blank lines -* Mon Sep 15 2008 Caolan McNamara - 1.2.7-3 +* Mon Sep 15 2008 Caolán McNamara - 1.2.7-3 - Workaround rhbz#462184 uniq/sort problems with viramas -* Tue Sep 09 2008 Caolan McNamara - 1.2.7-2 +* Tue Sep 09 2008 Caolán McNamara - 1.2.7-2 - add wordlist2hunspell -* Sat Aug 23 2008 Caolan McNamara - 1.2.7-1 +* Sat Aug 23 2008 Caolán McNamara - 1.2.7-1 - latest version -* Tue Jul 29 2008 Caolan McNamara - 1.2.6-1 +* Tue Jul 29 2008 Caolán McNamara - 1.2.6-1 - latest version -* Sun Jul 27 2008 Caolan McNamara - 1.2.5-1 +* Sun Jul 27 2008 Caolán McNamara - 1.2.5-1 - latest version * Tue Jul 22 2008 Kristian Høgsberg - 1.2.4.2-2 - Drop ABI breaking hunspell-1.2.2-xulrunner.pita.patch and fix the hunspell include in xulrunner. -* Fri Jun 18 2008 Caolan McNamara - 1.2.4.2-1 +* Fri Jun 18 2008 Caolán McNamara - 1.2.4.2-1 - latest version -* Thu Jun 17 2008 Caolan McNamara - 1.2.4-1 +* Thu Jun 17 2008 Caolán McNamara - 1.2.4-1 - latest version -* Fri May 16 2008 Caolan McNamara - 1.2.2-3 +* Fri May 16 2008 Caolán McNamara - 1.2.2-3 - Resolves: rhbz#446821 fix crash -* Wed May 14 2008 Caolan McNamara - 1.2.2-2 +* Wed May 14 2008 Caolán McNamara - 1.2.2-2 - give xulrunner what it needs so we can get on with it -* Fri Apr 18 2008 Caolan McNamara - 1.2.2-1 +* Fri Apr 18 2008 Caolán McNamara - 1.2.2-1 - latest version - drop integrated hunspell-1.2.1-1863239.badstructs.patch -* Wed Mar 05 2008 Caolan McNamara - 1.2.1-6 +* Wed Mar 05 2008 Caolán McNamara - 1.2.1-6 - add ispellaff2myspell to devel * Mon Feb 18 2008 Fedora Release Engineering - 1.2.1-5 - Autorebuild for GCC 4.3 -* Thu Jan 03 2008 Caolan McNamara - 1.2.1-4 +* Thu Jan 03 2008 Caolán McNamara - 1.2.1-4 - add hunspell-1.2.1-1863239.badstructs.patch -* Fri Nov 09 2007 Caolan McNamara - 1.2.1-2 +* Fri Nov 09 2007 Caolán McNamara - 1.2.1-2 - pkg-config cockup -* Mon Nov 05 2007 Caolan McNamara - 1.2.1-1 +* Mon Nov 05 2007 Caolán McNamara - 1.2.1-1 - latest version -* Mon Oct 08 2007 Caolan McNamara - 1.1.12.2-2 +* Mon Oct 08 2007 Caolán McNamara - 1.1.12.2-2 - lang fix for man pages from Ville Skyttä -* Wed Sep 05 2007 Caolan McNamara - 1.1.12.2-1 +* Wed Sep 05 2007 Caolán McNamara - 1.1.12.2-1 - next version -* Tue Aug 28 2007 Caolan McNamara - 1.1.11.2-1 +* Tue Aug 28 2007 Caolán McNamara - 1.1.11.2-1 - next version -* Fri Aug 24 2007 Caolan McNamara - 1.1.10-1 +* Fri Aug 24 2007 Caolán McNamara - 1.1.10-1 - next version -* Thu Aug 02 2007 Caolan McNamara - 1.1.9-2 +* Thu Aug 02 2007 Caolán McNamara - 1.1.9-2 - clarify license -* Wed Jul 25 2007 Caolan McNamara - 1.1.9-1 +* Wed Jul 25 2007 Caolán McNamara - 1.1.9-1 - latest version -* Wed Jul 18 2007 Caolan McNamara - 1.1.8.2-1 +* Wed Jul 18 2007 Caolán McNamara - 1.1.8.2-1 - latest version -* Tue Jul 17 2007 Caolan McNamara - 1.1.8-1 +* Tue Jul 17 2007 Caolán McNamara - 1.1.8-1 - latest version -* Sat Jul 07 2007 Caolan McNamara - 1.1.7-1 +* Sat Jul 07 2007 Caolán McNamara - 1.1.7-1 - latest version - drop integrated hunspell-1.1.5.freem.patch -* Fri Jun 29 2007 Caolan McNamara - 1.1.6-1 +* Fri Jun 29 2007 Caolán McNamara - 1.1.6-1 - latest version - drop integrated hunspell-1.1.4-defaultdictfromlang.patch - drop integrated hunspell-1.1.5-badheader.patch - drop integrated hunspell-1.1.5.encoding.patch -* Fri Jun 29 2007 Caolan McNamara - 1.1.5.3-5 +* Fri Jun 29 2007 Caolán McNamara - 1.1.5.3-5 - fix memory leak http://sourceforge.net/tracker/index.php?func=detail&aid=1745263&group_id=143754&atid=756395 -* Wed Jun 06 2007 Caolan McNamara - 1.1.5.3-4 +* Wed Jun 06 2007 Caolán McNamara - 1.1.5.3-4 - Resolves: rhbz#212984 discovered problem with missing wordchars -* Tue May 22 2007 Caolan McNamara - 1.1.5.3-3 +* Tue May 22 2007 Caolán McNamara - 1.1.5.3-3 - Resolves: rhbz#240696 extend encoding patch to promote and add dictionary 8bit WORDCHARS to the ucs-2 word char list -* Mon May 21 2007 Caolan McNamara - 1.1.5.3-2 +* Mon May 21 2007 Caolán McNamara - 1.1.5.3-2 - Resolves: rhbz#240696 add hunspell-1.1.5.encoding.patch -* Mon May 21 2007 Caolan McNamara - 1.1.5.3-1 +* Mon May 21 2007 Caolán McNamara - 1.1.5.3-1 - patchlevel release -* Tue Mar 20 2007 Caolan McNamara - 1.1.5-2 +* Tue Mar 20 2007 Caolán McNamara - 1.1.5-2 - some junk in delivered headers -* Tue Mar 20 2007 Caolan McNamara - 1.1.5-1 +* Tue Mar 20 2007 Caolán McNamara - 1.1.5-1 - next version -* Fri Feb 09 2007 Caolan McNamara - 1.1.4-6 +* Fri Feb 09 2007 Caolán McNamara - 1.1.4-6 - some spec cleanups -* Fri Jan 19 2007 Caolan McNamara - 1.1.4-5 +* Fri Jan 19 2007 Caolán McNamara - 1.1.4-5 - .pc -* Thu Jan 11 2007 Caolan McNamara - 1.1.4-4 +* Thu Jan 11 2007 Caolán McNamara - 1.1.4-4 - fix out of range -* Fri Dec 15 2006 Caolan McNamara - 1.1.4-3 +* Fri Dec 15 2006 Caolán McNamara - 1.1.4-3 - hunspell#1616353 simple c api for hunspell -* Wed Nov 29 2006 Caolan McNamara - 1.1.4-2 +* Wed Nov 29 2006 Caolán McNamara - 1.1.4-2 - add hunspell-1.1.4-defaultdictfromlang.patch to take locale as default dictionary -* Wed Oct 25 2006 Caolan McNamara - 1.1.4-1 +* Wed Oct 25 2006 Caolán McNamara - 1.1.4-1 - initial version