postgresql/src/backend/utils/activity
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
..
.gitignore Add system view pg_wait_events 2023-08-20 15:35:02 +09:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
backend_progress.c Add new parallel message type to progress reporting. 2023-07-11 12:33:54 +09:00
backend_status.c Avoid memory size overflow when allocating backend activity buffer 2023-10-03 15:37:00 +09:00
generate-wait_event_types.pl Remove column for wait event names in wait_event_names.txt 2023-09-06 10:27:02 +09:00
meson.build Add system view pg_wait_events 2023-08-20 15:35:02 +09:00
pgstat.c Report stats when replaying XLOG_RUNNING_XACTS 2023-06-12 15:06:39 -07:00
pgstat_archiver.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstat_bgwriter.c pgstat: Infrastructure for more detailed IO statistics 2023-02-08 20:53:42 -08:00
pgstat_checkpointer.c Introduce pg_stat_checkpointer 2023-10-30 09:47:16 +09:00
pgstat_database.c Fix handling of shared statistics with dropped databases 2023-09-04 08:04:22 +09:00
pgstat_function.c Rename fields in pgstat structures for functions and relations 2023-03-24 08:46:29 +09:00
pgstat_io.c Add local_blk_{read|write}_time I/O timing statistics for local blocks 2023-10-19 13:39:38 +09:00
pgstat_relation.c Refactor some code related to transaction-level statistics for relations 2023-10-30 08:23:39 +09:00
pgstat_replslot.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstat_shmem.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
pgstat_slru.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstat_subscription.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstat_wal.c Fix behavior of "force" in pgstat_report_wal() 2023-09-26 09:29:47 +09:00
pgstat_xact.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
wait_event.c Fix typos in wait_event.c 2023-10-24 08:05:29 +09:00
wait_event_funcs.c Add system view pg_wait_events 2023-08-20 15:35:02 +09:00
wait_event_names.txt Add wait events for checkpoint delay mechanism. 2023-10-13 16:43:22 +13:00