FS#13837 - [kbd] Keymaps defaults to dvorak
Attached to Project:
Arch Linux
Opened by Martin Sandsmark (sandsmark) - Tuesday, 17 March 2009, 21:31 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 23 July 2009, 19:52 GMT
Opened by Martin Sandsmark (sandsmark) - Tuesday, 17 March 2009, 21:31 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 23 July 2009, 19:52 GMT
|
Details
If you just specify your country code (no, for example, in
my case), for example for KEYMAP in /etc/rc.conf, or when
using loadkeys, it defaults to loading the dvorak
version.
This is pretty silly and caused some major frustrations (for example when X fails to start for the first time in half a year, and you can't log in at the tty's). Example output: lejon:~/# loadkeys no Loading /usr/share/kbd/keymaps/i386/dvorak/no.map.gz This works, but it's a workaround imho: lejon:~/# loadkeys qwerty/no Loading /usr/share/kbd/keymaps/i386/qwerty/no.map.gz |
This task depends upon
Closed by Roman Kyrylych (Romashka)
Thursday, 23 July 2009, 19:52 GMT
Reason for closing: Fixed
Additional comments about closing: in kbd-1.15-2
Thursday, 23 July 2009, 19:52 GMT
Reason for closing: Fixed
Additional comments about closing: in kbd-1.15-2
$ pacman -Ql kbd | grep keymaps | grep -e '/no'
kbd /usr/share/kbd/keymaps/i386/dvorak/no.map.gz
kbd /usr/share/kbd/keymaps/i386/qwerty/no-latin1.doc
kbd /usr/share/kbd/keymaps/i386/qwerty/no-latin1.map.gz
kbd /usr/share/kbd/keymaps/i386/qwerty/no.map.gz
I've seen the same issue back when building klibc-kbd, the solution was to patch kbd by renaming all duplicate filenames,
I submitted it upstream, but the maintainer refused to rename files.
The bug reappeared because the patch was removed in kbd-1.15-1: http://repos.archlinux.org/viewvc.cgi/kbd/trunk/PKGBUILD?r1=356&r2=26710
$ find data/keymaps -name '*.map' | grep -v include | sed 's:.*/::g' | sort | uniq -d
cz.map
es.map
no.map
trf.map
data/keymaps/i386/qwerty/cz.map
data/keymaps/i386/qwertz/cz.map
data/keymaps/i386/qwerty/es.map
data/keymaps/i386/olpc/es.map
data/keymaps/i386/dvorak/no.map
data/keymaps/i386/qwerty/no.map
data/keymaps/i386/qwerty/trf.map
data/keymaps/i386/fgGIod/trf.map
because this way we do not have to change the patch every time map files change.
Tobias, please add the following lines to the PKGBUILD:
mv data/keymaps/i386/qwertz/cz{,-qwertz}.map
mv data/keymaps/i386/olpc/es{,-olpc}.map
mv data/keymaps/i386/olpc/pt{,-olpc}.map
mv data/keymaps/i386/dvorak/no{,-dvorak}.map
mv data/keymaps/i386/fgGIod/trf{,-fgGIod}.map
EDIT: pt was added to avoid getting olpc layout when user choose pt instead of pt-latin1 or pt-latin5, same renaming was done in the patch.
Keymaps were renamed as in my previous comment.
IMO the renaming is okay here, since the files being renamed are rarely used anyway, but now they cannot take precedence instead of files that in 99,9% were meant to be loaded.
But until upstream does something that will fix the problem, the workaround is better than not fixing the problem at all.
I'd be happy to use the way upstream choses to eliminate the issue and remove our filename customizations.