[oe-commits] Khem Raj : kbd: Fix stdarg related errors on uclibc
git at git.openembedded.org
git at git.openembedded.org
Fri Nov 8 17:31:53 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: eac8cb7cacab7f2fb392128aa5ebc2046ca4a793
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=eac8cb7cacab7f2fb392128aa5ebc2046ca4a793
Author: Khem Raj <raj.khem at gmail.com>
Date: Thu Nov 7 05:35:00 2013 +0000
kbd: Fix stdarg related errors on uclibc
It does not get stdarg.h included indirectly as it happens
on uclibc due to different include chain
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/kbd/kbd/uclibc-stdarg.patch | 36 +++++++++++++++++++++++++++
meta/recipes-core/kbd/kbd_2.0.1.bb | 4 ++-
2 files changed, 39 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/kbd/kbd/uclibc-stdarg.patch b/meta/recipes-core/kbd/kbd/uclibc-stdarg.patch
new file mode 100644
index 0000000..be7f324
--- /dev/null
+++ b/meta/recipes-core/kbd/kbd/uclibc-stdarg.patch
@@ -0,0 +1,36 @@
+In file included from keymap.h:5:0,
+ from ksyms.c:6:
+./keymap/common.h:65:38: error: unknown type name 'va_list'
+ const char *format, va_list args),
+ ^
+./keymap/common.h:66:3: error: expected ';', ',' or ')' before 'const'
+ const void *data);
+ ^
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+Index: kbd-2.0.0/src/libkeymap/contextP.h
+===================================================================
+--- kbd-2.0.0.orig/src/libkeymap/contextP.h 2013-08-13 06:46:23.000000000 -0700
++++ kbd-2.0.0/src/libkeymap/contextP.h 2013-11-05 22:33:49.200528226 -0800
+@@ -2,7 +2,7 @@
+ #define LK_CONTEXTP_H
+
+ #include "keymap.h"
+-
++#include <stdarg.h>
+ /**
+ * @brief Copy of struct kbdiacruc.
+ */
+Index: kbd-2.0.0/src/libkeymap/keymap/common.h
+===================================================================
+--- kbd-2.0.0.orig/src/libkeymap/keymap/common.h 2013-08-13 06:46:23.000000000 -0700
++++ kbd-2.0.0/src/libkeymap/keymap/common.h 2013-11-05 22:33:59.964528438 -0800
+@@ -6,6 +6,7 @@
+ */
+
+ #include <keymap/context.h>
++#include <stdarg.h>
+
+ /** Initializes the structures necessary to read and/or parse keymap.
+ *
diff --git a/meta/recipes-core/kbd/kbd_2.0.1.bb b/meta/recipes-core/kbd/kbd_2.0.1.bb
index d39f4c8..b2afc60 100644
--- a/meta/recipes-core/kbd/kbd_2.0.1.bb
+++ b/meta/recipes-core/kbd/kbd_2.0.1.bb
@@ -10,7 +10,9 @@ RREPLACES_${PN} = "console-tools"
RPROVIDES_${PN} = "console-tools"
RCONFLICTS_${PN} = "console-tools"
-SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.bz2"
+SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.bz2 \
+ file://uclibc-stdarg.patch \
+ "
SRC_URI[md5sum] = "f80b93a6abddb6cc2a3652daaf7562ba"
SRC_URI[sha256sum] = "223d60bb6882323cca161aeb5965590768b2f590fd7cddbf27511ad0ba7a429e"
More information about the Openembedded-commits
mailing list