| From: | "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> | 
|---|---|
| To: | "Thomas Hallgren" <thhal(at)mailblocks(dot)com> | 
| Cc: | <pgsql-hackers(at)postgresql(dot)org> | 
| Subject: | Re: pgxs and pginstaller | 
| Date: | 2005-09-23 10:29:06 | 
| Message-ID: | E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2E47@ratbert.vale-housing.co.uk | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
> -----Original Message-----
> From: Thomas Hallgren [mailto:thhal(at)mailblocks(dot)com] 
> Sent: 23 September 2005 11:17
> To: Dave Page
> Cc: pgsql-hackers(at)postgresql(dot)org
> Subject: Re: pgxs and pginstaller
> 
> It's two things basically. One I think that the installer 
> team can fix, 
> the other is IMHO an error in the Makefile.global.in and 
> should be fixed 
> there.
> 
> The first thing is the lib/pgxs/src/Makefile.global that is 
> installed. 
> It contains two paths that needs to change. The 
> abs_top_srcdir and the 
> prefix. In my patched file I use these settings:
> 
> abs_top_srcdir = 
> /c/Progra~1/PostgreSQL/8.1-beta2/src/postgresql-8.1beta2
> prefix := /c/Progra~1/PostgreSQL/8.1-beta2
Hmm, those are still msys paths which the installer doesn't know about.
Will it work with:
abs_top_srcdir = "C:\\Program
Files\\PostgreSQL\\8.1-beta2\\src\\postgresql-8.1beta2"
prefix := "C:\\Program Files\\PostgreSQL\\8.1-beta2"
Those should be Windows and Msys friendly.
> That seems to work fine. The second problem is that when I made that 
> change, I also had to change code that appends 'postgresql' 
> to all paths 
> unless the path contains the word 'pgsql' or 'postgres'. A comment 
> statest that this is to avoid 'directory clutter'. A better 
> check would 
> perhaps be to hardcode rules that explicitly avoids some well known 
> directories (/usr/include etc.). That would give the user a better 
> freedom to choose prefix without having this side-effect.
> 
> My temporary patch for this was to remove all lines staring 
> with 'ifeq' 
> or 'endif' between line 66 and 102.
I agree with your earlier comment - this should definitely be fixed in
PostgreSQL, not pgInstaller.
Regards, Dave.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paolo Magnoli | 2005-09-23 10:30:43 | R: Table Partitioning is in 8.1 | 
| Previous Message | Thomas Hallgren | 2005-09-23 10:16:35 | Re: pgxs and pginstaller |