Update to kbd-1.15.2

This commit is contained in:
Vitezslav Crhonek 2011-01-05 14:40:22 +01:00
parent d2585b7e4e
commit c22c104c45
9 changed files with 75 additions and 140 deletions

2
.gitignore vendored
View File

@ -9,3 +9,5 @@ ro_maps.tar.bz2
terminus.tar.bz2 terminus.tar.bz2
kbd-1.13wip.tar.gz kbd-1.13wip.tar.gz
kbd-1.15.tar.gz kbd-1.15.tar.gz
/kbd-1.15.2.tar.bz2
/kbd-1.15.2.tar.bz2.sign

View File

@ -1,6 +1,6 @@
diff -up kbd-1.15/man/man1/showkey.1_old kbd-1.15/man/man1/showkey.1 diff -up kbd-1.15.2/man/man1/showkey.1.orig kbd-1.15.2/man/man1/showkey.1
--- kbd-1.15/man/man1/showkey.1_old 2008-03-13 17:46:23.000000000 +0100 --- kbd-1.15.2/man/man1/showkey.1.orig 2009-10-09 17:26:13.000000000 +0200
+++ kbd-1.15/man/man1/showkey.1 2008-12-10 12:31:38.000000000 +0100 +++ kbd-1.15.2/man/man1/showkey.1 2011-01-05 12:45:25.726030798 +0100
@@ -80,6 +80,19 @@ corresponds to what the keyboard hardwar @@ -80,6 +80,19 @@ corresponds to what the keyboard hardwar
to know the scan codes sent by various keys it is better to boot a to know the scan codes sent by various keys it is better to boot a
2.4 kernel. Since 2.6.9 there also is the boot option atkbd.softraw=0 2.4 kernel. Since 2.6.9 there also is the boot option atkbd.softraw=0
@ -21,21 +21,21 @@ diff -up kbd-1.15/man/man1/showkey.1_old kbd-1.15/man/man1/showkey.1
.SH "SEE ALSO" .SH "SEE ALSO"
.BR loadkeys (1), .BR loadkeys (1),
.BR dumpkeys (1), .BR dumpkeys (1),
diff -up kbd-1.15/man/man8/setkeycodes.8_old kbd-1.15/man/man8/setkeycodes.8 diff -up kbd-1.15.2/man/man8/setkeycodes.8.orig kbd-1.15.2/man/man8/setkeycodes.8
--- kbd-1.15/man/man8/setkeycodes.8_old 2008-12-10 12:31:56.000000000 +0100 --- kbd-1.15.2/man/man8/setkeycodes.8.orig 2009-10-09 17:26:13.000000000 +0200
+++ kbd-1.15/man/man8/setkeycodes.8 2008-12-10 12:37:36.000000000 +0100 +++ kbd-1.15.2/man/man8/setkeycodes.8 2011-01-05 12:47:46.894739942 +0100
@@ -41,6 +41,10 @@ to showkey(1), the command @@ -38,6 +38,10 @@ to showkey(1), the command
.RE
will assign the keycode 112 to it, and then loadkeys(1) can be used will assign the keycode 112 to it, and then loadkeys(1) can be used
to define the function of this key. to define the function of this key.
+
+USB keyboards have standardized keycodes and +USB keyboards have standardized keycodes and
+.B setkeycodes +.B setkeycodes
+doesn't affect them at all. +doesn't affect them at all.
+ .LP
.SH "2.6 KERNELS" Some older kernels might hardwire a low scancode range to the
In 2.6 kernels key codes lie in the range 1-255, instead of 1-127. equivalent keycodes; setkeycodes will fail when you try to remap
(It might be best to confine oneself to the range 1-239.) @@ -56,6 +60,14 @@ None.
@@ -54,6 +58,14 @@ None.
.SH BUGS .SH BUGS
The keycodes of X have nothing to do with those of Linux. The keycodes of X have nothing to do with those of Linux.
Unusual keys can be made visible under Linux, but not under X. Unusual keys can be made visible under Linux, but not under X.

View File

