Allow relative path installs

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Allow relative path installs
Date: 2004-05-17 14:41:58
Message-ID: 200405171441.i4HEfw818421@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

I have reorganized the code to allow path-relative installs. A relative
path is used if only the last directory of a path is different from the
hardcoded binary directory. For example, /a/b/c is relative to /a/b/d,
but /a/b/c is not relative to /a/f/g.

If the install used relative paths, then the system will use the current
binary directory, strip the /bin part, and add /lib or /share as
appropriate.

I also created new get_* functions to access compiled-in paths and
adjusted if relative installs are to be used.

I cleaned up substitute_libpath_macro() code.

I will do some doc updates now for the install file.

Patch attached and applied.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 32.8 KB

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-05-17 18:12:58 Re: new aggregate functions v1
Previous Message Andrew Hammond 2004-05-17 14:20:35 Re: pg_ctl patch to integrate apache's rotatelogs