[MacPorts] #53015: octave-octclip, octave-octproj: missing patch file
MacPorts
noreply at macports.org
Wed Dec 7 01:34:26 CET 2016
#53015: octave-octclip, octave-octproj: missing patch file
--------------------------------------------+------------------------------
Reporter: Schamschula | Owner: MarcusCalhoun-
| Lopez
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.3.5
Resolution: fixed | Keywords:
Port: octave-octclip octave-octproj |
--------------------------------------------+------------------------------
Comment (by Schamschula):
Unfortunately, the patch file results in a broken build. Both octave-
octclip and octave-octproj fail to build with an error like
{{{
In file included from /opt/local/include/octave-4.2.0/octave/Array.h:37:
/opt/local/include/octave-4.2.0/octave/dim-vector.h:205:21: warning:
variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename... Ints>
^
/opt/local/include/octave-4.2.0/octave/dim-vector.h:209:10: error: no
member named 'initializer_list' in namespace 'std'
std::initializer_list<octave_idx_type> all_lengths = {r, c,
lengths...};
~~~~~^
/opt/local/include/octave-4.2.0/octave/dim-vector.h:209:27: error:
unexpected type name 'octave_idx_type': expected expression
std::initializer_list<octave_idx_type> all_lengths = {r, c,
lengths...};
^
/opt/local/include/octave-4.2.0/octave/dim-vector.h:209:44: error: use of
undeclared identifier 'all_lengths'
std::initializer_list<octave_idx_type> all_lengths = {r, c,
lengths...};
^
/opt/local/include/octave-4.2.0/octave/dim-vector.h:209:58: error:
expected expression
std::initializer_list<octave_idx_type> all_lengths = {r, c,
lengths...};
^
/opt/local/include/octave-4.2.0/octave/dim-vector.h:210:33: warning:
range-based for loop is a C++11 extension [-Wc++11-extensions]
for (const octave_idx_type l: all_lengths)
^
/opt/local/include/octave-4.2.0/octave/dim-vector.h:210:35: error: use of
undeclared identifier 'all_lengths'
for (const octave_idx_type l: all_lengths)
^
/opt/local/include/octave-4.2.0/octave/dim-vector.h:212:12: error: use of
undeclared identifier 'all_lengths'
rep -= all_lengths.size ();
^
}}}
For some reason {{{configure.cxxflags-append -std=c++11}}} in
octave-1.0.tcl seems to be ignored. I modified {{{patch-flags.diff}}} to
add {{{CXXFLAGS+=-std=c++11}}}, resulting in a clean build.
However, I now got a MacPorts destroot error:
{{{Error: org.macports.destroot for port octave-octproj returned:
xinstall: Cannot stat: /opt/local/var/macports/build
/_Users_marius_Development_MacPorts_ports_math_octave-octproj/octave-
octproj/work/octproj/octproj-1.1.5.tar.gz, No such file or directory}}}
On further investigation, I got {{{octproj-1.1.5-x86_64-apple-
darwin16.x.x-api-v51.tar.gz}}} instead. I manually renamed this file to
{{{octproj-1.1.5.tar.gz}}} and got it to install.
--
Ticket URL: <https://trac.macports.org/ticket/53015#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list