pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: meson: Avoid PATH bloat from NLS .mo targets in tmp_install test
Date: Sun, 01 Nov 2026 21:44:26 +0000
Message-ID: <E1xNdLm-00000001i0h-09uQ@gemulon.postgresql.org> (raw)

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 <tristan@partin.io>
Backpatch-through: 16
Discussion: https://postgr.es/m/CAD5tBcJXAX8bz5q9ngE4znvVLiXaPO89D0yTFhJgEPrPyT-Erw@mail.gmail.com

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ab5a39e1672e28b59e7699b6d8f461ef9f4b3874

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



view thread (5+ messages)  latest in thread

Message-ID: <E1xNdLm-00000001i0h-09uQ@gemulon.postgresql.org>
Permalink:  ../E1xNdLm-00000001i0h-09uQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xNdLm-00000001i0h-09uQ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: meson: Avoid PATH bloat from NLS .mo targets in tmp_install test
  In-Reply-To: <E1xNdLm-00000001i0h-09uQ@gemulon.postgresql.org>
  References: <E1xNdLm-00000001i0h-09uQ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox