diff options
author | rillig <rillig@pkgsrc.org> | 2005-10-27 00:18:51 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-10-27 00:18:51 +0000 |
commit | 5c807457de8bd73f6419363b5860c0bcd8877603 (patch) | |
tree | c843f5ec45df53957bbdaf628733ee92159f311c /textproc/aspell/patches | |
parent | 5ae92bfa28da1d6f15b391a5c6d900c66c6b025a (diff) | |
download | pkgsrc-5c807457de8bd73f6419363b5860c0bcd8877603.tar.gz |
Added four patches that are required for the SunPro compiler. The
package still does not build on Solaris, but at least it's making
progress.
Diffstat (limited to 'textproc/aspell/patches')
-rw-r--r-- | textproc/aspell/patches/patch-ah | 15 | ||||
-rw-r--r-- | textproc/aspell/patches/patch-ai | 64 | ||||
-rw-r--r-- | textproc/aspell/patches/patch-aj | 15 | ||||
-rw-r--r-- | textproc/aspell/patches/patch-ak | 19 |
4 files changed, 113 insertions, 0 deletions
diff --git a/textproc/aspell/patches/patch-ah b/textproc/aspell/patches/patch-ah new file mode 100644 index 00000000000..b3a787d62a7 --- /dev/null +++ b/textproc/aspell/patches/patch-ah @@ -0,0 +1,15 @@ +$NetBSD: patch-ah,v 1.1 2005/10/27 00:18:51 rillig Exp $ + +The SunPro compiler does not like static inline template<>s. + +--- common/string.hpp.orig Mon Nov 29 18:50:05 2004 ++++ common/string.hpp Tue Oct 25 03:45:20 2005 +@@ -492,7 +492,7 @@ namespace acommon { + + namespace std + { +- template<> static inline void swap(acommon::String & x, acommon::String & y) {return x.swap(y);} ++ template<> inline void swap(acommon::String & x, acommon::String & y) {return x.swap(y);} + } + + #endif diff --git a/textproc/aspell/patches/patch-ai b/textproc/aspell/patches/patch-ai new file mode 100644 index 00000000000..9f1e7dd794a --- /dev/null +++ b/textproc/aspell/patches/patch-ai @@ -0,0 +1,64 @@ +$NetBSD: patch-ai,v 1.1 2005/10/27 00:18:51 rillig Exp $ + +The SunPro compiler does not like static inline template<>s. + +--- common/lsort.hpp.orig 2005-10-27 01:57:11.515745500 +0200 ++++ common/lsort.hpp 2005-10-27 01:57:40.246031300 +0200 +@@ -44,7 +44,7 @@ struct Less { + + + template <class N, class LT, class NX> +-static inline N * merge(N * x, N * y, const LT & lt, const NX & nx) ++inline N * merge(N * x, N * y, const LT & lt, const NX & nx) + { + if (lt(y,x)) swap(x,y); + N * first = x; +@@ -67,7 +67,7 @@ static inline N * merge(N * x, N * y, co + // THIS is SLOWER!!! + // and even slower when condational move is used!!!! + template <class N, class LT, class NX> +-static inline N * merge1(N * x, N * y, const LT & lt, const NX & nx) ++inline N * merge1(N * x, N * y, const LT & lt, const NX & nx) + { + N * * cur = lt(x,y) ? &x : &y; + N * first = *cur; +@@ -85,13 +85,13 @@ static inline N * merge1(N * x, N * y, c + } + + template <class N, class LT> +-static inline N * merge(N * x, N * y, const LT & lt) ++inline N * merge(N * x, N * y, const LT & lt) + { + return sort(x, y, lt, Next<N>()); + } + + template <class N> +-static inline N * merge(N * x, N * y) ++inline N * merge(N * x, N * y) + { + return sort(x, y, Less<N>(), Next<N>()); + } +@@ -133,20 +133,20 @@ N * sort(N * first, const LT & lt, const + } + + template <class N, class LT> +-static inline N * sort(N * first, const LT & lt) ++inline N * sort(N * first, const LT & lt) + { + return sort(first, lt, Next<N>()); + } + + template <class N> +-static inline N * sort(N * first) ++inline N * sort(N * first) + { + return sort(first, Less<N>(), Next<N>()); + } + + + template <class N> +-static inline N * fix_links(N * cur) ++inline N * fix_links(N * cur) + { + N * prev = 0; + while (cur) { diff --git a/textproc/aspell/patches/patch-aj b/textproc/aspell/patches/patch-aj new file mode 100644 index 00000000000..fceb7df67a6 --- /dev/null +++ b/textproc/aspell/patches/patch-aj @@ -0,0 +1,15 @@ +$NetBSD: patch-aj,v 1.1 2005/10/27 00:18:51 rillig Exp $ + +To understand recursion, you first have to understand recursion. + +--- modules/speller/default/readonly_ws.cpp.orig 2005-06-26 02:43:33.000000000 +0200 ++++ modules/speller/default/readonly_ws.cpp 2005-10-27 01:59:36.217186900 +0200 +@@ -721,7 +721,7 @@ namespace { + struct WordLookupParms { + const char * block_begin; + WordLookupParms() {} +- typedef Vector<u32int> Vector; ++ typedef aspeller::Vector<u32int> Vector; + typedef u32int Value; + typedef const char * Key; + static const bool is_multi = false; diff --git a/textproc/aspell/patches/patch-ak b/textproc/aspell/patches/patch-ak new file mode 100644 index 00000000000..60269dfdfa3 --- /dev/null +++ b/textproc/aspell/patches/patch-ak @@ -0,0 +1,19 @@ +$NetBSD: patch-ak,v 1.1 2005/10/27 00:18:51 rillig Exp $ + +What happens if you call two parameters by the same name? It's a +compile-time error. What a surprise. + +--- modules/speller/default/affix.hpp.orig 2004-11-29 18:50:06.000000000 +0100 ++++ modules/speller/default/affix.hpp 2005-10-27 02:11:29.724080400 +0200 +@@ -107,9 +107,9 @@ namespace aspeller { + { + return expand(word,aff,buf,0); + } +- WordAff * expand_suffix(ParmString word, const unsigned char * new_aff, ++ WordAff * expand_suffix(ParmString word, const unsigned char *, + ObjStack &, int limit = INT_MAX, +- unsigned char * new_aff = 0, WordAff * * * l = 0, ++ unsigned char * = 0, WordAff * * * l = 0, + ParmString orig_word = 0) const; + + private: |