From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] system-setup-keyboard: add new recipe
Date: Thu, 18 Dec 2014 12:50:25 +0100 [thread overview]
Message-ID: <20141218115025.GA2462@jama> (raw)
In-Reply-To: <1418376695-7152-1-git-send-email-lixin.fnst@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 4515 bytes --]
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@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@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@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@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2014-12-18 11:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 9:31 [meta-oe][PATCH] system-setup-keyboard: add new recipe Li xin
2014-12-18 11:50 ` Martin Jansa [this message]
2015-01-20 8:02 ` [meta-oe][patch v2][PATCH 0/2] " Li xin
2015-01-20 8:02 ` [meta-oe][PATCH 1/2] system-config-keyboard: " Li xin
2015-01-20 8:02 ` [meta-oe][PATCH 2/2] system-setup-keyboard: " Li xin
2015-01-20 8:56 ` Martin Jansa
2015-01-20 10:10 ` [meta-oe][PATCH v3] " Li xin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141218115025.GA2462@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.