forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1d084fb
committed
Add ./configure check for "lz4" command
Some environments may compile with --with-lz4 while the command "lz4"goes missing, causing two failures in the TAP tests of pg_verifybackup(008_untar.pl and 010_client_untar.pl) as the code assumed that thecommand always existed with a hardcoded value in src/Makefile.global.Rather than this method, this adds a ./configure check based onPGAC_PATH_PROGS() to find automatically the command and get an absolutepath to it.Both tests need to be adjusted for the case where the command does notexist, actually, as Makefile.global would set now LZ4 to an empty valuein this case. The TAP tests of pg_receivewal already do that.Per report from buildfarm member copperhead, as an effect ofdab2984.The origin of the failure is actuallybabbbb5 that did not centralizethe check for the existence of a "lz4" command at ./configure to shave afew cycles. Note that one just needs to tweak an environment to move"lz4" out of the way to reproduce the problem, which is what I did totest this change.Per discussion with Robert Haas, Tom Lane, Andres Freund and myself.Discussion:https://postgr.es/m/Ygc51WVAFGocSu4h@paquier.xyz1 parent3f74daa commit1d084fb
File tree
5 files changed
+63
-5
lines changed- src
- bin/pg_verifybackup/t
5 files changed
+63
-5
lines changedLines changed: 55 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
650 | 650 |
| |
651 | 651 |
| |
652 | 652 |
| |
| 653 | + | |
653 | 654 |
| |
654 | 655 |
| |
655 | 656 |
| |
| |||
13832 | 13833 |
| |
13833 | 13834 |
| |
13834 | 13835 |
| |
| 13836 | + | |
| 13837 | + | |
| 13838 | + | |
| 13839 | + | |
| 13840 | + | |
| 13841 | + | |
| 13842 | + | |
| 13843 | + | |
| 13844 | + | |
| 13845 | + | |
| 13846 | + | |
| 13847 | + | |
| 13848 | + | |
| 13849 | + | |
| 13850 | + | |
| 13851 | + | |
| 13852 | + | |
| 13853 | + | |
| 13854 | + | |
| 13855 | + | |
| 13856 | + | |
| 13857 | + | |
| 13858 | + | |
| 13859 | + | |
| 13860 | + | |
| 13861 | + | |
| 13862 | + | |
| 13863 | + | |
| 13864 | + | |
| 13865 | + | |
| 13866 | + | |
| 13867 | + | |
| 13868 | + | |
| 13869 | + | |
| 13870 | + | |
| 13871 | + | |
| 13872 | + | |
| 13873 | + | |
| 13874 | + | |
| 13875 | + | |
| 13876 | + | |
| 13877 | + | |
| 13878 | + | |
| 13879 | + | |
| 13880 | + | |
| 13881 | + | |
| 13882 | + | |
| 13883 | + | |
| 13884 | + | |
| 13885 | + | |
| 13886 | + | |
| 13887 | + | |
| 13888 | + | |
| 13889 | + | |
13835 | 13890 |
| |
13836 | 13891 |
| |
13837 | 13892 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1485 | 1485 |
| |
1486 | 1486 |
| |
1487 | 1487 |
| |
| 1488 | + | |
1488 | 1489 |
| |
1489 | 1490 |
| |
1490 | 1491 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
350 | 350 |
| |
351 | 351 |
| |
352 | 352 |
| |
353 |
| - | |
| 353 | + | |
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
58 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
57 |
| - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
|
0 commit comments
Comments
(0)