Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UxlEg-0006tX-9c for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jul 2013 21:50:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UxlEf-0007Lv-Ll for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jul 2013 21:50:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UxlEe-0007Lp-G9 for pgsql-hackers@postgresql.org; Fri, 12 Jul 2013 21:50:40 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UxlEV-000366-SB for pgsql-hackers@postgresql.org; Fri, 12 Jul 2013 21:50:40 +0000 Received: from obelix.localnet (AToulouse-556-1-147-146.w92-162.abo.wanadoo.fr [92.162.19.146]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MGKzj-1UvEn92C4V-00FAQb; Fri, 12 Jul 2013 23:50:25 +0200 From: =?utf-8?q?C=C3=A9dric_Villemain?= Reply-To: cedric@2ndquadrant.com Organization: 2ndQuadrant To: pgsql-hackers@postgresql.org Subject: Re: Bugfix and new feature for PGXS Date: Fri, 12 Jul 2013 23:50:18 +0200 User-Agent: KMail/1.13.7 (Linux/3.9-1-amd64; KDE/4.8.4; x86_64; ; ) Cc: Andrew Dunstan , Josh Berkus , Robert Haas , Peter Eisentraut , Craig Ringer References: <201306181552.36673.cedric@2ndquadrant.com> <51DB15CB.9050102@agliodbs.com> <51DB171F.2090108@dunslane.net> In-Reply-To: <51DB171F.2090108@dunslane.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2688479.6ms4hTH6iH"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201307122350.23726.cedric@2ndquadrant.com> X-Provags-ID: V02:K0:QCH/VlR6Q6z7XGpdYMMv5u3VMQEcQ0r+Q8UGpA7iwkU Vt4nYtg1+ctQwRadu6McNXRPX7o0whEGGPCo1fD6/f4SKZAiHw PHumG93bz+ntQv83j24cOdahBONF9xhosyTl6oKTS+ujXydyl2 xq1yidY9QlJSWPjNwMSzhxknSlUvfbmeCi7t58Kp3xWTgiYMna 7EudTAnfLEseyc/WEDxRJk/ur1LOAmAJ8D9qFbul5zjyLWWDiH RCpwN6z2VBRfcqcvSH7rVC4FD3S6qh6zHNTWLeEik3ju/R1r8p y+UwDDpxOOCLh+sK3rW6lfy4bMw8F1/irEgutxfa2HUZiRCOj0 ABXCa9tvTPJwr1aA91BDOpfuKzu1m+jD/OghtG7Nm X-Pg-Spam-Score: -1.9 (-) 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 --nextPart2688479.6ms4hTH6iH Content-Type: multipart/mixed; boundary="Boundary-01=_boH4RL2mcPFLyNz" Content-Transfer-Encoding: 7bit --Boundary-01=_boH4RL2mcPFLyNz Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le lundi 8 juillet 2013 21:46:39, Andrew Dunstan a =C3=A9crit : > On 07/08/2013 03:40 PM, Josh Berkus wrote: > > On 07/04/2013 06:18 AM, Andrew Dunstan wrote: > >> On 07/04/2013 09:14 AM, C=C3=A9dric Villemain wrote: > >>> ah yes, good catch, I though .control file were unique per contrib, > >>> but there aren't. > >>=20 > >> It's already been fixed. > >=20 > > Does it look like this patch will get into committable shape in the next > > couple of days? >=20 > I think everything has been committed - as I think the CF app shows. The > only thing left in this srea from C=C3=A9dric is the insallation of heade= rs, > which Peter is down to review and is in "Waiting on Author" status. which is returned with feedback now, I can update if someone really wants i= t. > We are owed a docco patch though. Simple one, attached. I didn't document USE_VPATH, not sure how to explain that clearly. =2D-=20 C=C3=A9dric Villemain +33 (0)6 20 30 22 52 http://2ndQuadrant.fr/ PostgreSQL: Support 24x7 - D=C3=A9veloppement, Expertise et Formation --Boundary-01=_boH4RL2mcPFLyNz Content-Type: text/x-patch; charset="UTF-8"; name="0001-add-documentation-for-commit-6697aa2.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-add-documentation-for-commit-6697aa2.patch" =46rom 1380870e061362b871c375c25517005f82358dc3 Mon Sep 17 00:00:00 2001 =46rom: =3D?UTF-8?q?C=3DC3=3DA9dric=3D20Villemain?=3D Date: Fri, 12 Jul 2013 23:39:11 +0200 Subject: [PATCH] add documentation for commit 6697aa2 Document that PGXS offers VPATH build and add a sample like in installation.sgml Also update the part about the PGXS global makefile inclusion. It was suggested to put it at the end, but if the Makefile contains a target before the include of pgxs then the default all: target is removed and the Makefile must define all: itself. =2D-- doc/src/sgml/extend.sgml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml index 60fa1a8..8f082e4 100644 =2D-- a/doc/src/sgml/extend.sgml +++ b/doc/src/sgml/extend.sgml @@ -935,7 +935,7 @@ include $(PGXS) To use the PGXS infrastructure for your extension, you must write a simple makefile. In the makefile, you need to set some variables =2D and finally include the global PGXS makefile. + and include the global PGXS makefile. Here is an example that builds an extension module named isbn_issn, consisting of a shared library containing some C code, an extension control file, a SQL script, and a documentat= ion @@ -1161,6 +1161,19 @@ include $(PGXS) or on the make command line. =20 + + You can also run make in a directory outside the so= urce + tree of your extension, if you want to keep the build directory separa= te. + This procedure is also called a + VPATHVPATH + build. Here's how: + + mkdir build_dir + cd build_dir + make -f /path/to/extension/source/tree/Makefile + make -f /path/to/extension/source/tree/Makefile install + + Changing PG_CONFIG only works when building =2D-=20 1.7.10.4 --Boundary-01=_boH4RL2mcPFLyNz-- --nextPart2688479.6ms4hTH6iH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAABAgAGBQJR4HofAAoJENsgH0yzVBebvMgH/ibHvjp5s1IGI1uL/VbFlNz5 7i580K7xFODaAxMFPPaJusABqeWn7mUgl71qAeoE8acGygBlT/pXhFlGLgf2BqZF Oqo1u2IpnjstUotJgXRTJO4XjEOh2U1GrEOg4s1AqH/9R8Re6ZfyrI/LJSxrzncx ajuAn/H6w4kRYmh7DlXLcd//KjaKrE+Bik4+hym/z2GyaPzWKqii68XESXpfkoIe 8G/cjj+c8YvZtdih2Jyt0PqEkb4tlAQQqTyLvJEv/bZNES2E16gqSjhltnydermz 4hhehZA1vRRsjXgBO3tJKAA9xRhK/T4fye0KiU22zPg+Do8jUzRZk6miR5ySL6c= =ypWX -----END PGP SIGNATURE----- --nextPart2688479.6ms4hTH6iH--