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

Sam James <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <822344f7cd03b8f199d0e612868221d13d14300d.1783035357.git.sam@gentoo.org>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.