postgresql/src/backend/utils/adt
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 Build all Flex files standalone 2022-09-04 12:09:01 +07:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
acl.c Harden has_xxx_privilege() functions against concurrent object drops. 2023-10-14 14:49:50 -04:00
amutils.c Add SysCacheGetAttrNotNull for guaranteed not-null attrs 2023-03-25 22:49:33 +01:00
array_expanded.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
array_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
array_typanalyze.c Take pg_attribute out of VacAttrStats 2023-07-03 07:18:57 +02:00
array_userfuncs.c Optimize various aggregate deserialization functions, take 2 2023-10-27 10:41:55 +13:00
arrayfuncs.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
arraysubs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
arrayutils.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ascii.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
bool.c Doc: modernize comment for boolin(). 2023-10-19 11:31:05 -04:00
cash.c Convert a few more datatype input functions to report errors softly. 2022-12-14 18:03:11 -05:00
char.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
cryptohashfuncs.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
date.c Dodge a compiler bug affecting timetz_zone/timetz_izone. 2023-10-17 13:10:35 -04:00
datetime.c Tighten unit parsing in internal values 2023-08-28 14:27:17 +09:00
datum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
dbsize.c Add support for unit "B" to pg_size_bytes() 2023-03-07 20:31:16 +01:00
domains.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
encode.c Fix small overestimation of base64 encoding output length. 2023-06-08 11:24:31 -04:00
enum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
expandeddatum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
expandedrecord.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
float.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
format_type.c Add more SQL/JSON constructor functions 2023-07-26 17:08:33 +09:00
formatting.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
genfile.c Use "data directory" not "current directory" in error messages. 2023-03-16 12:04:08 -04:00
geo_ops.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
geo_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
geo_spgist.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
hbafuncs.c Store IdentLine->pg_user as an AuthToken 2023-01-16 13:58:07 +09:00
inet_cidr_ntop.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
inet_net_pton.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
int.c Remove arbitrary FUNC_MAX_ARGS limit in int2vectorin and oidvectorin. 2023-01-15 17:32:09 -05:00
int8.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
json.c Add const to values and nulls arguments 2023-10-10 07:50:43 +02:00
jsonb.c Add const to values and nulls arguments 2023-10-10 07:50:43 +02:00
jsonb_gin.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
jsonb_op.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonb_util.c Unify some error messages 2023-08-16 16:17:00 +02:00
jsonbsubs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonfuncs.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
jsonpath.c Fix overly strict Assert in jsonpath code 2023-08-02 01:39:47 +12:00
jsonpath_exec.c Accept fractional seconds in jsonpath's datetime() method. 2023-06-12 10:54:44 -04:00
jsonpath_gram.y Redesign interrupt/cancel API for regex engine. 2023-04-08 22:10:39 +12:00
jsonpath_internal.h Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
jsonpath_scan.l Message wording improvements 2023-07-10 10:47:24 +02:00
levenshtein.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
like.c All supported systems have locale_t. 2023-07-09 11:55:18 +12:00
like_match.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
like_support.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
lockfuncs.c Generate automatically code and documentation related to wait events 2023-07-05 10:53:11 +09:00
mac.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
mac8.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
mcxtfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
misc.c Rework pg_input_error_message(), now renamed pg_input_error_info() 2023-02-28 08:04:13 +09:00
multirangetypes.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
multirangetypes_selfuncs.c Remove duplicate lines of code 2023-04-24 11:16:17 +02:00
name.c Change "..." to cstring in old input/output function comments. 2023-06-26 11:52:31 +03:00
network.c Work around spurious compiler warning in inet operators 2023-03-16 14:48:45 -07:00
network_gist.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
network_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
network_spgist.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
numeric.c Optimize various aggregate deserialization functions, take 2 2023-10-27 10:41:55 +13:00
numutils.c Fix typo in numutils.c comments 2023-09-25 13:29:34 +02:00
oid.c Remove arbitrary FUNC_MAX_ARGS limit in int2vectorin and oidvectorin. 2023-01-15 17:32:09 -05:00
oracle_compat.c Avoid fetching one past the end of translate()'s "to" parameter. 2023-03-01 11:30:31 -05:00
orderedsetaggs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
partitionfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_locale.c Refactor error messages for unsupported providers in pg_locale.c 2023-09-14 08:35:02 +09:00
pg_lsn.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_upgrade_support.c Migrate logical slots to the new node during an upgrade. 2023-10-26 07:06:55 +05:30
pgstatfuncs.c Fix function name in comment 2023-11-01 11:46:30 +01:00
pseudotypes.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
quote.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
rangetypes.c doc: 1-byte varlena headers can be used for user PLAIN storage 2023-10-31 09:10:35 -04:00
rangetypes_gist.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
rangetypes_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rangetypes_spgist.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rangetypes_typanalyze.c Take pg_attribute out of VacAttrStats 2023-07-03 07:18:57 +02:00
regexp.c Redesign interrupt/cancel API for regex engine. 2023-04-08 22:10:39 +12:00
regproc.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ri_triggers.c Fix ExecCheckPermissions call in RI_Initial_Check 2023-05-04 19:55:56 +02:00
rowtypes.c Introduce the concept of read-only StringInfos 2023-10-26 16:31:48 +13:00
ruleutils.c Add support for AT LOCAL 2023-10-13 13:01:37 +09:00
selfuncs.c Fix typos in comments 2023-05-02 12:23:08 +09:00
tid.c Consolidate ItemPointer to Datum conversion functions 2023-02-13 09:57:15 +01:00
timestamp.c Guard against overflow in make_interval(). 2023-10-29 15:51:53 +00:00
trigfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tsginidx.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
tsgistidx.c Improve description of keys in tsvector 2023-09-05 13:57:44 +09:00
tsquery.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
tsquery_cleanup.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery_gist.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery_op.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
tsquery_rewrite.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tsquery_util.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsrank.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsvector.c Fix datalen calculation in tsvectorrecv(). 2023-10-01 13:16:47 -04:00
tsvector_op.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
tsvector_parser.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
uuid.c Change argument type of pq_sendbytes from char * to void * 2023-02-14 13:32:19 +01:00
varbit.c Change argument type of pq_sendbytes from char * to void * 2023-02-14 13:32:19 +01:00
varchar.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
varlena.c Additional unicode primitive functions. 2023-11-01 22:47:06 -07:00
version.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
windowfuncs.c Teach planner about more monotonic window functions 2023-01-27 16:08:41 +13:00
xid.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
xid8funcs.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
xml.c Add XMLText function (SQL/XML X038) 2023-11-06 09:38:29 +01:00