Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2014 10:12:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 153459] [kbdmux][patch] add option to specify built-in keymap
Message-ID:  <bug-153459-8-vIUmnAv4Mt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-153459-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-153459-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=153459

Harald Schmalzbauer <bugzilla.freebsd@omnilan.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla.freebsd@omnilan.de

--- Comment #1 from Harald Schmalzbauer <bugzilla.freebsd@omnilan.de> ---
This highly appreciated enhancement needs comitting!
Some problems with _DFLT_KEYMAP option and dual console types showed up in the
mean time, please see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193865
To adopt the same here, the following path to the patch should fit:

--- kbdmux_dflt_keymap.patch    2014-09-23 11:48:42.000000000 +0200
+++ kbdmux_dflt_keymap-dual-constype.patch      2014-09-23 12:05:54.000000000
+0200
 @@ -52,6 +52,10 @@
        compile-with    "${AWK} -f $S/teken/gensequences $S/teken/sequences >
teken_state.h" \
        no-obj no-implicit-rule before-depend                              \
        clean           "teken_state.h"
 +kbdmuxmap.h                   optional        kbdmux_dflt_keymap      \
-+      compile-with    "/usr/sbin/kbdcontrol -L ${KBDMUX_DFLT_KEYMAP} | sed -e
's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static
accentmap_t.* = /static accentmap_t accent_map = /' > kbdmuxmap.h"             
     \
++      compile-with    "unset KEYMAP_PATH; for kmpath in
${S:S/sys$/share/}/vt/keymaps ${S:S/sys$/share/}/syscons/keymaps; do
kmapfile=$${kmpath}/${KBDMUX_DFLT_KEYMAP:C/\.kbd$$//}.kbd; if [ -r $${kmapfile}
]; then KEYMAP_PATH=$${kmpath}; fi; done; if [ X$${KEYMAP_PATH} != X ]; then
env KEYMAP_PATH=$${KEYMAP_PATH} /usr/sbin/kbdcontrol -L ${KBDMUX_DFLT_KEYMAP} |
sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static
accentmap_t.* = /static accentmap_t accent_map = /' > kbdmuxmap.h; else echo
Error: kbdmux_dflt_keymap not found; exit 1; fi"
 +      no-obj no-implicit-rule before-depend                           \
 +      clean           "kbdmuxmap.h"
  usbdevs.h                     optional usb                               \

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-153459-8-vIUmnAv4Mt>