Re: USE_PGXS contrib build is broken

From: Gurjeet Singh <gurjeet(at)singh(dot)im>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: USE_PGXS contrib build is broken
Date: 2013-02-04 20:45:18
Message-ID: CAH_BQtdXcy+DpTuncmLTNAXeWxDXGxLXmLmOtKhsc81gSLunjw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Feb 4, 2013 at 3:37 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>wrote:

> Gurjeet Singh wrote:
> > On Mon, Feb 4, 2013 at 2:38 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com
> >wrote:
> >
> > > I just noticed that contrib programs don't build in USE_PGXS=1
> > > environment:
> > >
> > > $ pwd
> > > /pgsql/build/HEAD/contrib/pg_upgrade
> > > $ LC_ALL=C USE_PGXS=1 make
> > > make: *** No rule to make target `check.o', needed by `pg_upgrade'.
> Stop.
> >
> > FWIW, I am able to build just fine using USE_PGXS!
>
> Hmm. Mine is a VPATH build; maybe that makes a difference. Now I'm not
> really certain that pgxs is supposed to work for VPATH.
>

Yup, looks like that. When I tried my (default) VPATH build, it did throw
that error! But a regular build went just fine.

My VPATH build that breaks:

USE_PGXS=1 pgmake -C contrib/pg_upgrade

Which gets translated into

USE_PGXS=1 make -C /home/gurjeet/dev/pgdbuilds/pg_master -C
contrib/pg_upgrade

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dimitri Fontaine 2013-02-04 20:56:09 Re: cannot move relocatable extension out of pg_catalog schema
Previous Message Alvaro Herrera 2013-02-04 20:37:23 Re: USE_PGXS contrib build is broken