forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit619bc23
committed
make dist uses git archive
This changes "make dist" to directly use "git archive", rather thanthe custom shell script it currently runs.This is to make the creation of the distribution tarball more directlytraceable to the git repository. That is why we removed the "makedistprep" step."make dist" continues to produce a .gz and a .bz2 tarball as before.The archives produced this way are deterministic and reproducible,meaning for a given commit the result file should always bebit-for-bit identical. The exception is that if you use a git versionolder than 2.38.0, gzip records the platform in the archive, so you'dget a different output on Windows vs. macOS vs. "UNIX" (everythingelse). In git 2.38.0, this was changed so that everything is recordedas "UNIX" now. This is just something to keep in mind. This issue isspecific to the gzip format, it does not affect other compressionformats.Meson has its own distribution building command (meson dist), but weare not using that at this point. The main problem is that, the waythey have implemented it, it is not deterministic in the above sense.Also, we want a "make" version for the time being. But the targetname "dist" in meson is reserved for that reason, so we call thecustom target "pgdist" (so call something like "meson compile -C buildpgdist").Reviewed-by: Tristan Partin <tristan@neon.tech>Discussion:https://www.postgresql.org/message-id/flat/40e80f77-a294-4f29-a16f-e21bc7bc75fc%40eisentraut.org1 parent80d5d49 commit619bc23
2 files changed
+79
-18
lines changedLines changed: 14 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
91 |
| - | |
| 90 | + | |
92 | 91 |
| |
93 |
| - | |
94 |
| - | |
| 92 | + | |
95 | 93 |
| |
96 |
| - | |
| 94 | + | |
97 | 95 |
| |
98 | 96 |
| |
99 | 97 |
| |
100 | 98 |
| |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
113 | 109 |
| |
114 | 110 |
| |
115 | 111 |
| |
| |||
135 | 131 |
| |
136 | 132 |
| |
137 | 133 |
| |
138 |
| - | |
| 134 | + |
Lines changed: 65 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3359 | 3359 |
| |
3360 | 3360 |
| |
3361 | 3361 |
| |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
3362 | 3427 |
| |
3363 | 3428 |
| |
3364 | 3429 |
| |
|
0 commit comments
Comments
(0)