Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrF68-0002ro-Um for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Jun 2013 22:18:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UrF68-0004bd-CY for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Jun 2013 22:18:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrF66-0004Zm-Cy for pgsql-hackers@postgresql.org; Mon, 24 Jun 2013 22:18:54 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrF63-00029F-Nj for pgsql-hackers@postgresql.org; Mon, 24 Jun 2013 22:18:53 +0000 Received: from mfilter21-d.gandi.net (mfilter21-d.gandi.net [217.70.178.149]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id C590641C053; Tue, 25 Jun 2013 00:18:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter21-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter21-d.gandi.net (mfilter21-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id dGB-lfdunsp3; Tue, 25 Jun 2013 00:18:29 +0200 (CEST) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-098-027-058-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 3254541C064; Tue, 25 Jun 2013 00:18:27 +0200 (CEST) Message-ID: <51C8C5B2.6080609@dunslane.net> Date: Mon, 24 Jun 2013 18:18:26 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: cedric@2ndquadrant.com CC: pgsql-hackers@postgresql.org, Craig Ringer Subject: Re: Bugfix and new feature for PGXS References: <201306181552.36673.cedric@2ndquadrant.com> <51C88483.7090900@dunslane.net> <201306242202.04162.cedric@2ndquadrant.com> In-Reply-To: <201306242202.04162.cedric@2ndquadrant.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 06/24/2013 04:02 PM, C=C3=A9dric Villemain wrote: > > WIth extension, we do have to set VPATH explicitely if we want to use VPA= TH > (note that contribs/extensions must not care that postgresql has been bui= lt > with or without VPATH set). My patches try to fix that. No, this is exactly what I'm objecting to. I want to be able to do: invoke_vpath_magic standard_make_commands_as_for_non_vpath Your patches have been designed to overcome your particular issues, but=20 they don't meet the general case, IMNSHO. This is why I want to have=20 more discussion about how vpath builds could work for PGXS modules. > > So the point is to be able to do exactly that : > > $ mkdir /tmp/json_build && cd /tmp/json_build > $ make USE_PGXS=3D1 -f /path/to/json_build/Makefile It doesn't work: [andrew@emma vpath.json_build]$ PATH=3D../../inst.vpgxs.5706/bin:$PATH make -f `pwd`/../json_build/Makefile grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory grep: json_build.control: No such file or directory gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=3Dstandard -g -fpic -shared -o json_build.so -L/home/pgl/npgl/inst.vpgxs.5706/lib -Wl,--as-needed -Wl,-rpath,'/home/pgl/npgl/inst.vpgxs.5706/lib',--enable-new-dtags cp /home/andrew/pgl/extns/vpath.json_build/../json_build/sql/json_build.sql sql/json_build--.sql cp: cannot create regular file `sql/json_build--.sql': No such file or directory make: *** [sql/json_build--.sql] Error 1 [andrew@emma vpath.json_build]$ cheers andrew --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers