[oe] [meta-oe][PATCH] system-setup-keyboard: add new recipe

Martin Jansa martin.jansa at gmail.com
Thu Dec 18 11:50:25 UTC 2014


On Fri, Dec 12, 2014 at 05:31:35PM +0800, Li xin wrote:
> system-setup-keyboard is a daemon to monitor the keyboard layout
> configured in /etc/sysconfig/keyboard and transfer this into
> the matching xorg.conf.d snippet.

Fails to build in world:
| # /usr/lib/python2.7/encodings/ascii.pyc matches
/usr/lib/python2.7/encodings/ascii.py
| import encodings.ascii # precompiled from
/usr/lib/python2.7/encodings/ascii.pyc
| Python 2.7.3 (default, Feb 27 2014, 19:58:35)
| [GCC 4.6.3] on linux2
| Type "help", "copyright", "credits" or "license" for more information.
| Traceback (most recent call last):
|   File "get_layouts.py", line 28, in <module>
|     import system_config_keyboard.keyboard_models
| ImportError: No module named system_config_keyboard.keyboard_models

| make: *** [keyboards.h] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.


> 
> Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
> ---
>  ...modify-path-of-python-and-add-v-parameter.patch | 30 ++++++++++++++++++++++
>  .../system-setup-keyboard_0.8.8.bb                 | 26 +++++++++++++++++++
>  2 files changed, 56 insertions(+)
>  create mode 100644 meta-oe/recipes-support/system-setup-keyboard/files/0001-modify-path-of-python-and-add-v-parameter.patch
>  create mode 100644 meta-oe/recipes-support/system-setup-keyboard/system-setup-keyboard_0.8.8.bb
> 
> diff --git a/meta-oe/recipes-support/system-setup-keyboard/files/0001-modify-path-of-python-and-add-v-parameter.patch b/meta-oe/recipes-support/system-setup-keyboard/files/0001-modify-path-of-python-and-add-v-parameter.patch
> new file mode 100644
> index 0000000..4b56935
> --- /dev/null
> +++ b/meta-oe/recipes-support/system-setup-keyboard/files/0001-modify-path-of-python-and-add-v-parameter.patch
> @@ -0,0 +1,30 @@
> +From 3d2bbd78e5583ef4290b3a64e4ecc19bebd4a698 Mon Sep 17 00:00:00 2001
> +From: Li xin <lixin.fnst at cn.fujitsu.com>
> +Date: Tue, 11 Nov 2014 14:20:29 +0900
> +Subject: [PATCH] modify path of python and add -v parameter
> +
> +fix error: ImportError: No module named system_config_keyboard.keyboard_models
> +
> +Upstream-Status: pending
> +
> +Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
> +---
> + Makefile | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/Makefile b/Makefile
> +index 55c5b60..c528f36 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -5,7 +5,7 @@ MAN_SECTION=1
> + all: system-setup-keyboard
> + 
> + keyboards.h:
> +-	python get_layouts.py > keyboards.h
> ++	/usr/bin/python -v get_layouts.py > keyboards.h
> + 
> + system-setup-keyboard: keyboards.h system-setup-keyboard.c
> + 	$(CC) system-setup-keyboard.c `pkg-config --cflags --libs glib-2.0` $(CFLAGS) -o system-setup-keyboard
> +-- 
> +1.8.4.2
> +
> diff --git a/meta-oe/recipes-support/system-setup-keyboard/system-setup-keyboard_0.8.8.bb b/meta-oe/recipes-support/system-setup-keyboard/system-setup-keyboard_0.8.8.bb
> new file mode 100644
> index 0000000..3b34167
> --- /dev/null
> +++ b/meta-oe/recipes-support/system-setup-keyboard/system-setup-keyboard_0.8.8.bb
> @@ -0,0 +1,26 @@
> +SUMMARY = "xorg.conf keyboard layout callout"
> +DESCRIPTION = "system-setup-keyboard is a daemon to monitor the keyboard layout configured in\
> +/etc/sysconfig/keyboard and transfer this into the matching xorg.conf.d snippet."
> +
> +HOMEPAGE = "https://git.fedorahosted.org/git/system-setup-keyboard.git"
> +SECTION = "Applications/System"
> +
> +SRC_URI = " \
> +    https://git.fedorahosted.org/cgit/${PN}.git/snapshot/${BP}.tar.gz \
> +    file://0001-modify-path-of-python-and-add-v-parameter.patch \
> +"
> +SRC_URI[md5sum] = "399003968ccc739cddd9cc370af377a0"
> +SRC_URI[sha256sum] = "1ef6ef79c3588e85d7f42e99eb80a2e459f966284cf029c2d6fc1b645abcb860"
> +
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=bf57969a59612c5aca007b340c49d3a2"
> +
> +DEPENDS = "glib-2.0"
> +
> +do_install() {
> +    oe_runmake install DESTDIR=${D}
> +    install -d ${D}/etc/X11/xorg.conf.d
> +    touch ${D}/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf
> +}
> +
> +FILES_${PN} += "${systemd_unitdir}/system/${PN}.service"
> -- 
> 1.8.4.2
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20141218/1d37948a/attachment-0002.sig>


More information about the Openembedded-devel mailing list