Re: Bug report: Wrong version in pg_config - Mailing list pgsql-bugs

From Dimitri Fontaine
Subject Re: Bug report: Wrong version in pg_config
Date
Msg-id 87d41f76pa.fsf@hi-media-techno.com
Whole thread Raw
In response to Bug report: Wrong version in pg_config  (Adam Matan <adam@linqmap.com>)
List pgsql-bugs
Adam Matan <adam@linqmap.com> writes:
> But still, pg_config remains with the removed version, after postresql re=
start and even total reboot:
>
> $ =C2=A0pg_config
> BINDIR =3D /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 ?=3D pg_config

And the call like this from debian/rules or elsewhere:
  make PG_CONFIG=3D/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-Janua=
ry/000546.html

Regards,
--=20
dim

pgsql-bugs by date:

Previous
From: Adam Matan
Date:
Subject: Bug report: Wrong version in pg_config
Next
From: Tom Lane
Date:
Subject: Re: Bug report: Wrong version in pg_config