<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8b73968b2a7376ddcd920c9ae86d979350473625">https://github.com/macports/macports-ports/commit/8b73968b2a7376ddcd920c9ae86d979350473625</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 8b73968 octave: apply upstream patch to fix etree
</span>8b73968 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8b73968b2a7376ddcd920c9ae86d979350473625
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Mon Jan 14 12:03:08 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> octave: apply upstream patch to fix etree
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See https://hg.savannah.gnu.org/hgweb/octave/rev/0c7a9fa16998
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://trac.macports.org/ticket/57878
</span>---
math/octave/Portfile | 5 ++++-
math/octave/files/patch-etree.diff | 20 ++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/octave/Portfile b/math/octave/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 822fb05..ec4524b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/octave/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/octave/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,7 +13,7 @@ compiler.blacklist-append {*gcc-4.6} {clang < 700}
</span> name octave
version 4.4.1
set package_version 4.x.x
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 3
</span> categories math science
platforms darwin
license GPL-3+
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -66,6 +66,9 @@ patchfiles-append patch-versions.diff
</span> # reports of `__opengl_info__` not working the first time
patchfiles-append patch-__opengl_info__.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# apply upstream fix: https://hg.savannah.gnu.org/hgweb/octave/rev/0c7a9fa16998
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-etree.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
if { ${os.arch} eq "i386" } {
if { ${os.major} >= 9 && [sysctl hw.cpu64bit_capable] == 1 } {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/octave/files/patch-etree.diff b/math/octave/files/patch-etree.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..29afa82
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/octave/files/patch-etree.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libinterp/dldfcn/colamd.cc.orig 2018-08-09 11:20:32.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libinterp/dldfcn/colamd.cc 2019-01-14 09:23:27.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -68,7 +68,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (octave_idx_type p = cidx[kk] ; p < p2 ; p++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // A (i,k) is nonzero (original or permuted A)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- octave_idx_type i = (Pinv) ? (Pinv[ridx[p]]) : (ridx[p]);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ octave_idx_type i = (P ? Pinv[ridx[p]] : ridx[p]);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (i < k)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // follow path from i to root of etree, stop at flagged node
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -675,7 +675,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ octave_idx_type *ridx = nullptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ octave_idx_type *cidx = nullptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (args(0).issparse ())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (! args(0).issparse ())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error ("etree: S must be a sparse matrix");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (args(0).iscomplex ())
</span></pre><pre style='margin:0'>
</pre>