Opened 20 months ago
Last modified 20 months ago
#67042 new defect
R-app still has malloc error problem: how to implement analogue of redirect_bins for an aqua app?
Reported by: | barracuda156 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | powerpc | Cc: | kencu (Ken) |
Port: | R-app |
Description
Ken, hope you excuse me for tagging you, but this question is more about LegacySupport than R-app per se. The binary of R-app is sitting in R.app/Contents/MacOS; since it does not use bash, existing trick with bash script fails (I tried first without analyzing the case, and yes, it fails: the app crashes on start). Any idea what to try? We can live without aqua GUI, but it would be nice if we can fix it.
Change History (4)
comment:1 follow-up: 2 Changed 20 months ago by kencu (Ken)
comment:2 Changed 20 months ago by barracuda156
Replying to kencu:
a small shell script that launches the real binary after setting the DYLD_LIBRARY_PATH is likely your best option.
Can this be incorporated into the port though? (The problem with malloc is not 10.6 PPC-specific, as you know, so a general fix is desirable.)
comment:3 follow-up: 4 Changed 20 months ago by kencu (Ken)
Yes, should not be too hard I think -- write one up, stick it in the files dir, copy it into the destroot in a post-destroot block and reinplace a holder for the ${prefix}.
Basically do the same as legacysupport does -- have it be used if configure.cxx_stdlib eq macports-libstdc++
If R calls lots of plugin code or small accessory programs to run, it might be messy though.
comment:4 Changed 20 months ago by barracuda156
Replying to kencu:
Yes, should not be too hard I think -- write one up, stick it in the files dir, copy it into the destroot in a post-destroot block and reinplace a holder for the ${prefix}.
Basically do the same as legacysupport does -- have it be used if configure.cxx_stdlib eq macports-libstdc++
If R calls lots of plugin code or small accessory programs to run, it might be messy though.
Thank you! Will try to sort it out.
a small shell script that launches the real binary after setting the DYLD_LIBRARY_PATH is likely your best option.