- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit721856f
committed
Remove distprep
A PostgreSQL release tarball contains a number of prebuilt files, inparticular files produced by bison, flex, perl, and well as html andman documentation. We have done this consistent with establishedpractice at the time to not require these tools for building from atarball. Some of these tools were hard to get, or get the rightversion of, from time to time, and shipping the prebuilt output was aconvenience to users.Now this has at least two problems:One, we have to make the build system(s) work in two modes: Buildingfrom a git checkout and building from a tarball. This is prettycomplicated, but it works so far for autoconf/make. It does notcurrently work for meson; you can currently only build with meson froma git checkout. Making meson builds work from a tarball seems verydifficult or impossible. One particular problem is that since mesonrequires a separate build directory, we cannot make the build updatefiles like gram.h in the source tree. So if you were to build from atarball and update gram.y, you will have a gram.h in the source treeand one in the build tree, but the way things work is that thecompiler 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 theorigin of software. We can reasonably track contributions into thegit tree, and users can reasonably track the path from a tarball topackages and downloads and installs. But what happens between the gittree 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 thatadds prebuilt files to the tarball. The tarball now only containswhat is in the git tree (*). Getting the additional builddependencies is no longer a problem nowadays, and the complications tokeep these dual build modes working are significant. And of course wewant to get the meson build system working universally.This commit removes the make distprep target altogether. The makedist target continues to do its job, it just doesn't call distprepanymore.(*) - The tarball also contains the INSTALL file that is built at makedist time, but not by distprep. This is unchanged for now.The make maintainer-clean target, whose job it is to remove theprebuilt files in addition to what make distclean does, is now just analias to make distprep. (In practice, it is probably obsolete giventhat git clean is available.)The following programs are now hard build requirements in configure(they were already required by meson.build):- bison- flex- perlReviewed-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.org1 parentb72de09 commit721856f
File tree
89 files changed
+175
-416
lines changed- config
- contrib
- cube
- fuzzystrmatch
- seg
- doc
- src
- sgml
- src
- backend
- bootstrap
- catalog
- jit/llvm
- nodes
- parser
- port
- replication
- libpqwalreceiver
- pgoutput
- snowball
- storage/lmgr
- utils
- activity
- adt
- mb
- Unicode
- conversion_procs
- misc
- bin
- initdb
- pg_amcheck
- pg_archivecleanup
- pg_basebackup
- pg_checksums
- pg_config
- pg_controldata
- pg_ctl
- pg_dump
- pg_resetwal
- pg_rewind
- pg_test_fsync
- pg_test_timing
- pg_upgrade
- pg_verifybackup
- pg_waldump
- pgbench
- psql
- scripts
- common
- unicode
- fe_utils
- include
- interfaces
- ecpg
- compatlib
- ecpglib
- include
- pgtypeslib
- preproc
- test
- libpq
- test
- makefiles
- pl
- plperl
- plpgsql/src
- plpython
- tcl
- port
- test
- authentication
- examples
- icu
- isolation
- kerberos
- ldap
- locale
- recovery
- regress
- ssl
- subscription
- timezone
- tools
- ifaddrs
- pg_bsd_indent
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
89 files changed
+175
-416
lines changedLines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
113 | 112 |
| |
114 | 113 |
| |
115 | 114 |
| |
| |||
122 | 121 |
| |
123 | 122 |
| |
124 | 123 |
| |
125 |
| - | |
126 | 124 |
| |
127 | 125 |
| |
128 | 126 |
| |
|
Lines changed: 2 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
20 | 19 |
| |
21 | 20 |
| |
22 | 21 |
| |
23 | 22 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
| 23 | + | |
29 | 24 |
| |
30 | 25 |
| |
31 | 26 |
| |
|
Lines changed: 4 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 | 39 |
| |
41 | 40 |
| |
42 | 41 |
| |
| |||
49 | 48 |
| |
50 | 49 |
| |
51 | 50 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
| 51 | + | |
58 | 52 |
| |
59 | 53 |
| |
60 | 54 |
| |
| |||
95 | 89 |
| |
96 | 90 |
| |
97 | 91 |
| |
98 |
| - | |
| 92 | + | |
99 | 93 |
| |
100 | 94 |
| |
101 | 95 |
| |
| |||
109 | 103 |
| |
110 | 104 |
| |
111 | 105 |
| |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
| 106 | + | |
120 | 107 |
| |
121 | 108 |
| |
122 | 109 |
| |
|
Lines changed: 9 additions & 53 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10162 | 10162 |
| |
10163 | 10163 |
| |
10164 | 10164 |
| |
10165 |
| - | |
10166 |
| - | |
10167 |
| - | |
10168 |
| - | |
| 10165 | + | |
10169 | 10166 |
| |
10170 |
| - | |
10171 |
| - | |
| 10167 | + | |
10172 | 10168 |
| |
10173 | 10169 |
| |
10174 | 10170 |
| |
| |||
10181 | 10177 |
| |
10182 | 10178 |
| |
10183 | 10179 |
| |
10184 |
| - | |
10185 |
| - | |
10186 |
| - | |
10187 |
| - | |
10188 |
| - | |
10189 |
| - | |
10190 |
| - | |
10191 |
| - | |
10192 |
| - | |
10193 |
| - | |
10194 |
| - | |
10195 |
| - | |
| 10180 | + | |
10196 | 10181 |
| |
10197 | 10182 |
| |
10198 | 10183 |
| |
| |||
10225 | 10210 |
| |
10226 | 10211 |
| |
10227 | 10212 |
| |
10228 |
| - | |
10229 |
| - | |
10230 |
| - | |
10231 |
| - | |
| 10213 | + | |
10232 | 10214 |
| |
10233 |
| - | |
| 10215 | + | |
10234 | 10216 |
| |
10235 | 10217 |
| |
10236 | 10218 |
| |
| |||
10244 | 10226 |
| |
10245 | 10227 |
| |
10246 | 10228 |
| |
10247 |
| - | |
10248 |
| - | |
10249 |
| - | |
10250 |
| - | |
10251 |
| - | |
10252 |
| - | |
10253 |
| - | |
10254 |
| - | |
10255 |
| - | |
10256 |
| - | |
10257 |
| - | |
10258 |
| - | |
10259 |
| - | |
10260 |
| - | |
| 10229 | + | |
10261 | 10230 |
| |
10262 | 10231 |
| |
10263 | 10232 |
| |
| |||
10331 | 10300 |
| |
10332 | 10301 |
| |
10333 | 10302 |
| |
10334 |
| - | |
10335 |
| - | |
10336 |
| - | |
10337 |
| - | |
| 10303 | + | |
10338 | 10304 |
| |
10339 |
| - | |
10340 |
| - | |
| 10305 | + | |
10341 | 10306 |
| |
10342 | 10307 |
| |
10343 | 10308 |
| |
10344 | 10309 |
| |
10345 |
| - | |
10346 |
| - | |
10347 |
| - | |
10348 |
| - | |
10349 |
| - | |
10350 |
| - | |
10351 |
| - | |
10352 |
| - | |
10353 |
| - | |
10354 |
| - | |
| 10310 | + | |
10355 | 10311 |
| |
10356 | 10312 |
| |
10357 | 10313 |
| |
|
Lines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
| |||
37 | 39 |
| |
38 | 40 |
| |
39 | 41 |
| |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - |
Lines changed: 2 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
| 19 | + | |
18 | 20 |
| |
19 | 21 |
| |
20 | 22 |
| |
| |||
31 | 33 |
| |
32 | 34 |
| |
33 | 35 |
| |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - |
Lines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
|
Lines changed: 5 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 |
| - | |
| 10 | + | |
12 | 11 |
| |
13 | 12 |
| |
14 | 13 |
| |
| |||
28 | 27 |
| |
29 | 28 |
| |
30 | 29 |
| |
31 |
| - | |
32 |
| - | |
33 | 30 |
| |
34 | 31 |
| |
35 | 32 |
| |
| |||
77 | 74 |
| |
78 | 75 |
| |
79 | 76 |
| |
80 |
| - | |
| 77 | + | |
81 | 78 |
| |
82 | 79 |
| |
83 | 80 |
| |
| |||
89 | 86 |
| |
90 | 87 |
| |
91 | 88 |
| |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
96 | 92 |
| |
97 | 93 |
| |
98 | 94 |
| |
| |||
305 | 301 |
| |
306 | 302 |
| |
307 | 303 |
| |
308 |
| - | |
309 |
| - | |
310 | 304 |
| |
311 | 305 |
| |
312 | 306 |
| |
|
0 commit comments
Comments
(0)