postgresql/src/bin/pg_dump
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
..
po Translation updates 2023-08-07 12:39:30 +02:00
t Clean up some pg_dump tests 2023-10-18 08:08:17 +02:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
common.c Catalog not-null constraints 2023-08-25 13:31:24 +02:00
compress_gzip.c pg_dump: Fix gzip compression of empty data 2023-03-29 02:34:48 +02:00
compress_gzip.h Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
compress_io.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
compress_io.h Advance input pointer when LZ4 compressing data 2023-05-17 16:49:34 +02:00
compress_lz4.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
compress_lz4.h Add LZ4 compression to pg_dump 2023-02-23 21:19:26 +01:00
compress_none.c Unify buffer sizes in pg_dump compression API 2023-03-23 17:55:52 +01:00
compress_none.h Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
compress_zstd.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
compress_zstd.h Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
dumputils.c Revert MAINTAIN privilege and pg_maintain predefined role. 2023-07-07 11:25:13 -07:00
dumputils.h Revert "Add USER SET parameter values for pg_db_role_setting" 2023-05-17 20:28:57 +03:00
meson.build pg_dump: Add support for zstd compression 2023-04-05 21:39:33 +02:00
nls.mk Add missing source file to nls.mk 2023-05-08 08:24:42 +02:00
parallel.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
parallel.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_backup.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_backup_archiver.c Fix omission of column-level privileges in selective pg_restore. 2023-10-02 13:27:58 -04:00
pg_backup_archiver.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_backup_custom.c Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
pg_backup_db.c pg_dump: Remove "blob" terminology 2022-12-05 08:52:55 +01:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:04 -05:00
pg_backup_directory.c Add support for syncfs() in frontend support functions. 2023-09-06 16:27:00 -07:00
pg_backup_null.c pg_dump: Remove "blob" terminology 2022-12-05 08:52:55 +01:00
pg_backup_tar.c Add and use symbolic constants for tar header offsets and file types. 2023-08-01 13:50:42 -04:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_backup_utils.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_dump.c Teach pg_dump about the new pg_subscription.subrunasowner option. 2023-10-29 12:56:35 -04:00
pg_dump.h Teach pg_dump about the new pg_subscription.subrunasowner option. 2023-10-29 12:56:35 -04:00
pg_dump_sort.c Remove open-coded binary heap in pg_dump_sort.c. 2023-09-19 19:18:34 -07:00
pg_dumpall.c Fix pg_dumpall with in-place tablespaces 2023-08-09 08:56:05 +09:00
pg_restore.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00