Patchwork [RFC] libyajl_git: Add Git dbcba50b7 version (initial recipe)

login
register
mail settings
Submitter Paul Menzel
Date June 13, 2011, 11:25 p.m.
Message ID <1308007552.1831.1.camel@mattotaupa>
Download mbox | patch
Permalink /patch/5809/
State New, archived
Headers show

Comments

Paul Menzel - June 13, 2011, 11:25 p.m.
Date: Mon, 13 Jun 2011 19:24:12 +0200

XBMC Git requires on YAJL now [1].

[1] https://github.com/xbmc/xbmc/commit/3565ad579e9b80f4be57db901d3fe44d9bfac87d

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
---
I still have to problems.

1. Is the correct recipe name yajl – as the project calls itself – or libyajl since it is a library?
2. During the first BitBake run, task package_stage fails with the following error (please note that here the used recipe name was `yajl`).

	ERROR: Error executing a python function in /oe/openembedded/recipes/yajl/yajl_git.bb:
	ShellSyntaxError: Unexpected EOF

	ERROR: The stack trace of python calls that resulted in this exception/failure was:
	ERROR:   File "do_package_stage", line 87, in <module>
	ERROR: 
	ERROR:   File "do_package_stage", line 81, in do_package_stage
	ERROR: 
	ERROR:   File "/oe/bitbake/lib/bb/build.py", line 171, in exec_func
	ERROR:     exec_func_shell(func, d, runfile, cwd=adir)
	ERROR: 
	ERROR:   File "/oe/bitbake/lib/bb/build.py", line 224, in exec_func_shell
	ERROR:     data.emit_func(function, script, d)
	ERROR: 
	ERROR:   File "/oe/bitbake/lib/bb/data.py", line 260, in emit_func
	ERROR:     newdeps = bb.codeparser.ShellParser().parse_shell(d.getVar(func, True))
	ERROR: 
	ERROR:   File "/oe/bitbake/lib/bb/codeparser.py", line 247, in parse_shell
	ERROR:     raise sherrors.ShellSyntaxError("Unexpected EOF")
	ERROR: 
	ERROR: The code that was being executed was:
	ERROR:      0083:    bb.build.exec_func("staging_package_installer", d)
	ERROR:      0084:    bb.utils.unlockfile(lf)
	ERROR:      0085:
	ERROR:      0086:
	ERROR:  *** 0087:do_package_stage(d)
	ERROR:      0088:
	ERROR: (file: 'do_package_stage', lineno: 87, function: <module>)
	ERROR:      0077:    oe_run(d, "cp -PpR %s.do_* %s/" % (stampfn, destdir))
	ERROR:      0078:
	ERROR:      0079:    pstage_set_pkgmanager(d)
	ERROR:      0080:    bb.build.exec_func("staging_helper", d)
	ERROR:  *** 0081:    bb.build.exec_func("staging_packager", d)
	ERROR:      0082:    lf = bb.utils.lockfile(bb.data.expand("/oe/build-angstrom-next/angstrom-dev/sysroots/staging.lock", d))
	ERROR:      0083:    bb.build.exec_func("staging_package_installer", d)
	ERROR:      0084:    bb.utils.unlockfile(lf)
	ERROR:      0085:
	ERROR: (file: 'do_package_stage', lineno: 81, function: do_package_stage)
	ERROR: Function 'do_package_stage' failed
	+ cd /oe/build-angstrom-next/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/yajl-git-r0/git
	+ staging_helper
	+ conffile=/oe/build-angstrom-next/angstrom-dev/pstage/opkg.conf
	+ mkdir -p /oe/build-angstrom-next/angstrom-dev/pstage/pstaging_lists
	+ arch=armv7a-linux-gnueabi
	+ '[' '!' -e /oe/build-angstrom-next/angstrom-dev/pstage/opkg.conf ']'
	++ grep -c ' armv7a-linux-gnueabi ' /oe/build-angstrom-next/angstrom-dev/pstage/opkg.conf
	+ '[' 1 -eq 0 ']'
	+ '[' '!' -e /oe/build-angstrom-next/angstrom-dev/usr/lib/opkg/info/ ']'
	+ '[' '!' -e /oe/build-angstrom-next/angstrom-dev/usr/lib/ipkg/ ']'

Running `bitbake yajl` afterward works fine then.
---
 recipes/libyajl/libyajl_git.bb |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libyajl/libyajl_git.bb
