[MacPorts] #67042: R-app still has malloc error problem: how to implement analogue of redirect_bins for an aqua app?
MacPorts
noreply at macports.org
Sat Jan 18 20:38:02 UTC 2025
#67042: R-app still has malloc error problem: how to implement analogue of
redirect_bins for an aqua app?
---------------------------+---------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: powerpc
Port: R-app |
---------------------------+---------------------
Comment (by barracuda156):
If anyone lands here looking for a fix, add the following code into `post-
destroot` stage and launch the app from command line like `R-gui`.
{{{
if {${configure.cxx_stdlib} ne "libc++"} {
set rexec ${applications_dir}/R.app/Contents/MacOS/R
set rgui ${prefix}/bin/R-gui
set wrapper [open "${destroot}${rgui}" w 0755]
puts ${wrapper} "#!/bin/bash"
puts ${wrapper} ""
puts ${wrapper} {if [ -n "$DYLD_LIBRARY_PATH" ]; then}
puts ${wrapper} "
DYLD_LIBRARY_PATH=${prefix}/lib/libgcc:\${DYLD_LIBRARY_PATH}"
puts ${wrapper} {else}
puts ${wrapper} " DYLD_LIBRARY_PATH=${prefix}/lib/libgcc"
puts ${wrapper} {fi}
puts ${wrapper} {export DYLD_LIBRARY_PATH}
puts ${wrapper} ""
puts ${wrapper} " PATH=${prefix}/bin:${prefix}/sbin:\$PATH"
puts ${wrapper} {export PATH}
puts ${wrapper} ""
puts ${wrapper} "exec ${rexec} \"\$@\""
close $wrapper
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67042#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list