summaryrefslogtreecommitdiffstats
path: root/spelling
diff options
context:
space:
mode:
authorEric Sandall2010-04-24 00:01:34 -0700
committerEric Sandall2010-04-24 00:01:34 -0700
commit264c5513351f4d0826b610c61f63f28bb1398c96 (patch)
tree4cbe4b46a4901af708d67de82da6c580657adf1f /spelling
parent606a5ccfab622eb700d993316f1cca8ac3a384fd (diff)
mythes: Fix compilation with GCC 4.4
Diffstat (limited to 'spelling')
-rw-r--r--spelling/mythes/HISTORY2
-rwxr-xr-xspelling/mythes/PRE_BUILD3
-rw-r--r--spelling/mythes/gcc44.patch12
3 files changed, 16 insertions, 1 deletions
diff --git a/spelling/mythes/HISTORY b/spelling/mythes/HISTORY
index 9e05045296..f34a36cca3 100644
--- a/spelling/mythes/HISTORY
+++ b/spelling/mythes/HISTORY
@@ -1,6 +1,8 @@
2010-04-23 Eric Sandall <sandalle@sourcemage.org>
* DEPENDS: Depends on hunspell
* DETAILS: LICENSE is BSD-based
+ * PRE_BUILD: Apply gcc44.patch
+ * gcc44.patch: Fix compilation with GCC 4.4
2010-03-31 Arjan Bouter <abouter@sourcemage.org>
* BUILD,DEPENDS,DETAILS,INSTALL,PRE_BUILD: spell created
diff --git a/spelling/mythes/PRE_BUILD b/spelling/mythes/PRE_BUILD
index 50757b0f9f..2bb0b42c52 100755
--- a/spelling/mythes/PRE_BUILD
+++ b/spelling/mythes/PRE_BUILD
@@ -1,3 +1,4 @@
default_pre_build &&
cd "${SOURCE_DIRECTORY}" &&
-sedit 's/^CXXFLAGS/#CXXFLAGS/' Makefile
+sedit 's/^CXXFLAGS/#CXXFLAGS/' Makefile &&
+patch -p1 < "${SCRIPT_DIRECTORY}/gcc44.patch"
diff --git a/spelling/mythes/gcc44.patch b/spelling/mythes/gcc44.patch
new file mode 100644
index 0000000000..204980bfed
--- /dev/null
+++ b/spelling/mythes/gcc44.patch
@@ -0,0 +1,12 @@
+diff -Naur MyThes-1.1.orig/mythes.cxx MyThes-1.1/mythes.cxx
+--- MyThes-1.1.orig/mythes.cxx 2010-04-23 23:58:06.210695856 -0700
++++ MyThes-1.1/mythes.cxx 2010-04-24 00:00:15.750704314 -0700
+@@ -26,7 +26,7 @@
+ // return index of char in string
+ int mystr_indexOfChar(const char * d, int c)
+ {
+- char * p = strchr(d,c);
++ const char * p = strchr(d,c);
+ if (p) return (int)(p-d);
+ return -1;
+ }