sysadmin: is there a manifesto on environment settings for macports?
Darren Weber
dweber at macports.org
Fri Apr 10 14:30:21 PDT 2009
Hi Rainer,
I've had some difficulty with the VTK library when I try to get dynamic
libraries working under macports. See
http://trac.macports.org/ticket/19000
I could use some help with understanding how to get rpath working under
macports (if that is THE way to go), given that VTK uses CMAKE settings to
configure the RPATH or the INSTALL_RPATH and the settings that I've tried so
far get "corrupted" during the macports build process because it uses a
destroot setting. I've thought about a postdestroot hack using
'install_name_tool' but there may be a better way to get it right.
For me, the bigger picture is creating an open-source scientific application
that will depend on VTK, among other libraries, and macports may provide the
foundation for the distribution process on OSX.
Best, Darren
On Thu, Apr 9, 2009 at 5:36 PM, Rainer Müller <raimue at macports.org> wrote:
> Darren Weber wrote:
> > What about dynamic library path configuration (for dyld)? What is the
> > best way to configure this for macports? Should settings apply at the
> > system level (I would assume so) or at the user level (probably not). I
> > currently have one env setting for postgresql83 (and I think this one is
> > user specfic):
> > DYLD_FALLBACK_LIBRARY_PATH=:/opt/local/lib/postgresql83
>
> ports should not require any DYLD_* settings as they are expected to
> link against absolute paths in the ${prefix}. If this is really required
> for postgresql83 to work, it is a bug in that port.
>
> > When building libraries, is there a general philosophy on using rpath?
> > I'm confused about this, eg consider:
> > http://wiki.debian.org/RpathIssue
> > http://www.mail-archive.com/bug-libtool@gnu.org/msg00700.html
> > http://lists.apple.com/archives/unix-porting/2008/Mar/msg00008.html
> >
> http://developer.apple.com/releasenotes/DeveloperTools/RN-dyld/index.html
> >
> > I've found that rpath can be a problem because macports builds into a
> > destroot. When I use rpath outside of a destroot, it works fine, but I
> > don't understand how to use it with a destroot, as in macports. If a
> > port should use rpath, how should a port set RPATH correctly (maybe a
> > relative path to ${prefix})? Or, should a port update a DYLD path
> > setting so that run-time dependencies get resolved (see options for path
> > settings in `man dyld` and maybe ports should set a system or user
> > equivalent to ~/.MacOSX/environment.plist)?
>
> First, what particular problem are you trying to solve with this? Is
> there any port which relies on RPATH? If so, why would it need this?
>
> Rainer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090410/51cc3d1a/attachment.html>
More information about the macports-users
mailing list