Re: pgNixInstaller: Making PostgreSQL relocatable - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: pgNixInstaller: Making PostgreSQL relocatable
Date
Msg-id 20060324122539.GA8718@svana.org
Whole thread Raw
In response to Re: pgNixInstaller: Making PostgreSQL relocatable  (John DeSoi <desoi@pgedit.com>)
Responses Re: pgNixInstaller: Making PostgreSQL relocatable
List pgsql-hackers
On Thu, Mar 23, 2006 at 07:47:13PM -0500, John DeSoi wrote:
>
> On Mar 23, 2006, at 12:15 AM, Tom Lane wrote:
>
> >OK ... it's supposed to work to shift the whole installation tree to
> >a new root, ie, paths to places like the /share and /lib directories
> >are determined relative to where the backend executable actually is.
> >If this is not working on Solaris then for sure we want to know ...
>
> It is not relocatable on OS X. The full prefix path seems to be used
> instead. For example:

I don't understand. Dynamic linkers have for years been smart enough to
find libraries by themselves. Fixed paths are a pain, which is why
Debian forbids the use of RPATH for example.

Anyway, looking at the manpage of otool it doesn't say that it just
prints the raw name, so perhaps it's doing the same as ldd. To be sure
you'd need to strings the binary to see what it says.

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/otool.1.html

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

pgsql-hackers by date:

Previous
From: Thomas Hallgren
Date:
Subject: Shared memory
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Shared memory