From: Pavel Raiskup <praiskup@redhat.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: [PATCH] parallel & isolated makefile for plpython
Date: Sat, 01 Oct 2016 08:20:14 +0200
Message-ID: <1925924.izSMJEZO3x@unused-4-107.brq.redhat.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Hi, we observed issues with parallel make during RPM build in plpython,
seems like the attached patch 0002 should help. Feel free to reject 0001,
but comment like that would save some time to me as a "newcomer" into that
Makefile.
Pavel
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackersAttachments:download all (2 files, .tar.gz)0001-Document-that-Empty-Recipe-is-standard-thing-in-GNU-.patch (text/x-patch, 1.1K) download
From b8722c8fb1e3d5f752d75e4d0740d04793577185 Mon Sep 17 00:00:00 2001
From: Pavel Raiskup <praiskup@redhat.com>
Date: Fri, 30 Sep 2016 14:26:24 +0200
Subject: [PATCH 1/2] Document that "Empty Recipe" is standard thing in GNU
make
---
src/backend/parser/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefilenew file mode 100644index fdd8485..92acc00
*** a/src/backend/parser/Makefile
--- b/src/backend/parser/Makefile
*************** endif
*** 31,37 ****
# shorthand for two otherwise separate rules. To be safe for parallel
# make, we must chain the dependencies like this. The semicolon is
# important, otherwise make will choose the built-in rule for
! # gram.y=>gram.c.
gram.h: gram.c ;
--- 31,37 ----
# shorthand for two otherwise separate rules. To be safe for parallel
# make, we must chain the dependencies like this. The semicolon is
# important, otherwise make will choose the built-in rule for
! # gram.y=>gram.c. Run `info make -n "Empty Recipes"` for more info.
gram.h: gram.c ;
--
2.7.4
0002-Make-makefile-for-plpython-really-self-standing.patch (text/x-patch, 1.4K) download
From dbd3a57775e3b177d1a9c974d89862ab8a24b9f1 Mon Sep 17 00:00:00 2001
From: Pavel Raiskup <praiskup@redhat.com>
Date: Sat, 1 Oct 2016 07:53:29 +0200
Subject: [PATCH 2/2] Make makefile for plpython really self-standing
The submake-generated-headers can't be used as 'all' prerequisite
at the same level with with 'all-lib', because
'submake-generated-headers' is actually prerequisite for
'all-libs' in this makefile. So use submake-generated-headers as
$(OBJS) prerequisite, as several object files depend on it.
Move the 'all' target before include statement, according to
documentation in Makefile.shlib.
This is follow-up for 548af97fcec5543603c20b61fec60f8147a05b29.
---
src/pl/plpython/Makefile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefilenew file mode 100644index 647b4b1..3a8b2c6
*** a/src/pl/plpython/Makefile
--- b/src/pl/plpython/Makefile
*************** REGRESS = \
*** 93,102 ****
REGRESS_PLPYTHON3_MANGLE := $(REGRESS)
! include $(top_srcdir)/src/Makefile.shlib
! all: submake-generated-headers all-lib
install: all install-lib install-data
--- 93,103 ----
REGRESS_PLPYTHON3_MANGLE := $(REGRESS)
! $(OBJS): | submake-generated-headers
! all: all-lib
+ include $(top_srcdir)/src/Makefile.shlib
install: all install-lib install-data
--
2.7.4
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-hackers@postgresql.org
Cc: praiskup@redhat.com
Subject: Re: [PATCH] parallel & isolated makefile for plpython
In-Reply-To: <1925924.izSMJEZO3x@unused-4-107.brq.redhat.com>
References: <1925924.izSMJEZO3x@unused-4-107.brq.redhat.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