Paul Menzel - June 19, 2011, 6:41 p.m.
Am Dienstag, den 14.06.2011, 01:25 +0200 schrieb Paul Menzel:
> Date: Mon, 13 Jun 2011 19:24:12 +0200
> 
> XBMC Git requires on YAJL now [1].
> 
> [1] https://github.com/xbmc/xbmc/commit/3565ad579e9b80f4be57db901d3fe44d9bfac87d
> 
> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
> ---
> I still have to problems.
> 
> 1. Is the correct recipe name yajl – as the project calls itself – or libyajl since it is a library?
> 2. During the first BitBake run, task package_stage fails with the following error (please note that here the used recipe name was `yajl`).
> 
> 	ERROR: Error executing a python function in /oe/openembedded/recipes/yajl/yajl_git.bb:
> 	ShellSyntaxError: Unexpected EOF
> 
> 	ERROR: The stack trace of python calls that resulted in this exception/failure was:
> 	ERROR:   File "do_package_stage", line 87, in <module>
> 	ERROR: 
> 	ERROR:   File "do_package_stage", line 81, in do_package_stage
> 	ERROR: 
> 	ERROR:   File "/oe/bitbake/lib/bb/build.py", line 171, in exec_func
> 	ERROR:     exec_func_shell(func, d, runfile, cwd=adir)
> 	ERROR: 
> 	ERROR:   File "/oe/bitbake/lib/bb/build.py", line 224, in exec_func_shell
> 	ERROR:     data.emit_func(function, script, d)
> 	ERROR: 
> 	ERROR:   File "/oe/bitbake/lib/bb/data.py", line 260, in emit_func
> 	ERROR:     newdeps = bb.codeparser.ShellParser().parse_shell(d.getVar(func, True))
> 	ERROR: 
> 	ERROR:   File "/oe/bitbake/lib/bb/codeparser.py", line 247, in parse_shell
> 	ERROR:     raise sherrors.ShellSyntaxError("Unexpected EOF")
> 	ERROR: 
> 	ERROR: The code that was being executed was:
> 	ERROR:      0083:    bb.build.exec_func("staging_package_installer", d)
> 	ERROR:      0084:    bb.utils.unlockfile(lf)
> 	ERROR:      0085:
> 	ERROR:      0086:
> 	ERROR:  *** 0087:do_package_stage(d)
> 	ERROR:      0088:
> 	ERROR: (file: 'do_package_stage', lineno: 87, function: <module>)
> 	ERROR:      0077:    oe_run(d, "cp -PpR %s.do_* %s/" % (stampfn, destdir))
> 	ERROR:      0078:
> 	ERROR:      0079:    pstage_set_pkgmanager(d)
> 	ERROR:      0080:    bb.build.exec_func("staging_helper", d)
> 	ERROR:  *** 0081:    bb.build.exec_func("staging_packager", d)
> 	ERROR:      0082:    lf = bb.utils.lockfile(bb.data.expand("/oe/build-angstrom-next/angstrom-dev/sysroots/staging.lock", d))
> 	ERROR:      0083:    bb.build.exec_func("staging_package_installer", d)
> 	ERROR:      0084:    bb.utils.unlockfile(lf)
> 	ERROR:      0085:
> 	ERROR: (file: 'do_package_stage', lineno: 81, function: do_package_stage)
> 	ERROR: Function 'do_package_stage' failed
> 	+ cd /oe/build-angstrom-next/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/yajl-git-r0/git
> 	+ staging_helper
> 	+ conffile=/oe/build-angstrom-next/angstrom-dev/pstage/opkg.conf
> 	+ mkdir -p /oe/build-angstrom-next/angstrom-dev/pstage/pstaging_lists
> 	+ arch=armv7a-linux-gnueabi
> 	+ '[' '!' -e /oe/build-angstrom-next/angstrom-dev/pstage/opkg.conf ']'
> 	++ grep -c ' armv7a-linux-gnueabi ' /oe/build-angstrom-next/angstrom-dev/pstage/opkg.conf
> 	+ '[' 1 -eq 0 ']'
> 	+ '[' '!' -e /oe/build-angstrom-next/angstrom-dev/usr/lib/opkg/info/ ']'
> 	+ '[' '!' -e /oe/build-angstrom-next/angstrom-dev/usr/lib/ipkg/ ']'

This happens with BitBake 1.12.x and master. Does anyone have an idea
what might be wrong.


Thanks,

Paul


> Running `bitbake yajl` afterward works fine then.
> ---
>  recipes/libyajl/libyajl_git.bb |   25 +++++++++++++++++++++++++
>  1 files changed, 25 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/libyajl/libyajl_git.bb
> 
> diff --git a/recipes/libyajl/libyajl_git.bb b/recipes/libyajl/libyajl_git.bb
> new file mode 100644
> index 0000000..eb3d821
> --- /dev/null
> +++ b/recipes/libyajl/libyajl_git.bb
> @@ -0,0 +1,25 @@
> +DESCRIPTION = "Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator."
> +AUTHOR = "Lloyd Hilaiel"
> +HOMEPAGE = "http://lloyd.github.com/yajl/"
> +SECTION = "libs
> +PRIORITY = "optional"
> +LICENSE = "ISC"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=74f541bd9a2b6c8e5d0714bcdc327f32"
> +
> +DEPENDS = "ruby"
> +
> +inherit gitpkgv
> +PKGV = "v${GITPKGVTAG}"
> +
> +# This gets reset to the proper version with PKGV above
> +PV = "git"
> +PR = "r0"
> +
> +inherit cmake pkgconfig
> +
> +SRCREV = "dbcba50b7785170d89bfeddaf2b41fe3f3ffacf4"
> +
> +SRC_URI = "git://github.com/lloyd/yajl;protocol=git \
> +          "
> +
> +S = "${WORKDIR}/git"
> -- 
> 1.7.5.4

Patch

diff --git a/recipes/libyajl/libyajl_git.bb b/recipes/libyajl/libyajl_git.bb
new file mode 100644
index 0000000..eb3d821
--- /dev/null
+++ b/recipes/libyajl/libyajl_git.bb
@@ -0,0 +1,25 @@ 
+DESCRIPTION = "Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator."
+AUTHOR = "Lloyd Hilaiel"
+HOMEPAGE = "http://lloyd.github.com/yajl/"
+SECTION = "libs
+PRIORITY = "optional"
+LICENSE = "ISC"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=74f541bd9a2b6c8e5d0714bcdc327f32"
+
+DEPENDS = "ruby"
+
+inherit gitpkgv
+PKGV = "v${GITPKGVTAG}"
+
+# This gets reset to the proper version with PKGV above
+PV = "git"
+PR = "r0"
+
+inherit cmake pkgconfig
+
+SRCREV = "dbcba50b7785170d89bfeddaf2b41fe3f3ffacf4"
+
+SRC_URI = "git://github.com/lloyd/yajl;protocol=git \
+          "
+
+S = "${WORKDIR}/git"