summaryrefslogtreecommitdiff
path: root/academic/itex2mml/bison3-fix.patch
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-07-26 14:01:37 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commitecaab058ccb1a56d6f5a7f8008b9879aea62cf7a (patch)
tree4c0e129113b6fa4b0b2287a660e40a49fde924c0 /academic/itex2mml/bison3-fix.patch
parentc27f97a404b1bd64fa4a1a3c4f6fbabf2213bf18 (diff)
downloadslackbuilds-ecaab058ccb1a56d6f5a7f8008b9879aea62cf7a.tar.gz
academic/itex2mml: Updated for version 1.5.1.
Fixed build failure with bison-3. Removed bashisms and hardcoded Ruby version. (The itexToMML.tar.gz version was already 1.5.1...) Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/itex2mml/bison3-fix.patch')
-rw-r--r--academic/itex2mml/bison3-fix.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/academic/itex2mml/bison3-fix.patch b/academic/itex2mml/bison3-fix.patch
new file mode 100644
index 0000000000..53daeaaddd
--- /dev/null
+++ b/academic/itex2mml/bison3-fix.patch
@@ -0,0 +1,21 @@
+diff -wbBur itexToMML/itex-src/itex2MML.y itexToMML.my/itex-src/itex2MML.y
+--- itexToMML/itex-src/itex2MML.y 2014-01-05 21:56:04.000000000 +0400
++++ itexToMML.my/itex-src/itex2MML.y 2014-02-03 21:21:16.455644069 +0400
+@@ -2,6 +2,8 @@
+ * itex2MML.y last modified 1/5/2014
+ */
+
++%parse-param {char **ret_str}
++
+ %{
+ #include <stdio.h>
+ #include <string.h>
+@@ -27,7 +29,7 @@
+
+ void (*itex2MML_error) (const char * msg) = itex2MML_default_error;
+
+- static void yyerror (char * s)
++ static void yyerror (char **ret_str, char * s)
+ {
+ char * msg = itex2MML_copy3 (s, " at token ", yytext);
+ if (itex2MML_error)