postgresql/src/include
Peter Eisentraut 721856ff24 Remove distprep
A PostgreSQL release tarball contains a number of prebuilt files, in
particular files produced by bison, flex, perl, and well as html and
man documentation.  We have done this consistent with established
practice at the time to not require these tools for building from a
tarball.  Some of these tools were hard to get, or get the right
version of, from time to time, and shipping the prebuilt output was a
convenience to users.

Now this has at least two problems:

One, we have to make the build system(s) work in two modes: Building
from a git checkout and building from a tarball.  This is pretty
complicated, but it works so far for autoconf/make.  It does not
currently work for meson; you can currently only build with meson from
a git checkout.  Making meson builds work from a tarball seems very
difficult or impossible.  One particular problem is that since meson
requires a separate build directory, we cannot make the build update
files like gram.h in the source tree.  So if you were to build from a
tarball and update gram.y, you will have a gram.h in the source tree
and one in the build tree, but the way things work is that the
compiler will always use the one in the source tree.  So you cannot,
for example, make any gram.y changes when building from a tarball.
This seems impossible to fix in a non-horrible way.

Second, there is increased interest nowadays in precisely tracking the
origin of software.  We can reasonably track contributions into the
git tree, and users can reasonably track the path from a tarball to
packages and downloads and installs.  But what happens between the git
tree and the tarball is obscure and in some cases non-reproducible.

The solution for both of these issues is to get rid of the step that
adds prebuilt files to the tarball.  The tarball now only contains
what is in the git tree (*).  Getting the additional build
dependencies is no longer a problem nowadays, and the complications to
keep these dual build modes working are significant.  And of course we
want to get the meson build system working universally.

This commit removes the make distprep target altogether.  The make
dist target continues to do its job, it just doesn't call distprep
anymore.

(*) - The tarball also contains the INSTALL file that is built at make
dist time, but not by distprep.  This is unchanged for now.

The make maintainer-clean target, whose job it is to remove the
prebuilt files in addition to what make distclean does, is now just an
alias to make distprep.  (In practice, it is probably obsolete given
that git clean is available.)

The following programs are now hard build requirements in configure
(they were already required by meson.build):

- bison
- flex
- perl

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/flat/e07408d9-e5f2-d9fd-5672-f53354e9305e@eisentraut.org
2023-11-06 15:18:04 +01:00
..
access Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
archive Redesign archive modules 2023-02-17 14:26:42 +09:00
backup Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
bootstrap Add const decorations 2023-08-23 06:39:39 +02:00
catalog Add XMLText function (SQL/XML X038) 2023-11-06 09:38:29 +01:00
commands Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
common Additional unicode primitive functions. 2023-11-01 22:47:06 -07:00
datatype Guard against overflow in make_interval(). 2023-10-29 15:51:53 +00:00
executor Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
fe_utils Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
foreign Update copyright for 2023 2023-01-02 15:00:37 -05:00
jit jit: Supply LLVMGlobalGetValueType() for LLVM < 8. 2023-10-19 03:01:55 +13:00
lib Introduce the concept of read-only StringInfos 2023-10-26 16:31:48 +13:00
libpq Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
mb Restore proper linkage of pg_char_to_encoding() and friends. 2023-10-07 12:08:10 -04:00
nodes Make UniqueRelInfo a node 2023-10-27 05:45:16 +03:00
optimizer Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
parser Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
partitioning Add const to values and nulls arguments 2023-10-10 07:50:43 +02:00
pch Update copyright for 2023 2023-01-02 15:00:37 -05:00
port Improve the naming in wal_sync_method code. 2023-10-13 15:16:45 -05:00
portability instr_time: Represent time as an int64 on all platforms 2023-01-20 21:16:47 -08:00
postmaster Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
regex Fix various typos 2023-04-18 13:23:23 +12:00
replication Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
rewrite Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
snowball Update copyright for 2023 2023-01-02 15:00:37 -05:00
statistics Add macro for maximum statistics target 2023-07-03 07:18:57 +02:00
storage Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
tcop Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
tsearch Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
utils Be more wary about NULL values for GUC string variables. 2023-11-02 11:47:33 -04:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
c.h Improve const use in zlib-using code 2023-08-07 09:34:38 +02:00
fmgr.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
funcapi.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
getopt_long.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
miscadmin.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_config.h.in Use native CRC instructions on 64-bit LoongArch 2023-08-10 11:36:15 +07:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.meson meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
pg_config_manual.h Update PG_CACHE_LINE_SIZE description. 2023-07-03 11:56:30 +03:00
pg_getopt.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_trace.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstat.h Introduce pg_stat_checkpointer 2023-10-30 09:47:16 +09:00
pgtar.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pgtime.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
port.h Rename port/thread.c to port/user.c. 2023-07-09 18:17:09 +12:00
postgres.h New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
postgres_ext.h Move RelFileNumber declarations to common/relpath.h. 2022-09-27 12:01:57 -04:00
postgres_fe.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
varatt.h New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
windowapi.h Update copyright for 2023 2023-01-02 15:00:37 -05:00