From: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com> |
---|---|
To: | Adam Matan <adam(at)linqmap(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Bug report: Wrong version in pg_config |
Date: | 2010-01-12 14:12:33 |
Message-ID: | 87d41f76pa.fsf@hi-media-techno.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Adam Matan <adam(at)linqmap(dot)com> writes:
> But still, pg_config remains with the removed version, after postresql restart and even total reboot:
>
> $ pg_config
> BINDIR = /usr/lib/postgresql/8.4/bin
[...]
> This creates confusion with external software packages trying to use pgxs, for example.
> Any ideas how to solve this?
Use /usr/lib/postgresql/$version/bin/pg_config, and adapt your
extension's Makefile to target that. For example with the following in
the Makefile:
PG_CONFIG ?= pg_config
And the call like this from debian/rules or elsewhere:
make PG_CONFIG=/usr/lib/postgresql/$version/bin/pg_config
I'm preparing some tools to automate all this for debian packaging
extensions, see the following:
http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/2010-January/000546.html
Regards,
--
dim
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-01-12 14:18:20 | Re: Bug report: Wrong version in pg_config |
Previous Message | Thomas Specker | 2010-01-12 13:04:05 | Re: Failed to run initdb - not resolved bug 5130 |