summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch')
-rw-r--r--meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch57
1 files changed, 35 insertions, 22 deletions
diff --git a/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch b/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch
index a9a3ab8abf..5872cef36b 100644
--- a/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch
+++ b/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch
@@ -1,3 +1,8 @@
1From 7f953dd689155bc1224a3369205c310bb5b760a7 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Fri, 30 Sep 2016 16:49:55 +0800
4Subject: [PATCH] kbd: create ptest sub-package
5
1Upstream-Status: Inappropriate [embedded specific] 6Upstream-Status: Inappropriate [embedded specific]
2 7
3kbd is out of source built, then the value of $(srcdir) is relative path of 8kbd is out of source built, then the value of $(srcdir) is relative path of
@@ -13,38 +18,46 @@ run as expected.
13 18
14Signed-off-by: Kai Kang <kai.kang@windriver.com> 19Signed-off-by: Kai Kang <kai.kang@windriver.com>
15 20
16Index: kbd-2.0.4/tests/Makefile.am 21---
17=================================================================== 22 tests/Makefile.am | 2 +-
18--- kbd-2.0.4.orig/tests/Makefile.am 23 tests/alt-is-meta.in | 6 ++----
19+++ kbd-2.0.4/tests/Makefile.am 24 tests/dumpkeys-fulltable.in | 2 +-
20@@ -1,7 +1,7 @@ 25 3 files changed, 4 insertions(+), 6 deletions(-)
21 AM_CPPFLAGS = \ 26
22 -I$(srcdir)/../src/libkeymap \ 27diff --git a/tests/Makefile.am b/tests/Makefile.am
28index f32b9aa..973cd26 100644
29--- a/tests/Makefile.am
30+++ b/tests/Makefile.am
31@@ -7,7 +7,7 @@ AM_CPPFLAGS = \
23 -I$(builddir)/../src/libkeymap \ 32 -I$(builddir)/../src/libkeymap \
24- -DDATADIR=\"$(srcdir)\" -DBUILDDIR=\"$(builddir)\" 33 -I$(srcdir)/../src/libkbdfile \
25+ -DDATADIR=\".\" -DBUILDDIR=\"$(builddir)\" 34 -I$(builddir)/../src/libkbdfile \
35- -DDATADIR=\"$(srcdir)\" \
36+ -DDATADIR=\".\" \
37 -DABS_DATADIR=\"$(realpath $(srcdir))\" \
38 -DBUILDDIR=\"$(builddir)\"
26 39
27 AM_CFLAGS = $(CHECK_CFLAGS) 40diff --git a/tests/alt-is-meta.in b/tests/alt-is-meta.in
28 LDADD = $(top_builddir)/src/libkeymap/libkeymap.la $(CHECK_LIBS) @INTLLIBS@ 41index 3a1441f..772fb51 100755
29Index: kbd-2.0.4/tests/alt-is-meta.in 42--- a/tests/alt-is-meta.in
30=================================================================== 43+++ b/tests/alt-is-meta.in
31--- kbd-2.0.4.orig/tests/alt-is-meta.in 44@@ -7,10 +7,8 @@ cd "$cwd"
32+++ kbd-2.0.4/tests/alt-is-meta.in
33@@ -7,8 +7,8 @@ cd "$cwd"
34 rc=0 45 rc=0
35 temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")" 46 temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
36 47
37-./libkeymap-showmaps "@DATADIR@"/alt-is-meta.map > "$temp" || rc=$? 48-datadir="@DATADIR@/data/alt-is-meta"
38-cmp -s "@DATADIR@//alt-is-meta.output" "$temp" || rc=$? 49-
50-./libkeymap-showmaps "$datadir"/alt-is-meta.map > "$temp" || rc=$?
51-cmp -s "$datadir/alt-is-meta.output" "$temp" || rc=$?
39+./libkeymap-showmaps ./alt-is-meta.map > "$temp" || rc=$? 52+./libkeymap-showmaps ./alt-is-meta.map > "$temp" || rc=$?
40+cmp -s "./alt-is-meta.output" "$temp" || rc=$? 53+cmp -s "./alt-is-meta.output" "$temp" || rc=$?
41 54
42 if [ "$rc" != 0 ]; then 55 if [ "$rc" != 0 ]; then
43 printf 'failed\n' 56 printf 'failed\n'
44Index: kbd-2.0.4/tests/dumpkeys-fulltable.in 57diff --git a/tests/dumpkeys-fulltable.in b/tests/dumpkeys-fulltable.in
45=================================================================== 58index a3a5ece..67a73ef 100755
46--- kbd-2.0.4.orig/tests/dumpkeys-fulltable.in 59--- a/tests/dumpkeys-fulltable.in
47+++ kbd-2.0.4/tests/dumpkeys-fulltable.in 60+++ b/tests/dumpkeys-fulltable.in
48@@ -5,7 +5,7 @@ cwd="$(readlink -ev "${0%/*}")" 61@@ -5,7 +5,7 @@ cwd="$(readlink -ev "${0%/*}")"
49 cd "$cwd" 62 cd "$cwd"
50 63