Bug#61391: marked as done (keymaps.sh handles keymaps incorrectly)
Your message dated 14 Apr 2000 20:11:38 -0400
with message-id <oahfd4gr45.fsf@arroz.fake>
and subject line bug closed in boot-floppies 2.2.10
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Darren Benham
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 30 Mar 2000 15:50:18 +0000
Received: (qmail 905 invoked from network); 30 Mar 2000 15:50:18 -0000
Received: from mail.netcsi.com (206.20.32.124)
by master.debian.org with SMTP; 30 Mar 2000 15:50:18 -0000
Received: from macbeth.netcsi.com (206.20.32.151) by mail.netcsi.com with SMTP
(Eudora Internet Mail Server 2.1); Thu, 30 Mar 2000 10:50:18 -0500
Received: from james by macbeth.netcsi.com with local (Exim 3.12 #1 (Debian))
id 12ahD6-0005VV-00
for <submit@bugs.debian.org>; Thu, 30 Mar 2000 10:50:16 -0500
Date: Thu, 30 Mar 2000 10:50:16 -0500
To: submit@bugs.debian.org
Subject: keymaps.sh handles keymaps incorrectly
Message-ID: <20000330105016.A20677@netcsi.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/1.0.1i
From: <james@netcsi.com>
Package: boot-floppies
Severity: normal
Version: 2.2.9
After comparing keymaps.tgz with my new headless-build-patched version, I
found they didn't match. After some investigation I found that my
patched version was actually doing things right and the current release
version was doing two related things wrong:
1) It uses dumpkeys without -f, which produces abbreviated keymaps.
However, the version of 'loadkeys' which then processes those
keymaps uses different and incompatible conventions for
abbreviations. This results in extra keybindings being defined
in the binary keymaps that are not present in the original
(for example, AltGr-Shift-F2 => F2 instead of VoidSymbol in
i386/qwerty/us.kmap).
2) It uses the console as a workspace for preprocessing keymaps,
however for obvious usability reasons 'loadkeys' from
console-tools doesn't clear the 'workspace' for keys not
mentioned in the keymap being worked on. This causes bindings
to appear in the binary keymaps for keys that were never even
mentioned in the original keymaps (for example 112-118 in
us.kmap).
I can think of several possible fixes for this:
1) Use the patch to utilities/writemaps and keymaps.sh I'll be
posting later today to the debian-boot list. The new
version has considerable changes but handles most of what
the console-tools loadkeys does so it doesn't need
preprocessing.
2) Modify keymaps.sh to load a blank keymap with busybox loadkmap
(which *does* clear the keymap) between each keymap loaded,
and use dumpkeys -f to use the dumps. This risks making the
console totally unusable if the build is interrupted at the
wrong time, and still won't build on headless machines, but
involves fewer code changes.
3) Get the console-tools maintainer to add a small patch to add
the -b option to console-tools loadkeys. I assume there was
a reason this wasn't done in the first place instead of
keeping a modified kbd loadkeys in boot-floppies source, but
as I don't know what that was I can't judge if it was still
valid. The code will then build on headless machines and
boot-floppies source will be smaller.
4) Use the -m option of console-tools loadkeys and some
postprocessing to produce the binary keymaps. This would
build on headless machines too and would only involve
following changes in the kernel console driver rather than
the console-tools userland tools, and wouldn't involve
forking anything, but it would likely be more resource-
intensive at build time than the other options and could
involve considerable new code being written (there are
several tradeoffs in this one--resources required vs.
new code, resources required vs. robustness to changes in
console-tools, etc).
--
James Deikun, Techie(tm), CSI Multimedia
The opinions expressed &c.
---------------------------------------
Received: (at 61391-done) by bugs.debian.org; 15 Apr 2000 00:11:43 +0000
Received: (qmail 11289 invoked from network); 15 Apr 2000 00:11:42 -0000
Received: from amsterdam.interport.net (199.184.165.19)
by master.debian.org with SMTP; 15 Apr 2000 00:11:42 -0000
Received: from arroz.fake (postfix@209-122-223-228.s228.tnt3.nyw.ny.dialup.rcn.com [209.122.223.228])
by amsterdam.interport.net (8.8.5/8.8.5) with ESMTP id UAA04916
for <61391-done@bugs.debian.org>; Fri, 14 Apr 2000 20:11:44 -0400 (EDT)
Received: by arroz.fake (Postfix, from userid 421)
id 35E0893857; Fri, 14 Apr 2000 20:11:39 -0400 (EDT)
Sender: apharris@arroz.fake
To: 61391-done@bugs.debian.org
Subject: bug closed in boot-floppies 2.2.10
From: Adam Di Carlo <adam@onshore.com>
Date: 14 Apr 2000 20:11:38 -0400
Message-ID: <oahfd4gr45.fsf@arroz.fake>
Lines: 12
User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
* Ben Collins <bcollins@debian.org>
- keymaps.sh: don't use console-tools' loadkeys/dumpkeys. Makes it so
we don't need root for keymaps.tgz anymore and doesn't muck with the
local keyboard driver to get the job done.
- writemaps/*: Updated to match console-tools to support the above change,
closes: #61391
Closing bug. Thanks for your report.
--
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>
Reply to: