meson: Avoid PATH bloat from NLS .mo targets in tmp_install test

On Windows, meson adds the build directory of every target in a test's
'depends:' to that test's PATH.  tmp_install depended on
installed_targets, which with NLS enabled includes several hundred .mo
targets, pushing PATH past the Windows length limit.  tmp_install and
initdb_cache then failed with no output.

Fix by depending on a stamp custom_target that itself depends on
installed_targets.  Meson doesn't walk a custom_target's dependencies
when building the test PATH, so this adds at most one entry.  This can
be removed once we mandate a meson version containing the upstream fix
(expected in 1.13).

Reviewed-by: Tristan Partin <[email protected]>
Backpatch-through: 16
Discussion: 
https://postgr.es/m/cad5tbcjxax8bz5q9nge4znvvlixapo89d0ytfhjgeprpyt-...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/799091cde90bc91701c320aa6ddf063118ccb027

Modified Files
--------------
meson.build | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)

Reply via email to