[MacPorts] #51399: octave-4.0.2_0 upgrade fails
MacPorts
noreply at macports.org
Mon May 16 18:50:20 PDT 2016
#51399: octave-4.0.2_0 upgrade fails
---------------------+--------------------------------
Reporter: neil@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: octave |
---------------------+--------------------------------
Comment (by roberthuston@…):
This looks to be an recurring issue with the gnulib files. There was a
problem a couple of years ago with building octave 3.8.0 on Mountain Lion
(http://octave.1599824.n4.nabble.com/Building-3-8-0-on-Mountain-
Lion-10-8-5-td4660795.html). The solution was to disable the lines
{{{
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning; besides, C11
removed it. */
#undef gets
#if HAVE_RAW_DECL_GETS
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
}}}
in the file {{{libgnu/stdio.in.h}}} of the MacPorts Octave build
directory, which for this version is:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-4.0.2
Once I made this local edit, I was able to resume my build and get Octave
running.
I'm assuming that the Portfile might need to make a local patch to
stdio.in.h as a permanent solution, but this should work for now.
--
Ticket URL: <https://trac.macports.org/ticket/51399#comment:9>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list