pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedextension installation faillure using VPATH and MODULEDIR
4+ messages / 2 participants
[nested] [flat]
* extension installation faillure using VPATH and MODULEDIR
@ 2012-12-01 14:13 Cédric Villemain <cedric@2ndquadrant.com>
2012-12-01 17:44 ` Re: extension installation faillure using VPATH and MODULEDIR Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Cédric Villemain @ 2012-12-01 14:13 UTC (permalink / raw)
To: pgsql-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.mk
index 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: extension installation faillure using VPATH and MODULEDIR
2012-12-01 14:13 extension installation faillure using VPATH and MODULEDIR Cédric Villemain <cedric@2ndquadrant.com>
@ 2012-12-01 17:44 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-12-01 19:33 ` Re: extension installation faillure using VPATH and MODULEDIR Cédric Villemain <cedric@2ndquadrant.com>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2012-12-01 17:44 UTC (permalink / raw)
To: cedric@2ndquadrant.com; +Cc: pgsql-bugs
=?iso-8859-1?q?C=E9dric_Villemain?= <cedric@2ndquadrant.com> writes:
> 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.
[ scratches head ... ] What's this have to do with VPATH?
I see the point that if EXTENSION is set, and a nondefault MODULEDIR is
selected, the "install" target puts the control file into the extension
subdirectory which hasn't been made by installdirs. But that seems not
connected to VPATH builds.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: extension installation faillure using VPATH and MODULEDIR
2012-12-01 14:13 extension installation faillure using VPATH and MODULEDIR Cédric Villemain <cedric@2ndquadrant.com>
2012-12-01 17:44 ` Re: extension installation faillure using VPATH and MODULEDIR Tom Lane <tgl@sss.pgh.pa.us>
@ 2012-12-01 19:33 ` Cédric Villemain <cedric@2ndquadrant.com>
2012-12-01 21:06 ` Re: extension installation faillure using VPATH and MODULEDIR Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Cédric Villemain @ 2012-12-01 19:33 UTC (permalink / raw)
To: pgsql-bugs; +Cc: Tom Lane <tgl@sss.pgh.pa.us>
Le samedi 1 décembre 2012 18:44:12, Tom Lane a écrit :
> =?iso-8859-1?q?C=E9dric_Villemain?= <cedric@2ndquadrant.com> writes:
> > 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.
>
> [ scratches head ... ] What's this have to do with VPATH?
>
> I see the point that if EXTENSION is set, and a nondefault MODULEDIR is
> selected, the "install" target puts the control file into the extension
> subdirectory which hasn't been made by installdirs. But that seems not
> connected to VPATH builds.
I just hit the bug and though it was relative to VPATH because it was the main
difference in my build. Obviously in my others scenariii the extension/
directory was pre-existent and I didn't notice the problem.
--
Cédric Villemain +33 (0)6 20 30 22 52
http://2ndQuadrant.fr/
PostgreSQL: Support 24x7 - Développement, Expertise et Formation
Attachments:
signature.asc (application/pgp-signature, 489B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: extension installation faillure using VPATH and MODULEDIR
2012-12-01 14:13 extension installation faillure using VPATH and MODULEDIR Cédric Villemain <cedric@2ndquadrant.com>
2012-12-01 17:44 ` Re: extension installation faillure using VPATH and MODULEDIR Tom Lane <tgl@sss.pgh.pa.us>
2012-12-01 19:33 ` Re: extension installation faillure using VPATH and MODULEDIR Cédric Villemain <cedric@2ndquadrant.com>
@ 2012-12-01 21:06 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2012-12-01 21:06 UTC (permalink / raw)
To: cedric@2ndquadrant.com; +Cc: pgsql-bugs
=?iso-8859-15?q?C=E9dric_Villemain?= <cedric@2ndquadrant.com> writes:
> Le samedi 1 décembre 2012 18:44:12, Tom Lane a écrit :
>> [ scratches head ... ] What's this have to do with VPATH?
>>
>> I see the point that if EXTENSION is set, and a nondefault MODULEDIR is
>> selected, the "install" target puts the control file into the extension
>> subdirectory which hasn't been made by installdirs. But that seems not
>> connected to VPATH builds.
> I just hit the bug and though it was relative to VPATH because it was the main
> difference in my build. Obviously in my others scenariii the extension/
> directory was pre-existent and I didn't notice the problem.
No worries, I was just wondering if you were seeing something more than
the problem described. Committed to 9.1 and up.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2012-12-01 21:06 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-12-01 14:13 extension installation faillure using VPATH and MODULEDIR Cédric Villemain <cedric@2ndquadrant.com>
2012-12-01 17:44 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-12-01 19:33 ` Cédric Villemain <cedric@2ndquadrant.com>
2012-12-01 21:06 ` Tom Lane <tgl@sss.pgh.pa.us>
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