@ -1,31 +1,12 @@
diff -up kbd-1.15/po/Makefile.in_old kbd-1.15/po/Makefile.in diff -up kbd-1.15.2/po/Makefile.in.in.orig kbd-1.15.2/po/Makefile.in.in
--- kbd-1.15/po/Makefile.in_old 2008-10-23 21:03:59.000000000 +0200 --- kbd-1.15.2/po/Makefile.in.in.orig 2010-04-10 23:34:12.000000000 +0200
+++ kbd-1.15/po/Makefile.in 2008-12-09 15:35:58.000000000 +0100 +++ kbd-1.15.2/po/Makefile.in.in 2011-01-05 12:34:33.182143154 +0100
@@ -4,10 +4,10 @@ srcdir = @srcdir@ @@ -23,7 +23,7 @@ VPATH = @srcdir@
prefix = @prefix@ prefix = @prefix@
datarootdir = @datarootdir@ exec_prefix = @exec_prefix@
-datadir = @datadir@ datadir = @datadir@
-localedir = $(DESTDIR)$(datadir)/locale -localedir = $(datadir)/locale
-gnulocaledir = $(DESTDIR)$(datadir)/locale +localedir = @localedir@
-gettextsrcdir = $(DESTDIR)$(datadir)/gettext/po gettextsrcdir = $(datadir)/gettext/po
+datadir = $(DESTDIR)@datadir@
+localedir = $(DESTDIR)@localedir@
+gnulocaledir = $(DESTDIR)@localedir@
+gettextsrcdir = $(datadir)/gettext/po
FOREIGN = @FOREIGN@ INSTALL = @INSTALL@
HAVE_XGETTEXT = @HAVE_XGETTEXT@
@@ -36,10 +36,10 @@ INCLUDES = -I.. -I$(INTL)
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
# Enter here all .po files
-POFILES = cs.po da.po de.po el.po es.po fr.po gr.po nl.po pl.po \
+POFILES = cs.po da.po de.po el.po es.po fr.po nl.po pl.po \
ro.po ru.po sv.po tr.po
# the same but with .gmo
-GMOFILES = cs.gmo da.gmo de.gmo el.gmo es.gmo fr.gmo gr.gmo nl.gmo \
+GMOFILES = cs.gmo da.gmo de.gmo el.gmo es.gmo fr.gmo nl.gmo \
pl.gmo ro.gmo ru.gmo sv.gmo tr.gmo
CATALOGS = $(GMOFILES)

View File

