[MacPorts] #58834: gimp nm issues on 10.5
MacPorts
noreply at macports.org
Wed Aug 14 07:05:52 UTC 2019
#58834: gimp nm issues on 10.5
------------------------+--------------------
Reporter: rmottola | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: nm leopard | Port: gimp2
------------------------+--------------------
gimp fails to build on 10.5 because the system nm is too old and the error
is then confusing, as if a command is missing on the command line:
{{{
libtool: link: /usr/bin/nm -p .libs/gimpmodule.o .libs/pygimp-item.o
.libs/pygimp-display.o .libs/pygimp-drawable.o .libs/pygimp-image.o .libs
/pygimp-parasite.o .libs/pygimp-pdb.o .libs/pygimp-tile.o .libs/pygimp-
vectors.o | | /opt/local/bin/gsed 's/.* //' | sort | uniq
.libs/gimp.exp
../../libtool: eval: line 1734: syntax error near unexpected token `|'
}}}
The fix (proven to work) is to use macports nm. Ken suggested to add this
to the portfile and it works (taken from an even older fix by Jeremy):
{{{
if {${os.platform} eq "darwin" && ${os.major} < 10} {
depends_build-append port:cctools
configure.env-append NM=${prefix}/bin/nm
configure.args-append lt_cv_path_NM=${prefix}/bin/nm
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/58834>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list