Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447440 - >sys-apps/kbd-1.15.3 - Syntax error in i386/azerty/fr-latin9.map.gz:540 when loading key mappings.
Summary: >sys-apps/kbd-1.15.3 - Syntax error in i386/azerty/fr-latin9.map.gz:540 when ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-16 11:35 UTC by gglaboussole
Modified: 2013-04-27 11:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.log,17.66 KB, text/x-log)
2012-12-16 11:36 UTC, gglaboussole
Details
build log (sys-apps:kbd-1.15.5:20130113-101457.log,94.28 KB, text/plain)
2013-01-13 10:33 UTC, gglaboussole
Details
/etc/init.d/keymaps --debug restart (file_447440.txt,3.91 KB, text/plain)
2013-01-18 09:18 UTC, Antoine Lemoine
Details
/etc/init.d/keymaps --debug restart (log2.txt,3.24 KB, text/plain)
2013-01-19 09:18 UTC, gglaboussole
Details
/etc/init.d/keymaps --debug restart with patch (file_447440.txt,5.68 KB, text/plain)
2013-01-20 12:38 UTC, Antoine Lemoine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gglaboussole 2012-12-16 11:35:10 UTC
Hello,
Upgrading from sys-apps/kbd-1.15.3 to 1.15.4 or 1.15.5 cause syntax error in /usr/share/keymaps/i386/azerty/fr-latin9.map.gz
reverting to kbd-1.15.3 solved the problem
The line 540 in file "/usr/share/keymaps/i386/azerty/fr-latin9.map.gz" contain:
 compose '`' 'A' to 'À'
like in newer versions...




Reproducible: Always

Steps to Reproduce:
1.upgrade from  sys-apps/kbd-1.15.3 to newer versions
2.
3.
Actual Results:  
Extract from rc.log:
* Setting keyboard mode [UTF-8] ...
 [ ok ]
 * Loading key mappings [fr-latin9] ...
keysym inconnu « compose »
/usr/share/keymaps/i386/azerty/fr-latin9.map.gz:540: syntax error
Erreur de syntaxe dans le fichier de mappe
affectations de touches inchangées
 * Error loading key mappings
 [ !! ]
 * ERROR: keymaps failed to start

My keybord in console is in qwerty mode, not azerty 

Expected Results:  
No error and keybord in azerty mode
Comment 1 gglaboussole 2012-12-16 11:36:32 UTC
Created attachment 332462 [details]
emerge --info
Comment 2 Didier Link 2012-12-28 16:44:34 UTC
Same error, I need to modify /etc/conf.d/keymaps from

keymap="fr-latin9"

to

keymap="fr"

and have console in azerty without error when /etc/init.d/keymaps start at boot
Comment 3 SpanKY gentoo-dev 2013-01-13 00:26:09 UTC
please post the full build log as an attachment of 1.15.5

also please post the exact command you're running and the exact error shown
Comment 4 gglaboussole 2013-01-13 10:32:24 UTC
Hello,

I don't know what do you mean by "post the exact command you're running and the exact error shown"

It's an init script and the only other command that I can show too is :

laboussole jerome # /etc/init.d/keymaps restart 
 * Setting keyboard mode [UTF-8] ...                                      [ ok ]
 * Loading key mappings [fr-latin9] ...
keysym inconnu « compose »
/usr/share/keymaps/i386/azerty/fr-latin9.map.gz:540: syntax error
Erreur de syntaxe dans le fichier de mappe
affectations de touches inchangées
 * Error loading key mappings                                             [ !! ]
 * ERROR: keymaps failed to start

As I wrote my keybord is only in qwerty mode in console (In gnome 3.6 or e17 my keybord is well in azerty)

My full build log is now attached
Comment 5 gglaboussole 2013-01-13 10:33:02 UTC
Created attachment 335438 [details]
build log
Comment 6 SpanKY gentoo-dev 2013-01-18 06:16:34 UTC
(In reply to comment #4)

run `/etc/init.d/keymaps --debug reload >& log` and post the log file as attachment.  that'll show the commands being executed.
Comment 7 Antoine Lemoine 2013-01-18 09:18:54 UTC
Created attachment 336028 [details]
/etc/init.d/keymaps --debug restart
Comment 8 gglaboussole 2013-01-19 09:18:33 UTC
Created attachment 336102 [details]
/etc/init.d/keymaps --debug restart

Here the output of mine  /etc/init.d/keymaps --debug restart
Comment 10 Antoine Lemoine 2013-01-20 12:37:23 UTC
Works for me (version 1.15.5). I join my new `/etc/init.d/keymaps --debug restart`

(In reply to comment #9)
> From archlinux bug report
> https://bugs.archlinux.org/task/33308?project=1&openedfrom=-1+week  
> 
> Patch which would appear to solve this problem ?
> 
> http://www6.frugalware.org/mirrors/linux/frugalware/frugalware-current/
> source/base/kbd/7e06e56157e8431d02e1377cdc44230944203d88.patch
Comment 11 Antoine Lemoine 2013-01-20 12:38:07 UTC
Created attachment 336200 [details]
/etc/init.d/keymaps --debug restart with patch
Comment 12 SpanKY gentoo-dev 2013-01-20 17:23:23 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add fix from upstream for loadkey syntax errors
http://sources.gentoo.org/sys-apps/kbd/files/kbd-1.15.5-loadkeys-parse.patch?rev=1.1
http://sources.gentoo.org/sys-apps/kbd/kbd-1.15.5-r1.ebuild?rev=1.1