Created attachment 143298 [details] [review]
patch to the /usr/share/X11/xkb/symbols/pt that fixes the bug
After doing a complete system upgrade and rebooting my pc, running "setxkbmap pt" (and similar commands) failed to load the Portuguese (PT not BR) keyboard layout, producing the following error message "Error loading new keyboard description".
Reverting to the previous version of the package fixed the problem.
I did some digging and it seems a pt version for the colemak keyboard was added at the end of the file: usr/share/X11/xkb/symbols/pt
As it turns out the lines pertaining to the colemak keyboard add some `` and an unrelated line before the colemak configuration also had an weird value. One or both of those things were causing the layout to load. Changing them fixed the problem.
Applying the attached patch to that file should fix the problem.
I am not sure if this is an upstream bug or was somehow introduced by the build, as I'm not skilled enough to fully understand the program or the build process.
I humbly ask for your help with this issue.
* config and/or log files etc. Attached is a patch that fixed the bug.
Steps to reproduce:
On an arch-linux system with xkeyboard-config 2.26-1 run:
Thanks a lot, but xkeyboard-config now handles patches and submissions in GitLab instead: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/issues/new