Bug#647746: console-setup: Changed "$KMAP" causes new compilation of "cached.kmap.gz"
Package: console-setup
Version: 1.68+squeeze2
Severity: wishlist
If the variable $KMAP is changed in the file
"/etc/default/keyboard", the file "cached.kmap.gz" is
unnecessarily created.
The execution of "ckbcomp" takes some time so the user should
be informed. Also if there is something unusual going on.
Suggestion:
--- setupcon.orig 2011-10-24 21:54:35.000000000 +0000
+++ setupcon 2011-11-04 22:59:58.000000000 +0000
@@ -383,7 +383,8 @@
fi
if \
- [ "$VARIANT" = '' ] \
+ [ -z "$KMAP" -o "$save" = 'yes' ] \
+ && [ "$VARIANT" = '' ] \
&& which gzip >/dev/null \
&& [ -d /usr/share ] # /usr is mounted
then
@@ -393,6 +394,7 @@
-ot /etc/default/keyboard ] \
|| [ "$save" = yes ]
then
+ echo 'Console keycodes are now created from /usr/share/X11/xkb'
ckbcomp $acm_option $rules_option -model "$XKBMODEL" \
"$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" \
| gzip -9 2>/dev/null >/etc/console-setup/cached.kmap.gz
@@ -413,6 +415,7 @@
eval loadkeys /etc/console-setup/cached.kmap.gz $verbose
else
if [ -d /usr/share/X11/xkb ]; then
+ echo 'Console keycodes are now temporarily created from /usr/share/X11/xkb'
ckbcomp $acm_option $rules_option \
-model "$XKBMODEL" \
"$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" \
-- System Information:
Debian Release: 6.0.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i586)
Kernel: Linux 2.6.32-35squeeze2
Locale: LANG=is_IS, LC_CTYPE=is_IS (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages console-setup depends on:
ii console-terminus 4.30-2 Fixed-width fonts for fast reading
ii debconf 1.5.36.1 Debian configuration management sy
ii keyboard-configuration 1.68+squeeze2 system-wide keyboard preferences
ii xkb-data 1.8-2 X Keyboard Extension (XKB) configu
Versions of packages console-setup recommends:
ii kbd 1.15.2-2 Linux console font and keytable ut
Versions of packages console-setup suggests:
ii locales 2.11.2-10 Embedded GNU C Library: National L
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
-- debconf information:
* console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic languages
console-setup/store_defaults_in_debconf_db: true
console-setup/use_system_font:
console-setup/fontsize: 16
* console-setup/fontface47: VGA
console-setup/fontsize-text47: 16
* console-setup/charmap47: ISO-8859-1
console-setup/codesetcode: Lat15
* console-setup/fontsize-fb47: 16
-- debsums errors found:
debsums: changed file /bin/setupcon (from console-setup package)
debsums: changed file /usr/share/consoletrans/ISO-8859-1.acm.gz (from console-setup package)
--
Bjarni I. Gislason
Reply to: