Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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 Doug Newgard (Scimmia) - Saturday, 31 December 2016, 15:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


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 /`
(path listed in step 3 won't be listed in step 4, therefore invalid path)
This task depends upon