[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Important fix for console-common 0.7.1 on arm!!!



Hello,

first of all, my apologies for coming up with this so late! I would
have preferred to test Yann's changes long ago, but was kept from
doing it first by uni, then by my Debian installation breaking. :-(

There is a typo in the "install-keymap" script which messes up the
keyboard table because the RiscPC isn't recognized as such. Please
apply this patch:

--- install-keymap.orig	Tue Aug  7 22:38:21 2001
+++ install-keymap	Tue Aug  7 22:41:00 2001
@@ -68,7 +68,7 @@
     backup_and_install
 else
     if [ "`dpkg --print-installation-architecture`" = "arm" ] && 
-	grep -i '^Hardware *: Acorn-' /proc/cpuinfo >/dev/null &&
+	grep -i '^Hardware.*: Acorn-' /proc/cpuinfo >/dev/null &&
 	find /usr/share/keymaps/i386/ -type f -name ${keymap} -o \
 		    -name ${keymap}.gz -o -name ${keymap}.kmap.gz
     then

i.e., after the "Hardware", it's a tab, not a space...

With this, both "dpkg-reconfigure console-common" and manual use of
"install-keymap" works fine.

(Wartan, this is partly in response to your posting on debian-devel:)
Now that I've seen how the run-time conversion of keymaps from
i386-PS/2 to RiscPC has been implemented, I must say I'm far from
impressed. Above all, the conversion only takes place when using
install-keymap, not with loadkeys. Just type "loadkeys de-latin1" in
the way you're used to, and +vx 1~vC^www!
4~4~4~4~ä~B# c ävx1~D °B1~1~y 1~c0~^#v C^c B Ex#x° °1~BC^vE vCv1~^+vv

Oops...
What I would really like to see in a future release of console-*:
- Pre-generated keymaps for the RiscPC. NB, other members of the ARM
  family use standard i386 keymaps - I think for the solution to be
  fool-proof, there'd have to be some RiscPC detection code in
  loadkeys, to distinguish between an "arm" and an "arm-riscpc"
  architecture.
- IMHO, console-data should be architecture-dependent and should only
  contain the keymaps for the relevant architecture(s). One less way
  to mix things up...

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  CS student at the Technische  |  GnuPG key:
  | \/¯|  http://atterer.net  |  Universität München, Germany  |  0x888354F7
  ¯ ´` ¯

Attachment: pgpgkkxos3WB8.pgp
Description: PGP signature


Reply to: