mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
kbd: update to 2.2.0
Rebase set-proper-path-of-resources.patch Add a patch to address a string format error; as it modifies a .l file, add a dependency on flex which is processing that into C source code. License-Update: file with copyright statements was replaced with original GPLv2 text (From OE-Core rev: 729ac34dce472378cec5447c366a28de2081e7de) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
491aac8f8f
commit
7c8a6cbf42
@@ -0,0 +1,24 @@
|
|||||||
|
From dc6bf2ae0835c6569b270e8e1f26a3173f3927d9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
|
Date: Wed, 4 Dec 2019 13:14:01 +0100
|
||||||
|
Subject: [PATCH] analyze.l: add missing string format
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [https://github.com/legionus/kbd/pull/35]
|
||||||
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
|
---
|
||||||
|
src/libkeymap/analyze.l | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/libkeymap/analyze.l b/src/libkeymap/analyze.l
|
||||||
|
index e32ace6..de62f46 100644
|
||||||
|
--- a/src/libkeymap/analyze.l
|
||||||
|
+++ b/src/libkeymap/analyze.l
|
||||||
|
@@ -463,7 +463,7 @@ To to|To|TO
|
||||||
|
|
||||||
|
strerror_r(errno, buf, sizeof(buf));
|
||||||
|
|
||||||
|
- ERR(yyextra, buf);
|
||||||
|
+ ERR(yyextra, "%s", buf);
|
||||||
|
return(ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
From 7f953dd689155bc1224a3369205c310bb5b760a7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kai Kang <kai.kang@windriver.com>
|
||||||
|
Date: Fri, 30 Sep 2016 16:49:55 +0800
|
||||||
|
Subject: [PATCH] kbd: create ptest sub-package
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [embedded specific]
|
Upstream-Status: Inappropriate [embedded specific]
|
||||||
|
|
||||||
kbd is out of source built, then the value of $(srcdir) is relative path of
|
kbd is out of source built, then the value of $(srcdir) is relative path of
|
||||||
@@ -13,38 +18,46 @@ run as expected.
|
|||||||
|
|
||||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||||
|
|
||||||
Index: kbd-2.0.4/tests/Makefile.am
|
---
|
||||||
===================================================================
|
tests/Makefile.am | 2 +-
|
||||||
--- kbd-2.0.4.orig/tests/Makefile.am
|
tests/alt-is-meta.in | 6 ++----
|
||||||
+++ kbd-2.0.4/tests/Makefile.am
|
tests/dumpkeys-fulltable.in | 2 +-
|
||||||
@@ -1,7 +1,7 @@
|
3 files changed, 4 insertions(+), 6 deletions(-)
|
||||||
AM_CPPFLAGS = \
|
|
||||||
-I$(srcdir)/../src/libkeymap \
|
|
||||||
-I$(builddir)/../src/libkeymap \
|
|
||||||
- -DDATADIR=\"$(srcdir)\" -DBUILDDIR=\"$(builddir)\"
|
|
||||||
+ -DDATADIR=\".\" -DBUILDDIR=\"$(builddir)\"
|
|
||||||
|
|
||||||
AM_CFLAGS = $(CHECK_CFLAGS)
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
||||||
LDADD = $(top_builddir)/src/libkeymap/libkeymap.la $(CHECK_LIBS) @INTLLIBS@
|
index f32b9aa..973cd26 100644
|
||||||
Index: kbd-2.0.4/tests/alt-is-meta.in
|
--- a/tests/Makefile.am
|
||||||
===================================================================
|
+++ b/tests/Makefile.am
|
||||||
--- kbd-2.0.4.orig/tests/alt-is-meta.in
|
@@ -7,7 +7,7 @@ AM_CPPFLAGS = \
|
||||||
+++ kbd-2.0.4/tests/alt-is-meta.in
|
-I$(builddir)/../src/libkeymap \
|
||||||
@@ -7,8 +7,8 @@ cd "$cwd"
|
-I$(srcdir)/../src/libkbdfile \
|
||||||
|
-I$(builddir)/../src/libkbdfile \
|
||||||
|
- -DDATADIR=\"$(srcdir)\" \
|
||||||
|
+ -DDATADIR=\".\" \
|
||||||
|
-DABS_DATADIR=\"$(realpath $(srcdir))\" \
|
||||||
|
-DBUILDDIR=\"$(builddir)\"
|
||||||
|
|
||||||
|
diff --git a/tests/alt-is-meta.in b/tests/alt-is-meta.in
|
||||||
|
index 3a1441f..772fb51 100755
|
||||||
|
--- a/tests/alt-is-meta.in
|
||||||
|
+++ b/tests/alt-is-meta.in
|
||||||
|
@@ -7,10 +7,8 @@ cd "$cwd"
|
||||||
rc=0
|
rc=0
|
||||||
temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
|
temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
|
||||||
|
|
||||||
-./libkeymap-showmaps "@DATADIR@"/alt-is-meta.map > "$temp" || rc=$?
|
-datadir="@DATADIR@/data/alt-is-meta"
|
||||||
-cmp -s "@DATADIR@//alt-is-meta.output" "$temp" || rc=$?
|
-
|
||||||
|
-./libkeymap-showmaps "$datadir"/alt-is-meta.map > "$temp" || rc=$?
|
||||||
|
-cmp -s "$datadir/alt-is-meta.output" "$temp" || rc=$?
|
||||||
+./libkeymap-showmaps ./alt-is-meta.map > "$temp" || rc=$?
|
+./libkeymap-showmaps ./alt-is-meta.map > "$temp" || rc=$?
|
||||||
+cmp -s "./alt-is-meta.output" "$temp" || rc=$?
|
+cmp -s "./alt-is-meta.output" "$temp" || rc=$?
|
||||||
|
|
||||||
if [ "$rc" != 0 ]; then
|
if [ "$rc" != 0 ]; then
|
||||||
printf 'failed\n'
|
printf 'failed\n'
|
||||||
Index: kbd-2.0.4/tests/dumpkeys-fulltable.in
|
diff --git a/tests/dumpkeys-fulltable.in b/tests/dumpkeys-fulltable.in
|
||||||
===================================================================
|
index a3a5ece..67a73ef 100755
|
||||||
--- kbd-2.0.4.orig/tests/dumpkeys-fulltable.in
|
--- a/tests/dumpkeys-fulltable.in
|
||||||
+++ kbd-2.0.4/tests/dumpkeys-fulltable.in
|
+++ b/tests/dumpkeys-fulltable.in
|
||||||
@@ -5,7 +5,7 @@ cwd="$(readlink -ev "${0%/*}")"
|
@@ -5,7 +5,7 @@ cwd="$(readlink -ev "${0%/*}")"
|
||||||
cd "$cwd"
|
cd "$cwd"
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,12 @@ SUMMARY = "Keytable files and keyboard utilities"
|
|||||||
HOMEPAGE = "http://www.kbd-project.org/"
|
HOMEPAGE = "http://www.kbd-project.org/"
|
||||||
# everything minus console-fonts is GPLv2+
|
# everything minus console-fonts is GPLv2+
|
||||||
LICENSE = "GPLv2+"
|
LICENSE = "GPLv2+"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a5fcc36121d93e1f69d96a313078c8b5"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a"
|
||||||
|
|
||||||
inherit autotools gettext ptest pkgconfig
|
inherit autotools gettext ptest pkgconfig
|
||||||
|
|
||||||
|
DEPENDS += "flex-native"
|
||||||
|
|
||||||
RREPLACES_${PN} = "console-tools"
|
RREPLACES_${PN} = "console-tools"
|
||||||
RPROVIDES_${PN} = "console-tools"
|
RPROVIDES_${PN} = "console-tools"
|
||||||
RCONFLICTS_${PN} = "console-tools"
|
RCONFLICTS_${PN} = "console-tools"
|
||||||
@@ -13,10 +15,11 @@ RCONFLICTS_${PN} = "console-tools"
|
|||||||
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
|
||||||
file://run-ptest \
|
file://run-ptest \
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'file://set-proper-path-of-resources.patch', '', d)} \
|
${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'file://set-proper-path-of-resources.patch', '', d)} \
|
||||||
"
|
file://0001-analyze.l-add-missing-string-format.patch \
|
||||||
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "c1635a5a83b63aca7f97a3eab39ebaa6"
|
SRC_URI[md5sum] = "d1d7ae0b5fb875dc082731e09cd0c8bc"
|
||||||
SRC_URI[sha256sum] = "5fd90af6beb225a9bb9b9fb414c090fba53c9a55793e172f508cd43652e59a88"
|
SRC_URI[sha256sum] = "21a1bc5f6fb3b18ce9fdd717e4533368060a3182a39c7155eaf7ec0f5f83e9f7"
|
||||||
|
|
||||||
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
|
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
|
||||||
${@bb.utils.contains('PTEST_ENABLED', '1', 'tests','', d)} \
|
${@bb.utils.contains('PTEST_ENABLED', '1', 'tests','', d)} \
|
||||||
Reference in New Issue
Block a user