Skip to contentSkip to conversation

libyajl_git: Add Git dbcba50b7 version (initial recipe)

RFC PATCH In review Paul Menzel 1 participant 2 messages Jun 13, 2011 – Jun 19, 2011

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 libyajl_git: Add Git dbcba50b7 version (initial recipe)

Date: Mon, 13 Jun 2011 19:24:12 +0200

XBMC Git requires on YAJL now [1].

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

---
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
recipes/libyajl/libyajl_git.bb new file +25 -0
new file mode 100644
index 0000000..eb3d821
@@ -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"
Signature · 1 line
1.7.5.4
#1 lore raw

Am Dienstag, den 14.06.2011, 01:25 +0200 schrieb Paul Menzel:

Quoted 54 lines

Date: Mon, 13 Jun 2011 19:24:12 +0200

XBMC Git requires on YAJL now [1].

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

---
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

Quoted 8 lines

+ 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

Quoted 39 lines

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
recipes/libyajl/libyajl_git.bb new file +25 -0
new file mode 100644
index 0000000..eb3d821
@@ -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"
Signature · 1 line
1.7.5.4