@ -1,34 +0,0 @@
diff -up kbd-1.15/man/man1/loadkeys.1.in_old kbd-1.15/man/man1/loadkeys.1.in
--- kbd-1.15/man/man1/loadkeys.1.in_old 2008-10-23 21:03:59.000000000 +0200
+++ kbd-1.15/man/man1/loadkeys.1.in 2009-03-05 13:11:08.000000000 +0100
@@ -19,6 +19,8 @@ loadkeys \- load keyboard translation ta
] [
.I -m --mktable
] [
+.I -q --quiet
+] [
.I -s --clearstrings
] [
.I -v --verbose
@@ -148,6 +150,10 @@ command (and does not modify the current
.B loadkeys
prints its version number and a short usage message to the programs
standard error output and exits.
+.TP
+.B \-q \-\-quiet
+.B loadkeys
+suppresses all normal output.
.SH WARNING
Note that anyone having read access to
.B /dev/console
diff -up kbd-1.15/src/loadkeys.c_old kbd-1.15/src/loadkeys.c
--- kbd-1.15/src/loadkeys.c_old 2008-10-23 21:03:59.000000000 +0200
+++ kbd-1.15/src/loadkeys.c 2009-03-05 13:09:00.000000000 +0100
@@ -1966,6 +1966,7 @@ usage(void) {
" -d --default load \"%s\"\n"
" -h --help display this help text\n"
" -m --mktable output a \"defkeymap.c\" to stdout\n"
+" -q --quiet suppress all normal output\n"
" -s --clearstrings clear kernel string table\n"
" -u --unicode implicit conversion to Unicode\n"
" -v --verbose report the changes\n"), PACKAGE_VERSION, DEFMAP);

View File

@ -1,7 +1,7 @@
diff -up kbd-1.15/configure_old kbd-1.15/configure diff -up kbd-1.15.2/configure.orig kbd-1.15.2/configure
--- kbd-1.15/configure_old 2009-01-08 15:11:04.000000000 +0100 --- kbd-1.15.2/configure.orig 2011-01-05 13:30:25.826147638 +0100
+++ kbd-1.15/configure 2009-01-08 15:11:45.000000000 +0100 +++ kbd-1.15.2/configure 2011-01-05 13:31:15.089526084 +0100
@@ -7637,8 +7637,9 @@ fi @@ -7369,8 +7369,9 @@ fi
case $host_cpu in case $host_cpu in

View File

@ -1,6 +1,6 @@
diff -up kbd-1.15/man/man8/kbdrate.8_old kbd-1.15/man/man8/kbdrate.8 diff -up kbd-1.15.2/man/man8/kbdrate.8.orig kbd-1.15.2/man/man8/kbdrate.8
--- kbd-1.15/man/man8/kbdrate.8_old 2008-12-10 14:20:33.000000000 +0100 --- kbd-1.15.2/man/man8/kbdrate.8.orig 2009-06-07 21:48:42.000000000 +0200
+++ kbd-1.15/man/man8/kbdrate.8 2008-12-10 14:41:10.000000000 +0100 +++ kbd-1.15.2/man/man8/kbdrate.8 2011-01-05 12:58:34.579706016 +0100
@@ -22,7 +22,7 @@ Using @@ -22,7 +22,7 @@ Using
without any options will reset the repeat rate to 10.9 characters per second (cps) without any options will reset the repeat rate to 10.9 characters per second (cps)
and the delay to 250 milliseconds (ms) for Intel- and M68K-based systems. and the delay to 250 milliseconds (ms) for Intel- and M68K-based systems.
@ -16,18 +16,10 @@ diff -up kbd-1.15/man/man8/kbdrate.8_old kbd-1.15/man/man8/kbdrate.8
.I /dev/port .I /dev/port
+.br +.br
+.I /dev/kbd +.I /dev/kbd
diff -up kbd-1.15/src/kbdrate.c_old kbd-1.15/src/kbdrate.c diff -up kbd-1.15.2/src/kbdrate.c.orig kbd-1.15.2/src/kbdrate.c
--- kbd-1.15/src/kbdrate.c_old 2008-12-10 14:00:25.000000000 +0100 --- kbd-1.15.2/src/kbdrate.c.orig 2011-01-05 12:53:45.186575833 +0100
+++ kbd-1.15/src/kbdrate.c 2008-12-10 14:20:11.000000000 +0100 +++ kbd-1.15.2/src/kbdrate.c 2011-01-05 12:57:37.746753646 +0100
@@ -77,7 +77,6 @@ beats rebuilding the kernel! @@ -108,9 +108,12 @@ static int valid_delays[] = { 250, 500,
#ifdef __sparc__
#include <asm/param.h>
-#include <asm/kbio.h>
#endif
#ifndef KDKBDREP
@@ -109,11 +108,15 @@ static int valid_delays[] = { 250, 500,
static int static int
KDKBDREP_ioctl_ok(double rate, int delay, int silent) { KDKBDREP_ioctl_ok(double rate, int delay, int silent) {
@ -38,13 +30,9 @@ diff -up kbd-1.15/src/kbdrate.c_old kbd-1.15/src/kbdrate.c
+ * We cannot blindly try unimplemented ioctls on sparc64 - + * We cannot blindly try unimplemented ioctls on sparc64 -
+ * the 32<->64bit transition layer does not like it. + * the 32<->64bit transition layer does not like it.
* Since 2.4.9 also on i386. * Since 2.4.9 also on i386.
- */ */
+ */
+
struct my_kbd_repeat kbdrep_s; struct my_kbd_repeat kbdrep_s;
@@ -176,6 +179,9 @@ KDKBDREP_ioctl_ok(double rate, int delay
/* don't change, just test */
@@ -177,6 +180,9 @@ KDKBDREP_ioctl_ok(double rate, int delay
rate, kbdrep_s.delay ); rate, kbdrep_s.delay );
return 1; /* success! */ return 1; /* success! */
@ -53,8 +41,8 @@ diff -up kbd-1.15/src/kbdrate.c_old kbd-1.15/src/kbdrate.c
+#endif /* KDKBDREP */ +#endif /* KDKBDREP */
} }
static int #ifndef KIOCSRATE
@@ -221,7 +227,7 @@ sigalrmhandler( int sig ) { @@ -226,7 +232,7 @@ sigalrmhandler( attr_unused int sig ) {
int int
main( int argc, char **argv ) { main( int argc, char **argv ) {
#ifdef __sparc__ #ifdef __sparc__
@ -63,7 +51,7 @@ diff -up kbd-1.15/src/kbdrate.c_old kbd-1.15/src/kbdrate.c
int delay = 200; /* Default delay */ int delay = 200; /* Default delay */
#else #else
double rate = 10.9; /* Default rate */ double rate = 10.9; /* Default rate */
@@ -272,7 +278,9 @@ main( int argc, char **argv ) { @@ -277,7 +283,9 @@ main( int argc, char **argv ) {
/* The ioport way */ /* The ioport way */
@ -73,7 +61,7 @@ diff -up kbd-1.15/src/kbdrate.c_old kbd-1.15/src/kbdrate.c
for (i = 0; i < RATE_COUNT; i++) for (i = 0; i < RATE_COUNT; i++)
if (rate * 10 >= valid_rates[i]) { if (rate * 10 >= valid_rates[i]) {
value &= 0x60; value &= 0x60;
@@ -335,5 +343,7 @@ main( int argc, char **argv ) { @@ -340,5 +348,7 @@ main( int argc, char **argv ) {
valid_rates[value & 0x1f] / 10.0, valid_rates[value & 0x1f] / 10.0,
valid_delays[ (value & 0x60) >> 5 ] ); valid_delays[ (value & 0x60) >> 5 ] );
@ -81,17 +69,3 @@ diff -up kbd-1.15/src/kbdrate.c_old kbd-1.15/src/kbdrate.c
+ +
return 0; return 0;
} }
diff -up kbd-1.15/src/setleds.c_old kbd-1.15/src/setleds.c
--- kbd-1.15/src/setleds.c_old 2008-12-10 14:00:02.000000000 +0100
+++ kbd-1.15/src/setleds.c 2008-12-10 14:00:16.000000000 +0100
@@ -14,10 +14,6 @@
#include "nls.h"
#include "version.h"
-#ifdef __sparc__
-#include <asm/kbio.h>
-#endif
-
static void
usage(void)
{

View File

@ -1,6 +1,6 @@
diff -up kbd-1.15/src/unicode_start_old kbd-1.15/src/unicode_start diff -up kbd-1.15.2/src/unicode_start.orig kbd-1.15.2/src/unicode_start
--- kbd-1.15/src/unicode_start_old 2009-01-08 13:34:10.000000000 +0100 --- kbd-1.15.2/src/unicode_start.orig 2011-01-05 13:28:22.079662644 +0100
+++ kbd-1.15/src/unicode_start 2009-01-08 14:02:12.000000000 +0100 +++ kbd-1.15.2/src/unicode_start 2011-01-05 13:29:01.327353698 +0100
@@ -72,6 +72,9 @@ stty iutf8 @@ -72,6 +72,9 @@ stty iutf8
# have a Unicode map attached, or explicitly specified, e.g., # have a Unicode map attached, or explicitly specified, e.g.,
# by giving `def.uni' as a second argument. # by giving `def.uni' as a second argument.

View File

@ -1,23 +1,27 @@
Name: kbd Name: kbd
Version: 1.15 Version: 1.15.2
Release: 11%{?dist} Release: 1%{?dist}
Summary: Tools for configuring the console (keyboard, virtual terminals, etc.) Summary: Tools for configuring the console (keyboard, virtual terminals, etc.)
Group: System Environment/Base Group: System Environment/Base
License: GPLv2+ License: GPLv2+
URL: http://ftp.altlinux.org/pub/people/legion/kbd URL: http://ftp.altlinux.org/pub/people/legion/kbd
Source0: http://ftp.altlinux.org/pub/people/legion/kbd/kbd-%{version}.tar.gz Source0: ftp://ftp.kernel.org/pub/linux/utils/kbd/kbd-%{version}.tar.bz2
Source1: kbd-latsun-fonts.tar.bz2 Source1: ftp://ftp.kernel.org/pub/linux/utils/kbd/kbd-%{version}.tar.bz2.sign
Source2: ro_maps.tar.bz2 Source2: kbd-latsun-fonts.tar.bz2
Source3: kbd-latarcyrheb-16-fixed.tar.bz2 Source3: kbd-latarcyrheb-16-fixed.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Patch0: installs translation file to right place
Patch0: kbd-1.15-po.patch Patch0: kbd-1.15-po.patch
# Patch1: puts additional information into man pages
Patch1: kbd-1.15-keycodes-man.patch Patch1: kbd-1.15-keycodes-man.patch
# Patch2: sparc modifications
Patch2: kbd-1.15-sparc.patch Patch2: kbd-1.15-sparc.patch
# Patch3: adds default unicode font to unicode_start script
Patch3: kbd-1.15-unicode_start.patch Patch3: kbd-1.15-unicode_start.patch
# Patch4: adds resizecon binary also to the x86_64 arch
Patch4: kbd-1.15-resizecon-x86_64.patch Patch4: kbd-1.15-resizecon-x86_64.patch
Patch5: kbd-1.15-quiet_doc.patch Patch5: kbd-1.15-defkeymap.patch
Patch6: kbd-1.15-defkeymap.patch
BuildRequires: bison, flex, gettext BuildRequires: bison, flex, gettext
Conflicts: util-linux < 2.11r-9 Conflicts: util-linux < 2.11r-9
@ -38,14 +42,13 @@ The %{name}-misc package contains data for kbd package - console fonts,
keymaps etc. Please note that %{name}-misc is not helpful without kbd. keymaps etc. Please note that %{name}-misc is not helpful without kbd.
%prep %prep
%setup -q -a 1 -a 2 -a 3 %setup -q -a 2 -a 3
%patch0 -p1 -b .po %patch0 -p1 -b .po
%patch1 -p1 -b .keycodes-man %patch1 -p1 -b .keycodes-man
%patch2 -p1 -b .sparc %patch2 -p1 -b .sparc
%patch3 -p1 -b .unicode_start %patch3 -p1 -b .unicode_start
%patch4 -p1 -b .resizecon_x86_64 %patch4 -p1 -b .resizecon_x86_64
%patch5 -p1 -b .quiet_doc %patch5 -p1 -b .defkeymap
%patch6 -p1 -b .defkeymap
# 7-bit maps are obsolete; so are non-euro maps # 7-bit maps are obsolete; so are non-euro maps
pushd data/keymaps/i386 pushd data/keymaps/i386
@ -67,6 +70,11 @@ mv olpc/pt.map olpc/pt-olpc.map
mv qwerty/cz.map qwerty/cz-qwerty.map mv qwerty/cz.map qwerty/cz-qwerty.map
popd popd
# remove obsolete "gr" translation
pushd po
rm -f gr.po gr.gmo
popd
# Convert to utf-8 # Convert to utf-8
iconv -f iso-8859-1 -t utf-8 < "ChangeLog" > "ChangeLog_" iconv -f iso-8859-1 -t utf-8 < "ChangeLog" > "ChangeLog_"
mv "ChangeLog_" "ChangeLog" mv "ChangeLog_" "ChangeLog"
@ -119,6 +127,10 @@ rm -rf $RPM_BUILD_ROOT
/lib/kbd /lib/kbd
%changelog %changelog
* Wed Jan 5 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.15.2-1
- Update to kbd-1.15.2 (removed kbd-1.15-quiet_doc.patch and romanian keymaps, both are
part of the upstream tarball now)
* Thu Jun 24 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.15-11 * Thu Jun 24 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.15-11
- Ship /lib/kbd in separate subpackage - Ship /lib/kbd in separate subpackage

View File

@ -1,4 +1,4 @@
050e1e454e9c01e22f198303d649efb8 kbd-latsun-fonts.tar.bz2 050e1e454e9c01e22f198303d649efb8 kbd-latsun-fonts.tar.bz2
06ac1d4a6c014f6de9a29222497d70c8 ro_maps.tar.bz2
884fdbb0b952b2e3e8389a0c40a3e301 kbd-latarcyrheb-16-fixed.tar.bz2 884fdbb0b952b2e3e8389a0c40a3e301 kbd-latarcyrheb-16-fixed.tar.bz2
ba3fd20e6c79e58422c3cc6b28718939 kbd-1.15.tar.gz e850eb91e4d3b94b194efe8e953204c5 kbd-1.15.2.tar.bz2
509b0bce718bf3cb9b631b0a69289751 kbd-1.15.2.tar.bz2.sign