Ticket #20222 (closed defect: fixed)
R-2.9.1 patch to better handle the dynamic libraries
|Reported by:||blb@…||Owned by:||kjell.konis@…|
R does some interesting linking to avoid encoding paths into the dylibs it installs (hence the install_name_tool stuff in post-destroot). This means that env variables would need to be set in order to properly run software (like rpy, see #18783 and #18784). A better method would be to patch the build system so the dylibs have the right path right away, making it work better with extensions.
Attached is a patch to R (updates Portfile and adds a patch file) which accomplishes this. It gets rpy2 to build and run against it, and R itself appears to still work fine with several demos.