1 |
commit: 595225ee11a3f1228d45e112b757e6beda119c78 |
2 |
Author: Mark Wright <gienah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 22:59:40 2016 +0000 |
4 |
Commit: Mark Wright <gienah <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 23:00:39 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=595225ee |
7 |
|
8 |
sci-mathematics/octave: Fix bug 554226, thanks to Helmut Jarausch for reporting. |
9 |
|
10 |
Thanks to Patric Schmitz for helping. The patch from upstream is in versions after 4.0. |
11 |
|
12 |
Gentoo-bug: 554226 |
13 |
|
14 |
Package-Manager: portage-2.2.28 |
15 |
|
16 |
.../octave/files/octave-4.0.0-texinfo.patch | 63 ++++++++++++++++++++++ |
17 |
sci-mathematics/octave/octave-4.0.0-r1.ebuild | 5 ++ |
18 |
2 files changed, 68 insertions(+) |
19 |
|
20 |
diff --git a/sci-mathematics/octave/files/octave-4.0.0-texinfo.patch b/sci-mathematics/octave/files/octave-4.0.0-texinfo.patch |
21 |
new file mode 100644 |
22 |
index 0000000..d94e751 |
23 |
--- /dev/null |
24 |
+++ b/sci-mathematics/octave/files/octave-4.0.0-texinfo.patch |
25 |
@@ -0,0 +1,63 @@ |
26 |
+diff -r 3300cb76cccd -r 2ec049e50ed8 libinterp/corefcn/utils.cc |
27 |
+--- a/libinterp/corefcn/utils.cc Tue Jul 07 19:09:35 2015 -0700 |
28 |
++++ b/libinterp/corefcn/utils.cc Thu Jul 09 21:44:09 2015 -0400 |
29 |
+@@ -1379,7 +1379,7 @@ |
30 |
+ \n\ |
31 |
+ Implementation Note: Strings are first converted to double values before the\n\ |
32 |
+ checks for valid indices are made. Unless a string contains the NULL\n\ |
33 |
+-character @nospell{\"\\0\"}, it will always be a valid index.\n\ |
34 |
++character @nospell{\"@xbackslashchar{}0\"}, it will always be a valid index.\n\ |
35 |
+ @end deftypefn") |
36 |
+ { |
37 |
+ octave_value retval; |
38 |
+diff -r 3300cb76cccd -r 2ec049e50ed8 scripts/io/beep.m |
39 |
+--- a/scripts/io/beep.m Tue Jul 07 19:09:35 2015 -0700 |
40 |
++++ b/scripts/io/beep.m Thu Jul 09 21:44:09 2015 -0400 |
41 |
+@@ -20,9 +20,9 @@ |
42 |
+ ## @deftypefn {Function File} {} beep () |
43 |
+ ## Produce a beep from the speaker (or visual bell). |
44 |
+ ## |
45 |
+-## This function sends the alarm character @qcode{"\a"} to the terminal. |
46 |
+-## Depending on the user's configuration this may produce an audible beep, |
47 |
+-## a visual bell, or nothing at all. |
48 |
++## This function sends the alarm character @qcode{"@xbackslashchar{}a"} to |
49 |
++## the terminal. Depending on the user's configuration this may produce an |
50 |
++## audible beep, a visual bell, or nothing at all. |
51 |
+ ## @seealso{puts, fputs, printf, fprintf} |
52 |
+ ## @end deftypefn |
53 |
+ |
54 |
+diff -r 2ec049e50ed8 -r 45d7be391982 doc/Makefile.am |
55 |
+--- a/doc/Makefile.am Thu Jul 09 21:44:09 2015 -0400 |
56 |
++++ b/doc/Makefile.am Thu Jul 09 21:45:26 2015 -0400 |
57 |
+@@ -26,7 +26,6 @@ |
58 |
+ |
59 |
+ EXTRA_DIST = \ |
60 |
+ Makefile.am \ |
61 |
+- texinfo.tex \ |
62 |
+ texmf.cnf |
63 |
+ |
64 |
+ SUBDIRS = doxyhtml interpreter liboctave refcard |
65 |
+diff -r 2ec049e50ed8 -r 45d7be391982 doc/interpreter/Makefile.am |
66 |
+--- a/doc/interpreter/Makefile.am Thu Jul 09 21:44:09 2015 -0400 |
67 |
++++ b/doc/interpreter/Makefile.am Thu Jul 09 21:45:26 2015 -0400 |
68 |
+@@ -20,8 +20,6 @@ |
69 |
+ |
70 |
+ include $(top_srcdir)/build-aux/common.mk |
71 |
+ |
72 |
+-TEXINFO_TEX = ../texinfo.tex |
73 |
+- |
74 |
+ ## Leading PATH_SEPARATOR required due to weak parsing by dvips (12/04/09) |
75 |
+ TEXINPUTS := "$(PATH_SEPARATOR)$(srcdir)$(PATH_SEPARATOR)$(TEXINPUTS)$(PATH_SEPARATOR)" |
76 |
+ export TEXINPUTS |
77 |
+diff -r 2ec049e50ed8 -r 45d7be391982 doc/liboctave/Makefile.am |
78 |
+--- a/doc/liboctave/Makefile.am Thu Jul 09 21:44:09 2015 -0400 |
79 |
++++ b/doc/liboctave/Makefile.am Thu Jul 09 21:45:26 2015 -0400 |
80 |
+@@ -20,8 +20,6 @@ |
81 |
+ |
82 |
+ include $(top_srcdir)/build-aux/common.mk |
83 |
+ |
84 |
+-TEXINFO_TEX = ../texinfo.tex |
85 |
+- |
86 |
+ info_TEXINFOS = liboctave.texi |
87 |
+ |
88 |
+ liboctave_TEXINFOS = \ |
89 |
|
90 |
diff --git a/sci-mathematics/octave/octave-4.0.0-r1.ebuild b/sci-mathematics/octave/octave-4.0.0-r1.ebuild |
91 |
index 88a67af..d19407f 100644 |
92 |
--- a/sci-mathematics/octave/octave-4.0.0-r1.ebuild |
93 |
+++ b/sci-mathematics/octave/octave-4.0.0-r1.ebuild |
94 |
@@ -100,6 +100,11 @@ src_prepare() { |
95 |
-e 's@A-Za-z0-9@[:alnum:]@g' \ |
96 |
-e 's@A-Za-z@[:alpha:]@g' \ |
97 |
libinterp/mkbuiltins || die |
98 |
+ |
99 |
+ # Fix bug 554226 - sci-mathematics/octave-4.0.0 fails because of a LaTeX error |
100 |
+ epatch "${FILESDIR}"/${PN}-4.0.0-texinfo.patch |
101 |
+ rm -f "${S}"/doc/texinfo.tex || die |
102 |
+ |
103 |
autotools-utils_src_prepare |
104 |
} |