From: Cédric Villemain <cedric@2ndquadrant.com>
To: pgsql-bugs@postgresql.org
Subject: extension installation faillure using VPATH and MODULEDIR
Date: Sat, 1 Dec 2012 15:13:49 +0100
Message-ID: <201212011513.53770.cedric@2ndquadrant.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
the attached patch fix the extension installation using a VPATH when a
MODULEDIR is defined in the extension Makefile.
The current issue is that the sharedir/extension directory is not created if
MODULEDIR != 'extension' i.e. MODULEDIR is defined in the Makefile. Thus 'make
install' fail to copy the control file in an nonexistent directory.
Tested with debian extension packages.
--
Cédric Villemain +33 (0)6 20 30 22 52
http://2ndQuadrant.fr/
PostgreSQL: Support 24x7 - Développement, Expertise et Formation
Attachments:0001-Fix-extension-install.patch (text/x-patch, 1013B) download
From cdf1c37c4263afa88be73583cde320bb5bc334a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Villemain?= <cedric@2ndquadrant.fr>
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 VPATH
builds together (there is already a target which mkdir the MODULEDIR so that
using the defaults the issue was not visible)
---
src/makefiles/pgxs.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mkindex 318d5ef..a07af30 100644--- a/src/makefiles/pgxs.mk+++ b/src/makefiles/pgxs.mk@@ -146,6 +146,9 @@ endif # MODULE_big
installdirs:
+ifneq (,$(EXTENSION))+ $(MKDIR_P) '$(DESTDIR)$(datadir)/extension'+endif
ifneq (,$(DATA)$(DATA_built))
$(MKDIR_P) '$(DESTDIR)$(datadir)/$(datamoduledir)'
endif
--
1.7.10.4
signature.asc (application/pgp-signature, 489B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: cedric@2ndquadrant.com
Subject: Re: extension installation faillure using VPATH and MODULEDIR
In-Reply-To: <201212011513.53770.cedric@2ndquadrant.com>
References: <201212011513.53770.cedric@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox