diff mbox series

[meta-oe,54/55] postgresql: Add Spanish locale to ptest RDEPENDS

Message ID 20261125080732.2419614-60-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-multimedia] clightd: Port ALS sensor to libiio 1.0 | expand

Commit Message

Khem Raj Nov. 25, 2026, 8:07 a.m. UTC
The nls regression test sets lc_messages to es_ES and expects either a
translated message (nls.out) or a "lc_messages is 'C'" notice when the
locale is unavailable (nls_2.out). On musl, setlocale() accepts any
locale name, so the C fallback never happens, but without the
postgresql-regress Spanish catalog installed gettext returns the
untranslated string, which matches neither expected output:

  FAIL: nls

Install postgresql-locale-es with the ptest so the translation is found.
glibc images without the es_ES locale still take the C fallback.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-dbs/postgresql/postgresql.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc
index 21dbad30f3..00545ec74e 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql.inc
+++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc
@@ -236,7 +236,7 @@  do_install_ptest() {
     chown -R postgres:postgres ${D}${PTEST_PATH}
 }
 
-RDEPENDS:${PN}-ptest += "${PN}-client ${PN}-contrib perl"
+RDEPENDS:${PN}-ptest += "${PN}-client ${PN}-contrib perl ${PN}-locale-es"
 FILES:${PN}-ptest += "${libdir}/${BPN}/regress.so"
 
 # server needs to configure user and group