diff -Nru kbd-2.3.0/debian/changelog kbd-2.3.0/debian/changelog --- kbd-2.3.0/debian/changelog 2020-10-11 11:13:12.000000000 +0100 +++ kbd-2.3.0/debian/changelog 2020-10-11 16:45:31.000000000 +0100 @@ -1,3 +1,38 @@ +kbd (2.3.0-3ubuntu1) hirsute; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Added initramfs hook to have setfont/loadkeys available in initramfs. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Change loadkeys to find any console not in raw mode when invoked + without an explicit console parameter, in case the foreground console + is in raw mode. + - Add setvtrgb to kbd-udeb. + - Fix incorrect keymap sanity check in loadkeys_ckbcomp.diff. + - debian/control: Depend on console-setup | console-setup-mini, since + console-setup-mini also Depends on kbd now through console-setup-linux. + - debian/patches/loadkeys_find_usable_console.diff: fix wrong type + argument to ioctl(..., KDGKBMODE), which causes consoles to not be + correctly detected on 64-bit archs. LP: #1621824. + + * Added d/p/fix_use_after_free.patch to clean up a use-after-free of + pipe_cmd + + * Removed obsolete patches/changes: + - Simplify maintainer scripts for conffile removal, using new features + in debhelper 8.1.0. + - debian/patches/loadkeys_ckbcomp.diff: Include xmalloc.h to avoid + implicit declaration causing crashes with newer gcc. LP: #1631504. + - kbd_mode: Add -f option and don't perform dangerous mode switches + without it. In the back-ported fix kbd_mode exits with success, even + when the dangerous mode change is skipped, just prints an error, to not + break old scripts. (LP: #520546) + - Add d/p/fix-duplicate-progname.patch to fix duplicate progname linker + error under gcc-10 (LP: #1891316) + + -- Dave Jones Sun, 11 Oct 2020 15:45:31 +0000 + kbd (2.3.0-3) unstable; urgency=medium * Team upload. @@ -58,6 +93,52 @@ -- Andreas Henriksson Fri, 21 Aug 2020 13:52:04 +0200 +kbd (2.0.4-4ubuntu4) groovy; urgency=medium + + * Add d/p/fix-duplicate-progname.patch to fix duplicate progname linker + error under gcc-10 (LP: #1891316) + + -- Dave Jones Wed, 12 Aug 2020 12:01:20 +0100 + +kbd (2.0.4-4ubuntu3) groovy; urgency=medium + + * No change rebuild against new CET ABI. + + -- Dimitri John Ledkov Fri, 10 Jul 2020 18:27:45 +0100 + +kbd (2.0.4-4ubuntu2) eoan; urgency=medium + + * kbd_mode: Add -f option and don't perform dangerous mode switches without + it. In the back-ported fix kbd_mode exits with success, even when the + dangerous mode change is skipped, just prints an error, to not break old + scripts. (LP: #520546) + + -- Balint Reczey Thu, 09 May 2019 17:22:51 +0200 + +kbd (2.0.4-4ubuntu1) disco; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Change loadkeys to find any console not in raw mode when invoked + without an explicit console parameter, in case the foreground console + is in raw mode. + - Simplify maintainer scripts for conffile removal, using new features + in debhelper 8.1.0. + - Add setvtrgb to kbd-udeb. + - Fix incorrect keymap sanity check in loadkeys_ckbcomp.diff. + - debian/control: Depend on console-setup | console-setup-mini, since + console-setup-mini also Depends on kbd now through console-setup-linux. + - Added initramfs hook to have setfont/loadkeys available in initramfs. + - debian/patches/loadkeys_find_usable_console.diff: fix wrong type argument + to ioctl(..., KDGKBMODE), which causes consoles to not be correctly + detected on 64-bit archs. LP: #1621824. + - debian/patches/loadkeys_ckbcomp.diff: Include xmalloc.h to avoid implicit + declaration causing crashes with newer gcc. LP: #1631504. + + -- Julian Andres Klode Mon, 12 Nov 2018 11:38:20 +0100 + kbd (2.0.4-4) unstable; urgency=medium * Team upload. @@ -74,6 +155,30 @@ -- Andreas Henriksson Wed, 30 May 2018 19:22:04 +0200 +kbd (2.0.4-2ubuntu1) bionic; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Change loadkeys to find any console not in raw mode when invoked + without an explicit console parameter, in case the foreground console + is in raw mode. + - Simplify maintainer scripts for conffile removal, using new features + in debhelper 8.1.0. + - Add setvtrgb to kbd-udeb. + - Fix incorrect keymap sanity check in loadkeys_ckbcomp.diff. + - debian/control: Depend on console-setup | console-setup-mini, since + console-setup-mini also Depends on kbd now through console-setup-linux. + - Added initramfs hook to have setfont/loadkeys available in initramfs. + - debian/patches/loadkeys_find_usable_console.diff: fix wrong type argument + to ioctl(..., KDGKBMODE), which causes consoles to not be correctly + detected on 64-bit archs. LP: #1621824. + - debian/patches/loadkeys_ckbcomp.diff: Include xmalloc.h to avoid implicit + declaration causing crashes with newer gcc. LP: #1631504. + + -- Julian Andres Klode Mon, 22 Jan 2018 14:49:48 +0100 + kbd (2.0.4-2) unstable; urgency=medium * Drop obsolete lsb-base dependency @@ -97,6 +202,40 @@ -- Andreas Henriksson Tue, 11 Jul 2017 02:43:37 +0200 +kbd (2.0.3-2ubuntu3) zesty; urgency=medium + + * debian/patches/loadkeys_ckbcomp.diff: Include xmalloc.h to avoid implicit + declaration causing crashes with newer gcc. LP: #1631504. + + -- Jason Conti Thu, 13 Oct 2016 13:51:28 -0400 + +kbd (2.0.3-2ubuntu2) yakkety; urgency=medium + + * debian/patches/loadkeys_find_usable_console.diff: fix wrong type argument + to ioctl(..., KDGKBMODE), which causes consoles to not be correctly + detected on 64-bit archs. LP: #1621824. + + -- Steve Langasek Tue, 20 Sep 2016 10:53:30 -0700 + +kbd (2.0.3-2ubuntu1) yakkety; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Change loadkeys to find any console not in raw mode when invoked + without an explicit console parameter, in case the foreground console + is in raw mode. + - Simplify maintainer scripts for conffile removal, using new features + in debhelper 8.1.0. + - Add setvtrgb to kbd-udeb. + - Fix incorrect keymap sanity check in loadkeys_ckbcomp.diff. + - debian/control: Depend on console-setup | console-setup-mini, since + console-setup-mini also Depends on kbd now through console-setup-linux. + - Added initramfs hook to have setfont/loadkeys available in initramfs. + + -- Mathieu Trudel-Lapierre Fri, 29 Apr 2016 23:50:28 -0400 + kbd (2.0.3-2) unstable; urgency=medium * Team upload. @@ -191,6 +330,52 @@ -- Michael Schutte Sat, 25 Oct 2014 19:46:15 +0200 +kbd (1.15.5-1ubuntu4) wily; urgency=medium + + * debian/conffiles.d/config: Disable automatic virtual console screen blank + - Don't blank screen on virtual consoles, because most systems running + without X are headless and when they are connected to a monitor for + debugging the screen should not be blank + - LP: #869017 + + -- Wesley Wiedenmeier Tue, 04 Aug 2015 18:32:04 +0000 + +kbd (1.15.5-1ubuntu3) wily; urgency=medium + + * Drop initramfs-tools dependency. It causes other providers of + linux-initramfs-tool (like dracut) to become uninstallable, and is an + ancient Ubuntu-ism which has never been forwarded, nor is it kbd's place + to dictate whether or not you should have an initramfs. + + -- Martin Pitt Tue, 08 Sep 2015 12:50:53 +0200 + +kbd (1.15.5-1ubuntu2) vivid; urgency=medium + + * debian/control: Depend on console-setup | console-setup-mini, since + console-setup-mini also Depends on kbd now through console-setup-linux. + + -- Mathieu Trudel-Lapierre Wed, 04 Mar 2015 09:45:39 -0500 + +kbd (1.15.5-1ubuntu1) raring; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Depend on console-setup, and remove config file; we now only support + systems using console-setup and so it no longer serves a purpose. The + removed config file for console-screen has changed names from + /etc/init.d/console-screen.kbd.sh to /etc/init.d/kbd. + - Change loadkeys to find any console not in raw mode when invoked + without an explicit console parameter, in case the foreground console + is in raw mode. + - Simplify maintainer scripts for conffile removal, using new features + in debhelper 8.1.0. + - Add setvtrgb to kbd-udeb. + * Fix incorrect keymap sanity check in loadkeys_ckbcomp.diff. + + -- Colin Watson Mon, 18 Feb 2013 13:25:55 +0000 + kbd (1.15.5-1) unstable; urgency=low * New upstream release. @@ -224,6 +409,46 @@ -- Michael Schutte Sun, 17 Feb 2013 19:37:26 +0100 +kbd (1.15.3-9ubuntu4) raring; urgency=low + + * Use autotools-dev to update config.guess and config.sub automatically. + + -- Colin Watson Sat, 09 Feb 2013 00:08:33 +0000 + +kbd (1.15.3-9ubuntu3) raring; urgency=low + + * Revert build-dependency from gettext:any to gettext, now that gettext is + Multi-Arch: foreign. + + -- Colin Watson Thu, 29 Nov 2012 15:18:21 +0000 + +kbd (1.15.3-9ubuntu2) raring; urgency=low + + * Restore setvtrgb to kbd-udeb, since rootskel uses it. This appears to + have been lost in 1.15.2-3ubuntu1. + + -- Colin Watson Wed, 21 Nov 2012 12:41:46 +0000 + +kbd (1.15.3-9ubuntu1) quantal; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Depend on console-setup, and remove config file; we now only support + systems using console-setup and so it no longer serves a purpose. The + removed config file for console-screen has changed names from + /etc/init.d/console-screen.kbd.sh to /etc/init.d/kbd. + - Change loadkeys to find any console not in raw mode when invoked + without an explicit console parameter, in case the foreground console + is in raw mode. + - Simplify maintainer scripts for conffile removal, using new features + in debhelper 8.1.0. + - Build-depend on gettext:any, since we only need it to run tools at + build-time. + + -- Colin Watson Tue, 22 May 2012 23:47:28 +0100 + kbd (1.15.3-9) unstable; urgency=low * Revert the build-dependency change towards gettext:any and let the buildds @@ -252,6 +477,30 @@ -- Michael Schutte Sat, 28 Apr 2012 11:47:07 +0200 +kbd (1.15.3-7ubuntu1) quantal; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Depend on console-setup, and remove config file; we now only support + systems using console-setup and so it no longer serves a purpose. The + removed config file for console-screen has changed names from + /etc/init.d/console-screen.kbd.sh to /etc/init.d/kbd. + - Change loadkeys to find any console not in raw mode when invoked + without an explicit console parameter, in case the foreground console + is in raw mode. + - Simplify maintainer scripts for conffile removal, using new features + in debhelper 8.1.0. + - Build-depend on gettext:any, since we only need it to run tools at + build-time. + - Fix cross-building: + + Use dh_auto_configure. + + Pass CC=$(DEB_HOST_GNU_TYPE)-gcc when cross-building contrib. + * Fix some previous mismerges and tidy up Ubuntu-specific patches. + + -- Colin Watson Fri, 27 Apr 2012 16:52:36 +0100 + kbd (1.15.3-7) unstable; urgency=low * Use dpkg-buildflags to pass build options on to the configure @@ -342,6 +591,52 @@ -- Michael Schutte Wed, 25 May 2011 21:48:07 +0200 +kbd (1.15.2-3ubuntu4) precise; urgency=low + + * Fix cross-building (LP: #872422): + - Use dh_auto_configure. + - Pass CC=$(DEB_HOST_GNU_TYPE)-gcc when cross-building contrib. + + -- Colin Watson Sat, 31 Mar 2012 21:54:20 +0100 + +kbd (1.15.2-3ubuntu3) precise; urgency=low + + * Build-depend on gettext:any, since we only need it to run tools at + build-time. + + -- Colin Watson Sat, 31 Mar 2012 02:17:56 +0100 + +kbd (1.15.2-3ubuntu2) precise; urgency=low + + * Pre-Depend on a sufficient version of dpkg for dpkg-maintscript-helper. + + -- Colin Watson Sat, 11 Feb 2012 14:51:26 +0000 + +kbd (1.15.2-3ubuntu1) oneiric; urgency=low + + * Merge from debian unstable (LP: #779388). Remaining changes: + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Depend on console-setup, and remove config file; we now only + support systems using console-setup and so it no longer serves + a purpose. The removed config file for console-screen has changed + names from /etc/init.d/console-screen.kbd.sh to /etc/init.d/kbd. + - Change loadkeys to find any console not in raw mode when invoked + without an explicit console parameter. (In case the foreground + console is in raw mode.) + - Add a 'setvtrgb' utility to configure vt/console colors. + * debian/control: + - Bump Standards-Version to 3.9.2, no changes needed. + - Update Build-Depends for debhelper to version 8.1.0. + * Simplify maintainer scripts for conffile removal, using new + features in updated version of debhelper. + * Add 'setvtrgb' manpage to man8 makefile, so it will install. + * debian/rules: Move 'setvtrgb' binary to extra binaries, as udeb + binaries are now handled differently. + + -- Allison Randal Tue, 10 May 2011 14:10:03 +0200 + kbd (1.15.2-3) unstable; urgency=low * Bump Priority: to optional (while downgrading console-tools to extra), @@ -487,6 +782,55 @@ -- Michael Schutte Fri, 24 Jul 2009 13:00:49 +0200 +kbd (1.15-1ubuntu5) natty; urgency=low + + * src/setvtrgb.c: fix bug where the green and blue values of the + first tuple weren't being set properly + + -- Dustin Kirkland Thu, 17 Mar 2011 18:27:16 -0500 + +kbd (1.15-1ubuntu4) natty; urgency=low + + * src/setvtrgb.c, man/man8/setvtrgb.8, COPYING, debian/rules, + debian/copyright: LP: #730672 + - Add a 'setvtrgb' utility to configure vt/console colors + - add to udeb (so that this can improve installer usability) + - add to /sbin, run by root + - update copyright statement + + -- Dustin Kirkland Tue, 08 Mar 2011 15:32:10 +0000 + +kbd (1.15-1ubuntu3) lucid; urgency=low + + * loadkeys: If not invoked with an explicit console parameter, try to find + any console not in raw mode. This makes it safer to run loadkeys if the + foreground console might be in raw mode, for example if Plymouth or X + might be running. + + -- Colin Watson Fri, 12 Mar 2010 00:35:34 +0000 + +kbd (1.15-1ubuntu2) lucid; urgency=low + + * rebuild rest of main for armel armv7/thumb2 optimization; + UbuntuSpec:mobile-lucid-arm-gcc-v7-thumb2 + + -- Alexander Sack Sat, 06 Mar 2010 13:29:36 +0100 + +kbd (1.15-1ubuntu1) karmic; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Prefer console-setup to console-common and console-data. + - debian/console-screen.kbd.sh: Don't run at all if setupcon (from + console-setup) is present. + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Depend on console-setup, and remove /etc/init.d/console-screen.kbd.sh; + we now only support systems using console-setup and so it no longer + serves a purpose. + + -- Colin Watson Wed, 24 Jun 2009 17:10:18 +0100 + kbd (1.15-1) unstable; urgency=low * New upstream release. @@ -515,6 +859,44 @@ -- Michael Schutte Fri, 20 Feb 2009 17:52:16 +0100 +kbd (1.14.1-4ubuntu4) jaunty; urgency=low + + * debian/control: Depend on initramfs-tools so system is not potentially + rendered unbootable (LP: #358654). + + -- Kees Cook Thu, 09 Apr 2009 12:31:48 -0700 + +kbd (1.14.1-4ubuntu3) jaunty; urgency=low + + * Depend on console-setup, and remove /etc/init.d/console-screen.kbd.sh; + we now only support systems using console-setup and so it no longer + serves a purpose (LP: #282216). + + -- Colin Watson Mon, 16 Feb 2009 16:02:08 +0000 + +kbd (1.14.1-4ubuntu2) jaunty; urgency=low + + * Resynchronise debian/console-screen.kbd.sh with console-screen.sh from + console-tools, fixing dubious grepping of /etc/environment and + /etc/default/locale (LP: #18448). + + -- Colin Watson Thu, 20 Nov 2008 14:04:35 +0000 + +kbd (1.14.1-4ubuntu1) jaunty; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Prefer console-setup to console-common and console-data. + - debian/console-screen.kbd.sh: Don't run at all if setupcon (from + console-setup) is present. + - Move console-screen.kbd.sh to rcS/S90. + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + - Fix segfault when dealing with Unicode characters that happen to + collide with internal special symbol tables when XORed with 0xF000. + + -- Colin Watson Thu, 06 Nov 2008 09:48:40 +0000 + kbd (1.14.1-4) unstable; urgency=medium * Read /etc/environment or /etc/default/locale earlier in the init script, @@ -532,6 +914,34 @@ -- Michael Schutte Sun, 22 Jun 2008 12:45:38 +0200 +kbd (1.14.1-3ubuntu3) intrepid; urgency=low + + * Fix segfault when dealing with Unicode characters that happen to collide + with internal special symbol tables when XORed with 0xF000. (This will + doubtless still get some Unicode characters wrong, so isn't a perfect + solution.) + + -- Colin Watson Thu, 25 Sep 2008 09:49:59 +0100 + +kbd (1.14.1-3ubuntu2) intrepid; urgency=low + + * Properly apply ckbcomp patch; I hadn't regenerated loadkeys.c. + + -- Colin Watson Fri, 19 Sep 2008 02:19:36 +0100 + +kbd (1.14.1-3ubuntu1) intrepid; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Prefer console-setup to console-common and console-data. + - debian/console-screen.kbd.sh: Don't run at all if setupcon (from + console-setup) is present. + - Move console-screen.kbd.sh to rcS/S90. + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + - Use ckbcomp to get the keyboard layout if other data files are not + available. + + -- Colin Watson Thu, 19 Jun 2008 01:03:50 +0100 + kbd (1.14.1-3) unstable; urgency=low * Change the LSB header of /etc/init.d/console-screen.kbd.sh to provide the @@ -596,12 +1006,41 @@ -- Marc 'HE' Brockschmidt Sun, 09 Mar 2008 10:44:02 +0100 +kbd (1.12-19ubuntu2) hardy; urgency=low + + * loadkeys_console-setup.patch: Use ckbcomp to get the keyboard layout if + other data files are not available (LP: #83487). + + -- Colin Watson Mon, 04 Feb 2008 14:19:21 +0000 + +kbd (1.12-19ubuntu1) hardy; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Prefer console-setup to console-common and console-data. + - debian/console-screen.kbd.sh: Don't run if setupcon (from + console-setup) is present. + - Move console-screen.kbd.sh to rcS/S90. + - Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + + -- Colin Watson Mon, 10 Dec 2007 13:18:26 +0000 + kbd (1.12-19) unstable; urgency=low * Apply a patch by Colin Watson to add setfont to the udeb. -- Anton Zinoviev Mon, 02 Jul 2007 15:14:32 +0300 +kbd (1.12-18ubuntu1) gutsy; urgency=low + + * Prefer console-setup to console-common and console-data. + * debian/console-screen.kbd.sh: Don't run if setupcon (from console-setup) + is present. + * Add setfont to kbd-udeb. + * Move console-screen.kbd.sh to rcS/S90. + * Add setfont, kbd_mode, and loadkeys to initramfs for console-setup. + + -- Colin Watson Thu, 31 May 2007 13:33:22 +0100 + kbd (1.12-18) unstable; urgency=low * Add me to uploaders @@ -1722,11 +2161,8 @@ -- Dominik Kubla Thu, 31 Oct 1996 16:52:16 +0100 0.91-5: - Added support for multi-resolution fonts (fixes bug #4258). - Added support for 84-key keyboards on m68k. - Added some more *.cp files (which hold fonts for all three common font resolutions - 8x8, 8x14 and 8x16): 437.cp - Default for IBM compatibles @@ -1739,45 +2175,27 @@ 863.cp - Kanada (french) 865.cp - Norway, Danmark 869.cp - ??? - added commands from the contrib directory to the install list - addded unicode scripts from src directory to the install list - added misc. documentation to the install list. - started to clean up code - added cp437.uni translation table from the kernel sources. - added m68000 patches provided by Geert Uyterhoeven - removed serial console setup (it is moved to sysvinit, where it belongs) - fixed some spelling errors - 0.91-4: changed Makefile to build and install additional programs. - 0.91-3: fixed nasty nesting error in kbdconfig script - 0.91-2: fixed stupid mistake in the kbdconfig script - 0.91-1: upgraded to latest upstream version - showfont will be installed as shfont to resolve the name clash with the X11 utility of the same name - added /usr/sbin/kbdconfig to (re)configure the package - resizecons will not be installed on Debian Linux for m68k - added keytables for m68k systems contributed by Frank Neumann - split configuration data and initscript. The conffile is named /etc/kbd/config. - changed all references to /dev/console to /dev/tty0 to support serial consoles - changed all references to "virtual consoles" to "virtual terminals" + diff -Nru kbd-2.3.0/debian/conffiles.d/config kbd-2.3.0/debian/conffiles.d/config --- kbd-2.3.0/debian/conffiles.d/config 1970-01-01 01:00:00.000000000 +0100 +++ kbd-2.3.0/debian/conffiles.d/config 2020-08-12 12:01:20.000000000 +0100 @@ -0,0 +1,76 @@ +# +# This files tells the 'kbd' package: +# +# - whether to load a specific font and boot (and maybe a screen-font map, +# but you should avoid that if possible). +# - whether to setup an Application-Charset Map other than the default CP437. +# - whether to do screen saver/DPMS settings +# - whether to change the keyboard rate/delay or the state of the +# keyboard indicators +# - whether to show a clock +# +# You can also specify per-VC settings by suffixing variable names as in +# the examples below. This only works on framebuffer devices. +# +# For consistency with the configuration file of console-tools the +# following variables and their _vcN versions are also supported: +# SCREEN_FONT, SCREEN_FONT_MAP and APP_CHARSET_MAP. +# +# +# Example: +# +#CONSOLE_FONT=iso01.f16 +#CONSOLE_FONT_vc2=LatArCyrHeb-16 +# +#CONSOLE_MAP=iso05 +#CONSOLE_MAP_vc2=user +# +# Set the following - more euro-friendly default than kernel font. +#CONSOLE_FONT=latarcyrheb-sun16.psf + +# Forget this one unless you _know_ it is necessary for your font: +#FONT_MAP=iso01 + +# **** screen saver/DPMS settings: all VCs **** +# These settings are commented by default to avoid the chance of damage to +# very old monitors that don't support DPMS signalling. + +# screen blanking timeout. monitor remains on, but the screen is cleared to +# range: 0-60 min (0==never) kernels I've looked at default to 10 minutes. +# (see linux/drivers/char/console.c) +# This is set to zero to avoid blanking the screen, because if a crash occurs +# it can conceal the output. On systems running with a graphical desktop, X +# is responsible for dpms settings, so this will not affect systems running +# graphically, and it makes more since for a non graphical system to not blank +# the screen automatically as most non graphical systems are headless unless +# a monitor has been attached for debugging +BLANK_TIME=0 + +# blanking method (VESA DPMS mode to use after BLANK_TIME, before powerdown): +# on: the default, no DPMS signalling. near instant powerup, no power saving +# vsync: DPMS Standby mode. nearly instant recovery, uses 110/120W (17" screen) +# hsync: DPMS Suspend mode. typically 3s recovery, uses 15/120W (17" screen) +# powerdown,off: DPMS Off mode, typ. 10s recovery, uses 5/120W (17" screen) + +# Those values are for my 17" Mag, but some monitors do suspend the same as +# standby. xset dpms force {off|standby|suspend|on} is useful for this, if X +# supports DPMS on your video card. Set X's DPMS screensaver with xset dpms +# or use option power_saver in XF86Config +# +# DPMS set by default to on, because hsync can cause problems on certain +# hardware, such as Armada E500 laptops +BLANK_DPMS=off + +# Powerdown time. The console will go to DPMS Off mode POWERDOWN_TIME +# minutes _after_ blanking. (POWERDOWN_TIME + BLANK_TIME after the last input) +POWERDOWN_TIME=30 + +# rate and delay can get only specific values, consult kbdrate(1) for help +#KEYBOARD_RATE="30" +#KEYBOARD_DELAY="250" + +# Turn on numlock by default +#LEDS=+num + +# Display a clock in the right upper corner of the console by running vcstime +#DO_VCSTIME=yes diff -Nru kbd-2.3.0/debian/control kbd-2.3.0/debian/control --- kbd-2.3.0/debian/control 2020-10-11 11:07:35.000000000 +0100 +++ kbd-2.3.0/debian/control 2020-10-11 16:45:23.000000000 +0100 @@ -1,7 +1,8 @@ Source: kbd Section: utils Priority: optional -Maintainer: Console utilities maintainers +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Console utilities maintainers Uploaders: Michael Schutte , Anton Zinoviev Build-Depends: dpkg-dev (>= 1.16.1), debhelper (>= 10), linuxdoc-tools, gettext, flex, bison, pkg-config, check @@ -12,8 +13,8 @@ Package: kbd Architecture: linux-any -Depends: ${shlibs:Depends}, ${misc:Depends} -Recommends: console-setup | console-data +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, console-setup | console-setup-mini Provides: console-utilities Conflicts: console-utilities Description: Linux console font and keytable utilities @@ -21,7 +22,7 @@ resize text mode virtual consoles and remap the keyboard. . You will probably want to install a set of data files, such as the one - in the “console-data” package. + in the “console-setup” package. Package: kbd-udeb Build-Profiles: diff -Nru kbd-2.3.0/debian/kbd.dirs kbd-2.3.0/debian/kbd.dirs --- kbd-2.3.0/debian/kbd.dirs 2020-08-21 12:50:45.000000000 +0100 +++ kbd-2.3.0/debian/kbd.dirs 2020-10-11 16:45:22.000000000 +0100 @@ -2,3 +2,4 @@ sbin usr/bin usr/sbin +usr/share/initramfs-tools/hooks diff -Nru kbd-2.3.0/debian/kbd.initramfs-hook kbd-2.3.0/debian/kbd.initramfs-hook --- kbd-2.3.0/debian/kbd.initramfs-hook 1970-01-01 01:00:00.000000000 +0100 +++ kbd-2.3.0/debian/kbd.initramfs-hook 2020-08-12 12:01:20.000000000 +0100 @@ -0,0 +1,23 @@ +#! /bin/sh -e + +PREREQ="kernelextras" + +prereqs () { + echo "$PREREQ" +} + +case $1 in +prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +# Console utilities needed for console-setup +copy_exec /bin/setfont /bin +copy_exec /bin/kbd_mode /bin +copy_exec /bin/loadkeys /bin + +exit 0 diff -Nru kbd-2.3.0/debian/patches/fix_use_after_free.patch kbd-2.3.0/debian/patches/fix_use_after_free.patch --- kbd-2.3.0/debian/patches/fix_use_after_free.patch 1970-01-01 01:00:00.000000000 +0100 +++ kbd-2.3.0/debian/patches/fix_use_after_free.patch 2020-10-11 16:45:31.000000000 +0100 @@ -0,0 +1,24 @@ +Author: Dave Jones +Origin: https://github.com/legionus/kbd/pull/50 +Description: Call to ERR uses pipe_cmd after it's been freed a few lines above + +--- a/src/libkbdfile/kbdfile.c ++++ b/src/libkbdfile/kbdfile.c +@@ -116,15 +116,15 @@ + fp->fd = popen(pipe_cmd, "r"); + fp->flags |= KBDFILE_PIPE; + +- free(pipe_cmd); +- + if (!(fp->fd)) { + char buf[200]; + strerror_r(errno, buf, sizeof(buf)); + ERR(fp->ctx, "popen: %s: %s", pipe_cmd, buf); ++ free(pipe_cmd); + return -1; + } + ++ free(pipe_cmd); + return 0; + } + diff -Nru kbd-2.3.0/debian/patches/loadkeys_ckbcomp.diff kbd-2.3.0/debian/patches/loadkeys_ckbcomp.diff --- kbd-2.3.0/debian/patches/loadkeys_ckbcomp.diff 1970-01-01 01:00:00.000000000 +0100 +++ kbd-2.3.0/debian/patches/loadkeys_ckbcomp.diff 2020-10-11 16:45:31.000000000 +0100 @@ -0,0 +1,111 @@ +Description: Extend loadkeys to allow using ckbcomp + Use ckbcomp to get the keyboard layout if other data files are not + available. +Author: Colin Watson +Author: Dave Jones +Forwarded: no +Last-Update: 2020-11-09 + +--- a/src/loadkeys.c ++++ b/src/loadkeys.c +@@ -274,8 +274,10 @@ + kbdfile_set_pathname(fp, ""); + + } else if (kbdfile_find(argv[i], dirpath, suffixes, fp)) { +- kbd_warning(0, _("Unable to open file: %s: %m"), argv[i]); +- goto fail; ++ if (kbdfile_compile(argv[i], fp)) { ++ kbd_warning(0, _("Unable to open file: %s: %m"), argv[i]); ++ goto fail; ++ } + } + + rc = lk_parse_keymap(ctx, fp); +--- a/src/libkbdfile/kbdfile.c ++++ b/src/libkbdfile/kbdfile.c +@@ -10,6 +10,7 @@ + #include + #include + #include ++#include + + #include + +@@ -433,6 +434,67 @@ + return 1; + } + ++int ++kbdfile_compile(const char *xkb_desc, struct kbdfile *fp) ++{ ++ int i; ++ ++ if (fp->fd != NULL) { ++ ERR(fp->ctx, "can't compile `%s', because kbdfile already opened: %s", xkb_desc, fp->pathname); ++ return -1; ++ } ++ ++ for (i = 0; xkb_desc[i]; i++) ++ if (!isalpha((unsigned char) xkb_desc[i]) && ++ !isdigit((unsigned char) xkb_desc[i]) && ++ /* - and _ in variant names; / in a layout name; : as separator */ ++ !strchr("-/_:", xkb_desc[i])) ++ break; ++ ++ if (!xkb_desc[i]) { ++ char *layout, *variant; ++ char *colon; ++ size_t cmdsize; ++ char *cmd; ++ int rc = 0; ++ ++ layout = strdup(xkb_desc); ++ colon = strchr(layout, ':'); ++ if (colon) { ++ *colon = '\0'; ++ variant = strdup(colon + 1); ++ } else ++ variant = NULL; ++ ++ cmdsize = sizeof("ckbcomp -model pc105 "); ++ if (variant) { ++ cmdsize += strlen(layout) + 1 + strlen(variant); ++ cmd = malloc(cmdsize); ++ sprintf(cmd, "ckbcomp -model pc105 %s %s", layout, variant); ++ } else { ++ cmdsize += strlen(layout); ++ cmd = malloc(cmdsize); ++ sprintf(cmd, "ckbcomp -model pc105 %s", layout); ++ } ++ ++ kbdfile_set_pathname(fp, xkb_desc); ++ fp->fd = popen(cmd, "r"); ++ fp->flags |= KBDFILE_PIPE; ++ if (!(fp->fd)) { ++ char buf[200]; ++ strerror_r(errno, buf, sizeof(buf)); ++ ERR(fp->ctx, "popen: %s: %s", cmd, buf); ++ rc = -1; ++ } ++ ++ free(variant); ++ free(layout); ++ free(cmd); ++ return rc; ++ } ++ return 1; ++} ++ + struct kbdfile * + kbdfile_open(struct kbdfile_ctx *ctx, const char *filename) + { +--- a/src/libkbdfile/kbdfile.h ++++ b/src/libkbdfile/kbdfile.h +@@ -38,6 +38,7 @@ + void kbdfile_close(struct kbdfile *fp); + + int kbdfile_find(const char *fnam, const char *const *dirpath, const char *const *suffixes, struct kbdfile *fp); ++int kbdfile_compile(const char *xkb_desc, struct kbdfile *fp); + + char *kbdfile_get_pathname(struct kbdfile *fp); + int kbdfile_set_pathname(struct kbdfile *fp, const char *pathname); diff -Nru kbd-2.3.0/debian/patches/loadkeys_find_usable_console.diff kbd-2.3.0/debian/patches/loadkeys_find_usable_console.diff --- kbd-2.3.0/debian/patches/loadkeys_find_usable_console.diff 1970-01-01 01:00:00.000000000 +0100 +++ kbd-2.3.0/debian/patches/loadkeys_find_usable_console.diff 2020-10-11 16:45:31.000000000 +0100 @@ -0,0 +1,96 @@ +Description: Make it safer to run loadkeys with foreground console in raw mode + If not invoked with an explicit console parameter, try to find any console + not in raw mode. This makes it safer to run loadkeys if the foreground + console might be in raw mode, for example if Plymouth or X might be + running. +Author: Colin Watson +Author: Steve Langasek +Forwarded: no +Last-Update: 2016-09-20 + +--- + src/libcommon/getfd.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/libcommon/getfd.h | 2 + + src/loadkeys.c | 5 ++++- + 3 files changed, 58 insertions(+), 1 deletion(-) + +--- a/src/libcommon/getfd.c ++++ b/src/libcommon/getfd.c +@@ -91,3 +91,56 @@ + /* total failure */ + exit(1); + } ++ ++static int ++kbmode(int fd) { ++ int mode; ++ ++ if (ioctl(fd, KDGKBMODE, &mode) < 0) ++ return -1; ++ else ++ return mode; ++} ++ ++/* Get a file descriptor suitable for setting the keymap. Anything not in ++ * raw mode will do - it doesn't have to be the foreground console - but we ++ * prefer Unicode if we can get it. ++ */ ++int ++getfd_keymap(void) { ++ int fd, bestfd = -1; ++ char ttyname[sizeof("/dev/ttyNN")] = "/dev/tty"; ++ int i; ++ ++#define CHECK_FD_KEYMAP do { \ ++ if (is_a_console(fd)) { \ ++ int mode = kbmode(fd); \ ++ if (mode == K_UNICODE) { \ ++ if (bestfd != -1) \ ++ close(bestfd); \ ++ return fd; \ ++ } else if (mode == K_XLATE && bestfd == -1) \ ++ bestfd = fd; \ ++ else \ ++ close(fd); \ ++ } else \ ++ close(fd); \ ++} while (0) ++ ++ for (i = 0; conspath[i]; i++) { ++ if ((fd = open_a_console(conspath[i])) >= 0) ++ CHECK_FD_KEYMAP; ++ } ++ ++ for (i = 1; i <= 12; ++i) { ++ snprintf(ttyname + sizeof("/dev/tty") - 1, 3, "%d", i); ++ if ((fd = open_a_console(ttyname)) >= 0) ++ CHECK_FD_KEYMAP; ++ } ++ ++ fprintf(stderr, ++ _("Couldn't get a file descriptor referring to the console\n")); ++ ++ /* total failure */ ++ exit(1); ++} +--- a/src/libcommon/libcommon.h ++++ b/src/libcommon/libcommon.h +@@ -41,6 +41,7 @@ + + // getfd.c + int getfd(const char *fnam); ++int getfd_keymap(void); + + // version.c + const char *get_progname(void); +--- a/src/loadkeys.c ++++ b/src/loadkeys.c +@@ -200,7 +200,7 @@ + + if (!(options & OPT_M) && !(options & OPT_B)) { + /* get console */ +- if ((fd = getfd(console)) < 0) ++ if ((fd = console ? getfd(console) : getfd_keymap()) < 0) + kbd_error(EXIT_FAILURE, 0, _("Couldn't get a file descriptor referring to the console.")); + + /* check whether the keyboard is in Unicode mode */ diff -Nru kbd-2.3.0/debian/patches/series kbd-2.3.0/debian/patches/series --- kbd-2.3.0/debian/patches/series 2020-10-11 11:07:35.000000000 +0100 +++ kbd-2.3.0/debian/patches/series 2020-10-11 16:45:31.000000000 +0100 @@ -4,3 +4,7 @@ Check-for-X-in-kbd_mode.patch Support-KT_DEAD2-diacritics.patch Do-not-install-internal-library.patch + +loadkeys_find_usable_console.diff +loadkeys_ckbcomp.diff +fix_use_after_free.patch diff -Nru kbd-2.3.0/debian/rules kbd-2.3.0/debian/rules --- kbd-2.3.0/debian/rules 2020-10-11 11:08:44.000000000 +0100 +++ kbd-2.3.0/debian/rules 2020-10-11 16:45:23.000000000 +0100 @@ -6,7 +6,7 @@ KBD_UDEB = $(TOPDIR)/debian/kbd-udeb # build these twice, once optimized for size (for kbd-udeb) -UDEB_BINARIES = loadkeys kbd_mode setfont +UDEB_BINARIES = loadkeys kbd_mode setfont setvtrgb # non-standard binaries to build EXTRA_BINARIES = screendump setlogcons setvesablank @@ -14,7 +14,7 @@ # we don’t want these in /usr/bin MOVE_TO_BIN = kbd_mode setfont fgconsole openvt chvt dumpkeys unicode_start loadkeys -MOVE_TO_SBIN = kbdrate +MOVE_TO_SBIN = kbdrate setvtrgb MOVE_TO_USR_SBIN = vcstime setvesablank include /usr/share/dpkg/architecture.mk @@ -73,6 +73,8 @@ mv $(addprefix debian/kbd/usr/bin/,$(MOVE_TO_BIN)) $(KBD)/bin/ mv $(addprefix debian/kbd/usr/bin/,$(MOVE_TO_SBIN)) $(KBD)/sbin/ mv $(addprefix debian/kbd/usr/bin/,$(MOVE_TO_USR_SBIN)) $(KBD)/usr/sbin/ +# initramfs + install -m 755 debian/kbd.initramfs-hook $(KBD)/usr/share/initramfs-tools/hooks/kbd # prepare udeb ifeq (, $(filter noudeb, $(DEB_BUILD_PROFILES))) for ITEM in $(UDEB_BINARIES); do install -m755 src/$$ITEM-udeb $(KBD_UDEB)/bin/$$ITEM; done