From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix partial-build problems introduced by having more generated h
Date: Mon, 09 Apr 2018 20:42:38 +0000
Message-ID: <E1f5dcc-0003ve-N9@gemulon.postgresql.org> (raw)
Fix partial-build problems introduced by having more generated headers.
Commit 372728b0d created some problems for usages like building a
subdirectory without having first done "make all" at the top level,
or for proceeding directly to "make install" without "make all".
The only reasonably clean way to fix this seems to be to force the
submake-generated-headers rule to fire in *any* "make all" or "make
install" command anywhere in the tree. To avoid lots of redundant work,
as well as parallel make jobs possibly clobbering each others' output, we
still need to be sure that the rule fires only once in a recursive build.
For that, adopt the same MAKELEVEL hack previously used for "temp-install".
But try to document it a bit better.
The submake-errcodes mechanism previously used in src/port/ and src/common/
is subsumed by this, so we can get rid of those special cases. It was
inadequate for src/common/ anyway after the aforesaid commit, and it always
risked parallel attempts to build errcodes.h.
Discussion: https://postgr.es/m/E1f5FAB-0006LU-MB@gemulon.postgresql.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3b8f6e75f3c8c6d192621f21624cc8cee04ec3cb
Modified Files
--------------
doc/src/sgml/Makefile | 2 ++
src/Makefile | 5 -----
src/Makefile.global.in | 39 +++++++++++++++++++++++++++++++++------
src/backend/Makefile | 8 --------
src/backend/jit/llvm/Makefile | 1 -
src/common/Makefile | 7 -------
src/pl/plpython/Makefile | 3 ---
src/port/Makefile | 7 -------
src/test/modules/Makefile | 2 --
src/test/regress/GNUmakefile | 4 +---
10 files changed, 36 insertions(+), 42 deletions(-)
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix partial-build problems introduced by having more generated h
In-Reply-To: <E1f5dcc-0003ve-N9@gemulon.postgresql.org>
References: <E1f5dcc-0003ve-N9@gemulon.postgresql.org>
* 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