pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid duplicate file references in backend .pot file
Date: Sun, 08 Nov 2026 08:28:24 +0000
Message-ID: <E1xPyGG-00000000gfP-35XN@gemulon.postgresql.org> (raw)

Avoid duplicate file references in backend .pot file

The list of files for the backend's message catalog is collected with
find, which also listed symlinks, namely the generated files that are
linked from src/include/utils/ to src/backend/utils/ (such as
guc_tables.inc.c) and the port/pg_sema.c and port/pg_shmem.c links
created by configure.  Since the link targets are found under their
real names as well, xgettext processed those files twice, resulting in
duplicate "#:" references like

    #: ../include/utils/guc_tables.inc.c:410 utils/guc_tables.inc.c:410

Fix by restricting find to regular files.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Jonathan Gonzalez V. <jonathan@abdiel.eu>
Discussion: https://www.postgresql.org/message-id/flat/15b90fcc-cf6e-492d-82a4-29739b2c040f%40eisentraut.org

Branch
------
master

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

Modified Files
--------------
src/backend/nls.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1xPyGG-00000000gfP-35XN@gemulon.postgresql.org>
Permalink:  ../E1xPyGG-00000000gfP-35XN@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xPyGG-00000000gfP-35XN@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: peter@eisentraut.org
  Subject: Re: pgsql: Avoid duplicate file references in backend .pot file
  In-Reply-To: <E1xPyGG-00000000gfP-35XN@gemulon.postgresql.org>
  References: <E1xPyGG-00000000gfP-35XN@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