Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TenpV-0004Lj-Aj for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Dec 2012 14:14:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TenpU-0007dg-Gi for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Dec 2012 14:14:04 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TenpT-0007db-So for pgsql-bugs@postgresql.org; Sat, 01 Dec 2012 14:14:03 +0000 Received: from moutng.kundenserver.de ([212.227.17.8]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TenpR-0008KF-Mx for pgsql-bugs@postgresql.org; Sat, 01 Dec 2012 14:14:03 +0000 Received: from obelix.localnet (AToulouse-556-1-201-84.w81-50.abo.wanadoo.fr [81.50.117.84]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0LsJno-1TCSAU29qy-011oTO; Sat, 01 Dec 2012 15:13:54 +0100 From: =?iso-8859-1?q?C=E9dric_Villemain?= Reply-To: cedric@2ndquadrant.com Organization: 2ndQuadrant To: pgsql-bugs@postgresql.org Subject: extension installation faillure using VPATH and MODULEDIR Date: Sat, 1 Dec 2012 15:13:49 +0100 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1364838.HODX5Y6n8u"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201212011513.53770.cedric@2ndquadrant.com> X-Provags-ID: V02:K0:NB2aABMk0r4n2hYxiuuqy2gmklM2AbfS/ZME/Ev0u96 +/X0Ux/PuFafM9I2YlV5/gyf0zccpqznC+v/lD/65ADE9ccwQr vkp8LDcMgCmFAoPBgXMFSV60/hRasLTfP/aHEAGJM4nuqrwXlN 9OCzlmoT5fmOpQ96wtN3mXSr/7KHSqwtIpfAAxMvH0zwz7SQHg MPQpCwToHHnJxQzawVLMhLiHuzlbL8AX+nDfQfMGVt5C4w5OG4 eRj//TLdl7TlX6qnEGBFIQ5HVShI/YSPtKqi+LaYO05gRJb82f 7iiSSKyiZIf4Hxtg9Ievq4QH71h6/lzWUvbzmPzo5/JOd2N0EJ 4XjU9ajBTyzf2PV5/R+WPH1s15ASTyBcLZiN54nXZ X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --nextPart1364838.HODX5Y6n8u Content-Type: multipart/mixed; boundary="Boundary-01=_dChuQrfAUKRh0fW" Content-Transfer-Encoding: 7bit --Boundary-01=_dChuQrfAUKRh0fW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline the attached patch fix the extension installation using a VPATH when a=20 MODULEDIR is defined in the extension Makefile. The current issue is that the sharedir/extension directory is not created i= f=20 MODULEDIR !=3D 'extension' i.e. MODULEDIR is defined in the Makefile. Thus = 'make=20 install' fail to copy the control file in an nonexistent directory. Tested with debian extension packages. =2D-=20 C=E9dric Villemain +33 (0)6 20 30 22 52 http://2ndQuadrant.fr/ PostgreSQL: Support 24x7 - D=E9veloppement, Expertise et Formation --Boundary-01=_dChuQrfAUKRh0fW Content-Type: text/x-patch; charset="UTF-8"; name="0001-Fix-extension-install.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-Fix-extension-install.patch" =46rom cdf1c37c4263afa88be73583cde320bb5bc334a4 Mon Sep 17 00:00:00 2001 =46rom: =3D?UTF-8?q?C=3DC3=3DA9dric=3D20Villemain?=3D Date: Sat, 1 Dec 2012 14:59:56 +0100 Subject: [PATCH] Fix extension install The sharedir/extension/ directory was not created by the Makefile but this = is a required directory (all extension.control files goe sin it). It works so far because probably that nobody tryed to use MODULEDIR and VPA= TH builds together (there is already a target which mkdir the MODULEDIR so that using the defaults the issue was not visible) =2D-- src/makefiles/pgxs.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 318d5ef..a07af30 100644 =2D-- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -146,6 +146,9 @@ endif # MODULE_big =20 =20 installdirs: +ifneq (,$(EXTENSION)) + $(MKDIR_P) '$(DESTDIR)$(datadir)/extension' +endif ifneq (,$(DATA)$(DATA_built)) $(MKDIR_P) '$(DESTDIR)$(datadir)/$(datamoduledir)' endif =2D-=20 1.7.10.4 --Boundary-01=_dChuQrfAUKRh0fW-- --nextPart1364838.HODX5Y6n8u Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEbBAABAgAGBQJQuhCdAAoJENsgH0yzVBebVyAH9R8igo5gwbdmA0XJFDurvBDk fjhziQiLirhfD3t5qXtCYSDLcZVEUvD8T0HhRZ0EP1OAnPRoO/DQ33SyHKBQm3my jup4j6g7IYhRIKV0hA7/DUf3MfpxQDErv9ZnSWgzjaNEDtWrFuMOcSZWQ1p6145Q XoLYabayvkwDjHi09eMbBhJnY4mI9IXx+cWYdpLHblOHe1RD4s4jTQZGug12G23K tpSgTcqZ9AYwB3kU6GOuqB2hNsI1V3elw0hqYmg0aIpMCnLDj28FBYa9H9zjeo+W XnfAg2rj/mdfwGy0f6s0UGcSyDEsHhtj3NPsg/l4SUm7MnECAyiKjsNEVscG/Q== =XCAG -----END PGP SIGNATURE----- --nextPart1364838.HODX5Y6n8u--