FS#52292 - [kbd] Fix locale installation path

Attached to Project: Arch Linux
Opened by Rafael Fontenelle (josephg) - Wednesday, 28 December 2016, 16:59 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 21 July 2020, 21:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Localization isn't working because binary translation files are installed in an invalid path. In the source code, the variable 'localedir' relies on datadir and, since the PKGBUILD sets datadir to /usr/share/kbd, localedir currently is /usr/share/kbd/locale, which is a invalid path -- glibc won't find and therefore translations won't be used.

A valid path would be /usr/share/locale, but passing '--localedir=/usr/share/locale' to ./configure won't work, as po/Makefile ignores the value of the localedir variable. As workaround, this variable can be passed to make install.

So, in order to solve this, simply append "localedir=/usr/share/locale" to make install.

Additional info:
* package version(s)
kbd 2.0.3-1

Steps to reproduce:
1- find a language code to which kbd is translated and enable it in locale-gen, if needed;
2- run any binary from kbd package prefixing with LC_ALL=<langcode>, if needed -- should get English strings instead
3- list locale installation path with `pacman -Ql kbd | grep locale`
4- use straces to debug the locale calls with e.g `trace -e trace=open setfont --help 2>&1 | fgrep /kbd.mo`
(path listed in step 3 won't be listed in step 4, therefore invalid path)
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Tuesday, 21 July 2020, 21:03 GMT
Reason for closing:  Fixed
Comment by Tobias Powalowski (tpowa) - Tuesday, 21 July 2020, 19:29 GMT
Still an issue with latest kbd?
Comment by Rafael Fontenelle (josephg) - Tuesday, 21 July 2020, 20:52 GMT
Nope. Upstream updated gettext stuff and fixed the locale dir installation process. Thanks.

Loading...