[PATCH] intl: create correct directory in tst-translit.sh

Sam James sam@gentoo.org
Thu Jul 2 23:35:58 GMT 2026


Depending on parallelism, it's possible for domaindir/existing-locale/LC_MESSAGES
to have not been created yet:
```
msgfmt: error while opening "build/intl/domaindir/existing-locale/LC_MESSAGES/translit.mo" for writing: No such file or directory
make[2]: Leaving directory 'src/intl'
FAIL: intl/tst-translit
original exit status 1
cat: build/intl/tst-translit.out: No such file or directory
make[1]: *** [Makefile:944: test] Error 1
```

If so, the following msgfmt call will fail. Fix the typo in the mkdir call.

Arguably we should split these test preparations to avoid producing binaries
we know won't PASS because their support data is missing.
---

 intl/tst-translit.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/intl/tst-translit.sh b/intl/tst-translit.sh
index 5665372444..8d1bea0566 100755
--- a/intl/tst-translit.sh
+++ b/intl/tst-translit.sh
@@ -24,7 +24,7 @@ test_program_prefix=$2
 objpfx=$3
 
 # Create the locale directories.
-mkdir -p ${objpfx}localedir/existing-locale/LC_MESSAGES
+mkdir -p ${objpfx}domaindir/existing-locale/LC_MESSAGES
 
 msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/translit.mo \
        translit.po

base-commit: 84c3993f1ff1546c8dd06c3ced5d2bed0be649c0
-- 
2.55.0



More information about the Libc-alpha mailing list