[Bug 153459] [kbdmux][patch] add option to specify built-in keymap

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 23 10:12:43 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=153459

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

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

--- Comment #1 from Harald Schmalzbauer <bugzilla.freebsd at 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.


More information about the freebsd-bugs mailing list