summaryrefslogtreecommitdiff
path: root/math/octave/patches
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-03-06 23:06:58 +0000
committerjperkin <jperkin@pkgsrc.org>2014-03-06 23:06:58 +0000
commitcf2615c97ccfcb2f4086464ab574035ebf287895 (patch)
treed90a5af57a764339a010dca6177b06a381567eff /math/octave/patches
parente4ab60999980f9b0f2dbe43ec58d677a6f8f8f5f (diff)
downloadpkgsrc-cf2615c97ccfcb2f4086464ab574035ebf287895.tar.gz
Pull in Texinfo 5.x compatibility fixes from upstream.
Diffstat (limited to 'math/octave/patches')
-rw-r--r--math/octave/patches/patch-doc_interpreter_plot.txi25
-rw-r--r--math/octave/patches/patch-doc_liboctave_liboctave.texi21
-rw-r--r--math/octave/patches/patch-scripts_audio_wavread.m37
-rw-r--r--math/octave/patches/patch-scripts_io_strread.m15
-rw-r--r--math/octave/patches/patch-scripts_miscellaneous_getappdata.m21
-rw-r--r--math/octave/patches/patch-scripts_miscellaneous_license.m46
-rw-r--r--math/octave/patches/patch-scripts_miscellaneous_ver.m36
-rw-r--r--math/octave/patches/patch-scripts_plot_daspect.m43
-rw-r--r--math/octave/patches/patch-scripts_plot_legend.m24
-rw-r--r--math/octave/patches/patch-scripts_plot_pbaspect.m42
-rw-r--r--math/octave/patches/patch-scripts_plot_print.m20
-rw-r--r--math/octave/patches/patch-scripts_polynomial_polyval.m30
-rw-r--r--math/octave/patches/patch-scripts_set_union.m23
-rw-r--r--math/octave/patches/patch-scripts_signal_freqz.m37
-rw-r--r--math/octave/patches/patch-src_dirfns.cc18
15 files changed, 438 insertions, 0 deletions
diff --git a/math/octave/patches/patch-doc_interpreter_plot.txi b/math/octave/patches/patch-doc_interpreter_plot.txi
new file mode 100644
index 00000000000..b96c4fe89c5
--- /dev/null
+++ b/math/octave/patches/patch-doc_interpreter_plot.txi
@@ -0,0 +1,25 @@
+$NetBSD: patch-doc_interpreter_plot.txi,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- doc/interpreter/plot.txi.orig 2013-02-21 20:19:23.000000000 +0000
++++ doc/interpreter/plot.txi
+@@ -2545,15 +2545,15 @@ Marker styles are specified by the follo
+ A character indicating a plot marker to be place at each data point, or
+ @code{"none"}, meaning no markers should be displayed.
+
+-@itemx markeredgecolor
++@item markeredgecolor
+ The color of the edge around the marker, or @code{"auto"}, meaning that
+ the edge color is the same as the face color. @xref{Colors}.
+
+-@itemx markerfacecolor
++@item markerfacecolor
+ The color of the marker, or @code{"none"} to indicate that the marker
+ should not be filled. @xref{Colors}.
+
+-@itemx markersize
++@item markersize
+ A number specifying the size of the marker. The default is 1. A value
+ of 2 is twice as large as the default, etc.
+ @end table
diff --git a/math/octave/patches/patch-doc_liboctave_liboctave.texi b/math/octave/patches/patch-doc_liboctave_liboctave.texi
new file mode 100644
index 00000000000..c6da7729673
--- /dev/null
+++ b/math/octave/patches/patch-doc_liboctave_liboctave.texi
@@ -0,0 +1,21 @@
+$NetBSD: patch-doc_liboctave_liboctave.texi,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- doc/liboctave/liboctave.texi.orig 2013-02-21 20:19:23.000000000 +0000
++++ doc/liboctave/liboctave.texi
+@@ -80,10 +80,10 @@ modified versions.
+ @end ifnottex
+
+ @titlepage
+-@title{Octave C++ Classes}
+-@subtitle{Edition 1.0 for Octave version @value{VERSION}}
+-@subtitle{September 1993}
+-@author{John W. Eaton}
++@title Octave C++ Classes
++@subtitle Edition 1.0 for Octave version @value{VERSION}
++@subtitle September 1993
++@author John W. Eaton
+ @page
+ @vskip 0pt plus 1filll
+ Copyright @copyright{} 1996, 1997 John W. Eaton.
diff --git a/math/octave/patches/patch-scripts_audio_wavread.m b/math/octave/patches/patch-scripts_audio_wavread.m
new file mode 100644
index 00000000000..ba1bc405c80
--- /dev/null
+++ b/math/octave/patches/patch-scripts_audio_wavread.m
@@ -0,0 +1,37 @@
+$NetBSD: patch-scripts_audio_wavread.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/audio/wavread.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/audio/wavread.m
+@@ -18,21 +18,26 @@
+
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {@var{y} =} wavread (@var{filename})
++## @deftypefnx {Function File} {[@var{y}, @var{Fs}, @var{bps}] =} wavread (@var{filename})
++## @deftypefnx {Function File} {[@dots{}] =} wavread (@var{filename}, @var{n})
++## @deftypefnx {Function File} {[@dots{}] =} wavread (@var{filename}, @var{n1} @var{n2})
++## @deftypefnx {Function File} {[@var{samples}, @var{channels}] =} wavread (@var{filename}, "size")
++##
+ ## Load the RIFF/WAVE sound file @var{filename}, and return the samples
+ ## in vector @var{y}. If the file contains multichannel data, then
+ ## @var{y} is a matrix with the channels represented as columns.
+ ##
+-## @deftypefnx {Function File} {[@var{y}, @var{Fs}, @var{bps}] =} wavread (@var{filename})
++## @code{[@var{y}, @var{Fs}, @var{bps}] = wavread (@var{filename})}
+ ## Additionally return the sample rate (@var{fs}) in Hz and the number of bits
+ ## per sample (@var{bps}).
+ ##
+-## @deftypefnx {Function File} {[@dots{}] =} wavread (@var{filename}, @var{n})
++## @code{[@dots{}] = wavread (@var{filename}, @var{n})}
+ ## Read only the first @var{n} samples from each channel.
+ ##
+-## @deftypefnx {Function File} {[@dots{}] =} wavread (@var{filename}, @var{n1} @var{n2})
++## @code{wavread (@var{filename}, @var{n1} @var{n2})}
+ ## Read only samples @var{n1} through @var{n2} from each channel.
+ ##
+-## @deftypefnx {Function File} {[@var{samples}, @var{channels}] =} wavread (@var{filename}, "size")
++## @code{[@var{samples}, @var{channels}] = wavread (@var{filename}, "size")}
+ ## Return the number of samples (@var{n}) and channels (@var{ch})
+ ## instead of the audio data.
+ ## @seealso{wavwrite}
diff --git a/math/octave/patches/patch-scripts_io_strread.m b/math/octave/patches/patch-scripts_io_strread.m
new file mode 100644
index 00000000000..6e183f29257
--- /dev/null
+++ b/math/octave/patches/patch-scripts_io_strread.m
@@ -0,0 +1,15 @@
+$NetBSD: patch-scripts_io_strread.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/io/strread.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/io/strread.m
+@@ -39,7 +39,7 @@
+ ## @item %s
+ ## The word is parsed as a string.
+ ##
+-## @itemx %f
++## @item %f
+ ## @itemx %n
+ ## The word is parsed as a number and converted to double.
+ ##
diff --git a/math/octave/patches/patch-scripts_miscellaneous_getappdata.m b/math/octave/patches/patch-scripts_miscellaneous_getappdata.m
new file mode 100644
index 00000000000..05f3e5b0c2a
--- /dev/null
+++ b/math/octave/patches/patch-scripts_miscellaneous_getappdata.m
@@ -0,0 +1,21 @@
+$NetBSD: patch-scripts_miscellaneous_getappdata.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/miscellaneous/getappdata.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/miscellaneous/getappdata.m
+@@ -16,10 +16,12 @@
+
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {@var{value} =} getappdata (@var{h}, @var{name})
++## @deftypefnx {Function File} {@var{appdata} =} getappdata (@var{h})
++##
+ ## Return the @var{value} for named application data for the object(s) with
+ ## handle(s) @var{h}.
+-## @deftypefnx {Function File} {@var{appdata} =} getappdata (@var{h})
+-## Return a structure, @var{appdata}, whose fields correspond to the appdata
++##
++## @code{getappdata(@var{h})} returns a structure, @var{appdata}, whose fields correspond to the appdata
+ ## properties.
+ ## @end deftypefn
+
diff --git a/math/octave/patches/patch-scripts_miscellaneous_license.m b/math/octave/patches/patch-scripts_miscellaneous_license.m
new file mode 100644
index 00000000000..b6720e395be
--- /dev/null
+++ b/math/octave/patches/patch-scripts_miscellaneous_license.m
@@ -0,0 +1,46 @@
+$NetBSD: patch-scripts_miscellaneous_license.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/miscellaneous/license.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/miscellaneous/license.m
+@@ -18,20 +18,26 @@
+
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {} license
++## @deftypefnx {Function File} {} license ("inuse")
++## @deftypefnx {Function File} {@var{retval} =} license ("inuse")
++## @deftypefnx {Function File} {@var{retval} =} license ("test", @var{feature})
++## @deftypefnx {Function File} {} license ("test", @var{feature}, @var{toggle})
++## @deftypefnx {Function File} {@var{retval} =} license ("checkout", @var{feature})
++##
+ ## Display the license of Octave.
+ ##
+-## @deftypefnx {Function File} {} license ("inuse")
++## @code{license ("inuse")}
+ ## Display a list of packages currently being used.
+ ##
+-## @deftypefnx {Function File} {@var{retval} =} license ("inuse")
++## @code{@var{retval} = license ("inuse")}
+ ## Return a structure containing the fields @code{feature} and @code{user}.
+ ##
+-## @deftypefnx {Function File} {@var{retval} =} license ("test", @var{feature})
++## @code{@var{retval} = license ("test", @var{feature})}
+ ## Return 1 if a license exists for the product identified by the string
+ ## @var{feature} and 0 otherwise. The argument @var{feature} is case
+ ## insensitive and only the first 27 characters are checked.
+ ##
+-## @deftypefnx {Function File} {} license ("test", @var{feature}, @var{toggle})
++## @code{license ("test", @var{feature}, @var{toggle})}
+ ## Enable or disable license testing for @var{feature}, depending on
+ ## @var{toggle}, which may be one of:
+ ##
+@@ -44,7 +50,7 @@
+ ## Future tests for the specified license of @var{feature} return 0.
+ ## @end table
+ ##
+-## @deftypefnx {Function File} {@var{retval} =} license ("checkout", @var{feature})
++## @code{@var{retval} = license ("checkout", @var{feature})}
+ ## Check out a license for @var{feature}, returning 1 on success and 0
+ ## on failure.
+ ##
diff --git a/math/octave/patches/patch-scripts_miscellaneous_ver.m b/math/octave/patches/patch-scripts_miscellaneous_ver.m
new file mode 100644
index 00000000000..7baf1517b04
--- /dev/null
+++ b/math/octave/patches/patch-scripts_miscellaneous_ver.m
@@ -0,0 +1,36 @@
+$NetBSD: patch-scripts_miscellaneous_ver.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/miscellaneous/ver.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/miscellaneous/ver.m
+@@ -18,11 +18,15 @@
+
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {} ver ()
++## @deftypefnx {Function File} {v =} ver ()
++## @deftypefnx {Function File} {v =} ver ("Octave")
++## @deftypefnx {Function File} {v =} ver (@var{package})
++##
+ ## Display a header containing the current Octave version number, license
+ ## string and operating system, followed by the installed package names,
+ ## versions, and installation directories.
+ ##
+-## @deftypefnx {Function File} {v =} ver ()
++## @code{v = ver ()}
+ ## Return a vector of structures, respecting Octave and each installed package.
+ ## The structure includes the following fields.
+ ##
+@@ -40,10 +44,10 @@
+ ## Date respecting the version/revision.
+ ## @end table
+ ##
+-## @deftypefnx {Function File} {v =} ver ("Octave")
++## @code{v = ver ("Octave")}
+ ## Return version information for Octave only.
+ ##
+-## @deftypefnx {Function File} {v =} ver (@var{package})
++## @code{v = ver (@var{package})}
+ ## Return version information for @var{package}.
+ ##
+ ## @seealso{version, octave_config_info}
diff --git a/math/octave/patches/patch-scripts_plot_daspect.m b/math/octave/patches/patch-scripts_plot_daspect.m
new file mode 100644
index 00000000000..d426a45165d
--- /dev/null
+++ b/math/octave/patches/patch-scripts_plot_daspect.m
@@ -0,0 +1,43 @@
+$NetBSD: patch-scripts_plot_daspect.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/plot/daspect.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/plot/daspect.m
+@@ -18,22 +18,23 @@
+
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {} daspect (@var{data_aspect_ratio})
+-## Set the data aspect ratio of the current axes. The aspect ratio is
+-## a normalized 3-element vector representing the span of the x, y, and
+-## z-axes limits.
+-##
+-## @deftypefnx {Function File} {@var{data_aspect_ratio} =} daspect ( )
+-## Return the data aspect ratio of the current axes.
+-##
++## @deftypefnx {Function File} {@var{data_aspect_ratio} =} daspect ()
+ ## @deftypefnx {Function File} {} daspect (@var{mode})
+-## Set the data aspect ratio mode of the current axes.
+-##
+ ## @deftypefnx {Function File} {@var{data_aspect_ratio_mode} =} daspect ("mode")
+-## Return the data aspect ratio mode of the current axes.
+-##
+ ## @deftypefnx {Function File} {} daspect (@var{hax}, @dots{})
+-## Use the axes, with handle @var{hax}, instead of the current axes.
+-##
++## @code{daspect} sets the data aspect ratio of the current axes. The aspect
++## ratio is a normalized 3-element vector representing the span of the x, y, and
++## z-axes limits.
++##
++## When called without any arguments it returns data aspect ratio of the current axes.
++##
++## @code{(daspect (@var{mode}))} sets the data aspect ratio mode of the current axes.
++##
++## @code{daspect ("mode")} returns the data aspect ratio mode of the current axes.
++##
++## @code{daspect (@var{hax}, @dots{})} uses the axes, with handle @var{hax},
++## instead of the current axes.
++##
+ ## @seealso{axis, pbaspect, xlim, ylim, zlim}
+ ## @end deftypefn
+
diff --git a/math/octave/patches/patch-scripts_plot_legend.m b/math/octave/patches/patch-scripts_plot_legend.m
new file mode 100644
index 00000000000..0dc10c0467a
--- /dev/null
+++ b/math/octave/patches/patch-scripts_plot_legend.m
@@ -0,0 +1,24 @@
+$NetBSD: patch-scripts_plot_legend.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/plot/legend.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/plot/legend.m
+@@ -86,7 +86,7 @@
+ ## @item "hide"
+ ## Hide legend on the plot
+ ##
+-## @itemx "toggle"
++## @item "toggle"
+ ## Toggles between "hide" and "show"
+ ##
+ ## @item "boxon"
+@@ -101,7 +101,7 @@
+ ## @item "right"
+ ## Place text to the right of the keys
+ ##
+-## @itemx "off"
++## @item "off"
+ ## Delete the legend object
+ ## @end table
+ ## @end deftypefn
diff --git a/math/octave/patches/patch-scripts_plot_pbaspect.m b/math/octave/patches/patch-scripts_plot_pbaspect.m
new file mode 100644
index 00000000000..4d0c8c04fa0
--- /dev/null
+++ b/math/octave/patches/patch-scripts_plot_pbaspect.m
@@ -0,0 +1,42 @@
+$NetBSD: patch-scripts_plot_pbaspect.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/plot/pbaspect.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/plot/pbaspect.m
+@@ -18,21 +18,24 @@
+
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {} pbaspect (@var{plot_box_aspect_ratio})
+-## Set the plot box aspect ratio of the current axes. The aspect ratio
+-## is a normalized 3-element vector representing the rendered lengths of
+-## the x, y, and z-axes.
+-##
+ ## @deftypefnx {Function File} {@var{plot_box_aspect_ratio} =} pbaspect ( )
+-## Return the plot box aspect ratio of the current axes.
+-##
+ ## @deftypefnx {Function File} {} pbaspect (@var{mode})
+-## Set the plot box aspect ratio mode of the current axes.
+-##
+ ## @deftypefnx {Function File} {@var{plot_box_aspect_ratio_mode} =} pbaspect ("mode")
+-## Return the plot box aspect ratio mode of the current axes.
+-##
+ ## @deftypefnx {Function File} {} pbaspect (@var{hax}, @dots{})
+-## Use the axes, with handle @var{hax}, instead of the current axes.
++##
++## Set the plot box aspect ratio of the current axes. The aspect ratio
++## is a normalized 3-element vector representing the rendered lengths of
++## the x, y, and z-axes.
++##
++## When called without any arguments, returns the plot box aspect ratio of
++## the current axes.
++##
++## @code{pbaspect(@var{mode})} sets the plot box aspect ratio mode of the current axes.
++##
++## @code{pbaspect ("mode")} returns the plot box aspect ratio mode of the current axes.
++##
++## @code{pbaspect (@var{hax}, @dots{})} uses the axes, with handle @var{hax}, instead
++## of the current axes.
+ ##
+ ## @seealso{axis, daspect, xlim, ylim, zlim}
+ ## @end deftypefn
diff --git a/math/octave/patches/patch-scripts_plot_print.m b/math/octave/patches/patch-scripts_plot_print.m
new file mode 100644
index 00000000000..b3a1406aa43
--- /dev/null
+++ b/math/octave/patches/patch-scripts_plot_print.m
@@ -0,0 +1,20 @@
+$NetBSD: patch-scripts_plot_print.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/plot/print.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/plot/print.m
+@@ -184,11 +184,11 @@
+ ## is sent to a file the size is determined by the plot box defined by
+ ## the figure's "paperposition" property.
+ ##
+-## @itemx -append
++## @item -append
+ ## Appends the PS, or PDF output to a pre-existing file of the
+ ## same type.
+ ##
+-## @itemx -r@var{NUM}
++## @item -r@var{NUM}
+ ## Resolution of bitmaps in pixels per inch. For both metafiles and
+ ## SVG the default is the screen resolution, for other it is 150 dpi.
+ ## To specify screen resolution, use "-r0".
diff --git a/math/octave/patches/patch-scripts_polynomial_polyval.m b/math/octave/patches/patch-scripts_polynomial_polyval.m
new file mode 100644
index 00000000000..8a6dca94227
--- /dev/null
+++ b/math/octave/patches/patch-scripts_polynomial_polyval.m
@@ -0,0 +1,30 @@
+$NetBSD: patch-scripts_polynomial_polyval.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/polynomial/polyval.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/polynomial/polyval.m
+@@ -19,19 +19,21 @@
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {@var{y} =} polyval (@var{p}, @var{x})
+ ## @deftypefnx {Function File} {@var{y} =} polyval (@var{p}, @var{x}, [], @var{mu})
++## @deftypefnx {Function File} {[@var{y}, @var{dy}] =} polyval (@var{p}, @var{x}, @var{s})
++## @deftypefnx {Function File} {[@var{y}, @var{dy}] =} polyval (@var{p}, @var{x}, @var{s}, @var{mu})
++##
+ ## Evaluate the polynomial @var{p} at the specified values of @var{x}. When
+ ## @var{mu} is present, evaluate the polynomial for
+ ## (@var{x}-@var{mu}(1))/@var{mu}(2).
+ ## If @var{x} is a vector or matrix, the polynomial is evaluated for each of
+ ## the elements of @var{x}.
+ ##
+-## @deftypefnx {Function File} {[@var{y}, @var{dy}] =} polyval (@var{p}, @var{x}, @var{s})
+-## @deftypefnx {Function File} {[@var{y}, @var{dy}] =} polyval (@var{p}, @var{x}, @var{s}, @var{mu})
+ ## In addition to evaluating the polynomial, the second output
+ ## represents the prediction interval, @var{y} +/- @var{dy}, which
+ ## contains at least 50% of the future predictions. To calculate the
+ ## prediction interval, the structured variable @var{s}, originating
+ ## from @code{polyfit}, must be supplied.
++##
+ ## @seealso{polyvalm, polyaffine, polyfit, roots, poly}
+ ## @end deftypefn
+
diff --git a/math/octave/patches/patch-scripts_set_union.m b/math/octave/patches/patch-scripts_set_union.m
new file mode 100644
index 00000000000..8e68b8b425a
--- /dev/null
+++ b/math/octave/patches/patch-scripts_set_union.m
@@ -0,0 +1,23 @@
+$NetBSD: patch-scripts_set_union.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/set/union.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/set/union.m
+@@ -20,6 +20,8 @@
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {} union (@var{a}, @var{b})
+ ## @deftypefnx {Function File} {} union (@var{a}, @var{b}, "rows")
++## @deftypefnx {Function File} {[@var{c}, @var{ia}, @var{ib}] =} union (@var{a}, @var{b})
++##
+ ## Return the set of elements that are in either of the sets @var{a} and
+ ## @var{b}. @var{a}, @var{b} may be cell arrays of string(s).
+ ## For example:
+@@ -44,7 +46,6 @@
+ ## @end group
+ ## @end example
+ ##
+-## @deftypefnx {Function File} {[@var{c}, @var{ia}, @var{ib}] =} union (@var{a}, @var{b})
+ ##
+ ## Return index vectors @var{ia} and @var{ib} such that @code{a(ia)} and
+ ## @code{b(ib)} are disjoint sets whose union is @var{c}.
diff --git a/math/octave/patches/patch-scripts_signal_freqz.m b/math/octave/patches/patch-scripts_signal_freqz.m
new file mode 100644
index 00000000000..75d8fa309a2
--- /dev/null
+++ b/math/octave/patches/patch-scripts_signal_freqz.m
@@ -0,0 +1,37 @@
+$NetBSD: patch-scripts_signal_freqz.m,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- scripts/signal/freqz.m.orig 2013-02-21 20:19:24.000000000 +0000
++++ scripts/signal/freqz.m
+@@ -18,6 +18,10 @@
+
+ ## -*- texinfo -*-
+ ## @deftypefn {Function File} {[@var{h}, @var{w}] =} freqz (@var{b}, @var{a}, @var{n}, "whole")
++## @deftypefnx {Function File} {@var{h} =} freqz (@var{b}, @var{a}, @var{w})
++## @deftypefnx {Function File} {[@dots{}] =} freqz (@dots{}, @var{Fs})
++## @deftypefnx {Function File} {} freqz (@dots{})
++##
+ ## Return the complex frequency response @var{h} of the rational IIR filter
+ ## whose numerator and denominator coefficients are @var{b} and @var{a},
+ ## respectively. The response is evaluated at @var{n} angular frequencies
+@@ -49,16 +53,16 @@
+ ## For fastest computation, @var{n} should factor into a small number of
+ ## small primes.
+ ##
+-## @deftypefnx {Function File} {@var{h} =} freqz (@var{b}, @var{a}, @var{w})
++## @code{freqz (@var{b}, @var{a}, @var{w})}
+ ## Evaluate the response at the specific frequencies in the vector @var{w}.
+ ## The values for @var{w} are measured in radians.
+ ##
+-## @deftypefnx {Function File} {[@dots{}] =} freqz (@dots{}, @var{Fs})
++## @code{[@dots{}] = freqz (@dots{}, @var{Fs})}
+ ## Return frequencies in Hz instead of radians assuming a sampling rate
+ ## @var{Fs}. If you are evaluating the response at specific frequencies
+ ## @var{w}, those frequencies should be requested in Hz rather than radians.
+ ##
+-## @deftypefnx {Function File} {} freqz (@dots{})
++## @code{freqz (@dots{})}
+ ## Plot the pass band, stop band and phase response of @var{h} rather
+ ## than returning them.
+ ## @end deftypefn
diff --git a/math/octave/patches/patch-src_dirfns.cc b/math/octave/patches/patch-src_dirfns.cc
new file mode 100644
index 00000000000..96d853a4449
--- /dev/null
+++ b/math/octave/patches/patch-src_dirfns.cc
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_dirfns.cc,v 1.1 2014/03/06 23:06:58 jperkin Exp $
+
+Texinfo 5.x compatibility.
+
+--- src/dirfns.cc.orig 2013-02-21 20:19:24.000000000 +0000
++++ src/dirfns.cc
+@@ -555,9 +555,9 @@ them, or an empty cell array if no patte
+ interpreted as filename globbing patterns (as they are used by Unix shells).\n\
+ Within a pattern\n\
+ @table @code\n\
+-@itemx *\n\
++@item *\n\
+ matches any string, including the null string,\n\
+-@itemx ?\n\
++@item ?\n\
+ matches any single character, and\n\
+ \n\
+ @item [@dots{}]\n\