added recipe for nodejs
PATCH v2 1/1 added recipe for nodejs
--- recipes/nodejs/files/libev-cross-cc.patch | 18 ++++++++++++ recipes/nodejs/files/node-cross-cc.patch | 14 ++++++++++ .../node-dont-include-hosts-usr-include.patch | 22 +++++++++++++++ recipes/nodejs/nodejs_0.2.0.bb | 28 ++++++++++++++++++++ 4 files changed, 82 insertions(+), 0 deletions(-) create mode 100644 recipes/nodejs/files/libev-cross-cc.patch create mode 100644 recipes/nodejs/files/node-cross-cc.patch create mode 100644 recipes/nodejs/files/node-dont-include-hosts-usr-include.patch create mode 100644 recipes/nodejs/nodejs_0.2.0.bb
recipes/nodejs/files/libev-cross-cc.patch new file +18 -0
@@ -0,0 +1,18 @@ +diff --git node-v0.2.0/deps/libev/wscript.orig node-v0.2.0/deps/libev/wscript +index 19e7bb2..f0a3d3b 100644 +--- node-v0.2.0/deps/libev/wscript.orig ++++ node-v0.2.0/deps/libev/wscript +@@ -52,7 +52,12 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True, ++ # TODO determine this dynamically ++ CROSS = True ++ execute = True ++ if CROSS: ++ execute = False ++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=execute, + msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT')
recipes/nodejs/files/node-cross-cc.patch new file +14 -0
@@ -0,0 +1,14 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index df9ef53..a55d464 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -326,6 +326,9 @@ def v8_cmd(bld, variant): + arch = "" + if bld.env['DEST_CPU'] == 'x86_64': + arch = "arch=x64" ++ # XXX Better support cross-compilation ++ else: ++ arch = "arch=" + bld.env['DEST_CPU'] + + if variant == "default": + mode = "release"
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +22 -0
@@ -0,0 +1,22 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index 3c5ebc5..905bd58 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -162,11 +162,12 @@ def configure(conf): + if Options.options.efence: + conf.check(lib='efence', libpath=['/usr/lib', '/usr/local/lib'], uselib_store='EFENCE') + +- if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"): +- # Note on Darwin/OS X: This will fail, but will still be used as the +- # execinfo stuff are part of the standard library. +- if sys.platform.startswith("freebsd"): +- conf.fatal("Install the libexecinfo port from /usr/ports/devel/libexecinfo.") ++ # OpenEmbedded doesn't like us checking here ++ #if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"): ++ # # Note on Darwin/OS X: This will fail, but will still be used as the ++ # # execinfo stuff are part of the standard library. ++ # if sys.platform.startswith("freebsd"): ++ # conf.fatal("Install the libexecinfo port from /usr/ports/devel/libexecinfo.") + + if not Options.options.without_ssl: + if conf.check_cfg(package='openssl',
recipes/nodejs/nodejs_0.2.0.bb new file +28 -0
@@ -0,0 +1,28 @@ +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT" +DEPENDS = "openssl" +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz \ + file://node-cross-cc.patch \ + file://libev-cross-cc.patch \ + file://node-dont-include-hosts-usr-include.patch \ +" +#file://libev-arm-cross.patch \ +SRC_URI[md5sum] = "99a6dacc44b3f9c6ec376ccb446dd0b8" +SRC_URI[sha256sum] = "3d3eff9287c9917af4044f3cef99ae5b17946710a71e83039de4fcb4b0a26631" +S = "${WORKDIR}/node-v${PV}" +do_configure () { + ./configure --prefix=${D} --without-snapshot +} +do_compile () { + make +} +do_install () { + #oe_runmake install # doesn't install to correct location + + # This works + install -d ${D}${bindir}/ + install -m 0755 ${S}/node ${D}${bindir}/ +} +FILES_${PN} = "${bindir}/node"
Signature · 1 line
1.6.0.4
bump
AJ ONeal
Quoted 138 lines · AJ ONeal
--- recipes/nodejs/files/libev-cross-cc.patch | 18 ++++++++++++ recipes/nodejs/files/node-cross-cc.patch | 14 ++++++++++ .../node-dont-include-hosts-usr-include.patch | 22 +++++++++++++++ recipes/nodejs/nodejs_0.2.0.bb | 28 ++++++++++++++++++++ 4 files changed, 82 insertions(+), 0 deletions(-) create mode 100644 recipes/nodejs/files/libev-cross-cc.patch create mode 100644 recipes/nodejs/files/node-cross-cc.patch create mode 100644 recipes/nodejs/files/node-dont-include-hosts-usr-include.patch create mode 100644 recipes/nodejs/nodejs_0.2.0.bbrecipes/nodejs/files/libev-cross-cc.patch new file +1
-0@@ -0,0 +1,18 @@ +diff --git node-v0.2.0/deps/libev/wscript.orignode-v0.2.0/deps/libev/wscript
recipes/nodejs/files/libev-cross-cc.patch new file +8
-0+index 19e7bb2..f0a3d3b 100644 +--- node-v0.2.0/deps/libev/wscript.orig ++++ node-v0.2.0/deps/libev/wscript +@@ -52,7 +52,12 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL",execute=True,
++ # TODO determine this dynamically ++ CROSS = True ++ execute = True ++ if CROSS:++ execute = False
++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=execute,recipes/nodejs/files/libev-cross-cc.patch new file +3
-0+ msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT')recipes/nodejs/files/node-cross-cc.patch new file +14
-0@@ -0,0 +1,14 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index df9ef53..a55d464 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -326,6 +326,9 @@ def v8_cmd(bld, variant): + arch = "" + if bld.env['DEST_CPU'] == 'x86_64': + arch = "arch=x64" ++ # XXX Better support cross-compilation ++ else: ++ arch = "arch=" + bld.env['DEST_CPU'] + + if variant == "default": + mode = "release"recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +7
-0@@ -0,0 +1,22 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index 3c5ebc5..905bd58 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -162,11 +162,12 @@ def configure(conf): + if Options.options.efence: + conf.check(lib='efence', libpath=['/usr/lib', '/usr/local/lib'],uselib_store='EFENCE')
+
+- if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):+- # Note on Darwin/OS X: This will fail, but will still be used as the +- # execinfo stuff are part of the standard library. +- if sys.platform.startswith("freebsd"): +- conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")
++ # OpenEmbedded doesn't like us checking here
++ #if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):++ # # Note on Darwin/OS X: This will fail, but will still be used as the ++ # # execinfo stuff are part of the standard library. ++ # if sys.platform.startswith("freebsd"): ++ # conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +3
-0+ + if not Options.options.without_ssl: + if conf.check_cfg(package='openssl',recipes/nodejs/ renamed from recipes/nodejs/nodejs_0.2.0.bb +0
-0nodejs_0.2.0.bb
new file mode 100644
index 0000000..83bfa2erecipes/nodejs/nodejs_0.2.0.bb new file +13
-0@@ -0,0 +1,28 @@ +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT" +DEPENDS = "openssl" +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz \ + file://node-cross-cc.patch \ + file://libev-cross-cc.patch \ + file://node-dont-include-hosts-usr-include.patch \ +" +#file://libev-arm-cross.patch \ +SRC_URI[md5sum] = "99a6dacc44b3f9c6ec376ccb446dd0b8" +SRC_URI[sha256sum] ="
3d3eff9287c9917af4044f3cef99ae5b17946710a71e83039de4fcb4b0a26631"recipes/nodejs/nodejs_0.2.0.bb new file +15
-1+S = "${WORKDIR}/node-v${PV}" +do_configure () { + ./configure --prefix=${D} --without-snapshot +} +do_compile () { + make +} +do_install () { + #oe_runmake install # doesn't install to correct location + + # This works + install -d ${D}${bindir}/ + install -m 0755 ${S}/node ${D}${bindir}/ +} +FILES_${PN} = "${bindir}/node" --1.6.0.4
Dear AJ,
sorry I overlooked that message. I will reply to your other message tomorrow.
Am Montag, den 23.08.2010, 17:22 -0600 schrieb AJ ONeal:
Quoted 7 lines
bump
AJ ONeal
Quoted 1 line · AJ ONeal
---
After this line a short summary of the changes compared to previous iterations would be great. Git will ignore this when applying the patch but it eases the work of the reviewers.
Quoted 89 lines
Quoted 89 lines
recipes/nodejs/files/libev-cross-cc.patch | 18 ++++++++++++ recipes/nodejs/files/node-cross-cc.patch | 14 ++++++++++ .../node-dont-include-hosts-usr-include.patch | 22 +++++++++++++++ recipes/nodejs/nodejs_0.2.0.bb | 28 ++++++++++++++++++++ 4 files changed, 82 insertions(+), 0 deletions(-) create mode 100644 recipes/nodejs/files/libev-cross-cc.patch create mode 100644 recipes/nodejs/files/node-cross-cc.patch create mode 100644 recipes/nodejs/files/node-dont-include-hosts-usr-include.patch create mode 100644 recipes/nodejs/nodejs_0.2.0.bbrecipes/nodejs/files/libev-cross-cc.patch new file +1
-0@@ -0,0 +1,18 @@ +diff --git node-v0.2.0/deps/libev/wscript.orignode-v0.2.0/deps/libev/wscript
recipes/nodejs/files/libev-cross-cc.patch new file +8
-0+index 19e7bb2..f0a3d3b 100644 +--- node-v0.2.0/deps/libev/wscript.orig ++++ node-v0.2.0/deps/libev/wscript +@@ -52,7 +52,12 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL",execute=True,
++ # TODO determine this dynamically ++ CROSS = True ++ execute = True ++ if CROSS:++ execute = False
++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=execute,recipes/nodejs/files/libev-cross-cc.patch new file +3
-0+ msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT')recipes/nodejs/files/node-cross-cc.patch new file +14
-0@@ -0,0 +1,14 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index df9ef53..a55d464 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -326,6 +326,9 @@ def v8_cmd(bld, variant): + arch = "" + if bld.env['DEST_CPU'] == 'x86_64': + arch = "arch=x64" ++ # XXX Better support cross-compilation ++ else: ++ arch = "arch=" + bld.env['DEST_CPU'] + + if variant == "default": + mode = "release"recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +7
-0@@ -0,0 +1,22 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index 3c5ebc5..905bd58 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -162,11 +162,12 @@ def configure(conf): + if Options.options.efence: + conf.check(lib='efence', libpath=['/usr/lib', '/usr/local/lib'],uselib_store='EFENCE')
+
+- if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):+- # Note on Darwin/OS X: This will fail, but will still be used as the +- # execinfo stuff are part of the standard library. +- if sys.platform.startswith("freebsd"): +- conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")
++ # OpenEmbedded doesn't like us checking here
++ #if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):
Quoted 8 lines
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch line 22
Quoted 8 lines
++ # # Note on Darwin/OS X: This will fail, but will still be used as the ++ # # execinfo stuff are part of the standard library. ++ # if sys.platform.startswith("freebsd"): ++ # conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +3
-0+ + if not Options.options.without_ssl: + if conf.check_cfg(package='openssl',
Did you sent these patches upstream? Maybe document that in the patch headers. There is also a page in the Wiki regarding this.
Quoted 10 lines
Quoted 10 lines
recipes/nodejs/ renamed from recipes/nodejs/nodejs_0.2.0.bb +0
-0nodejs_0.2.0.bb
new file mode 100644
index 0000000..83bfa2erecipes/nodejs/nodejs_0.2.0.bb new file +3
-0@@ -0,0 +1,28 @@ +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT"
Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb line 11
Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb new file +8
-0+DEPENDS = "openssl" +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz \ + file://node-cross-cc.patch \ + file://libev-cross-cc.patch \ + file://node-dont-include-hosts-usr-include.patch \ +" +#file://libev-arm-cross.patch \
Is that commented line needed?
Quoted 7 lines
recipes/nodejs/nodejs_0.2.0.bb line 17
Quoted 7 lines
recipes/nodejs/nodejs_0.2.0.bb new file +2
-0+SRC_URI[md5sum] = "99a6dacc44b3f9c6ec376ccb446dd0b8" +SRC_URI[sha256sum] ="
3d3eff9287c9917af4044f3cef99ae5b17946710a71e83039de4fcb4b0a26631"recipes/nodejs/nodejs_0.2.0.bb new file +4
-0+S = "${WORKDIR}/node-v${PV}" +do_configure () { + ./configure --prefix=${D} --without-snapshot +}
Can you use EXTRA_OECONF (Do git grep EXTRA_OECONF in the repository to get examples.)
I think you might need inherit autotools, but I am not sure.
Quoted 3 lines
recipes/nodejs/nodejs_0.2.0.bb line 20
Quoted 3 lines
recipes/nodejs/nodejs_0.2.0.bb new file +3
-0+do_compile () { + make +}
Is that needed? What about Frans’ suggestion?
Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb line 28
Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb new file +8
-0+do_install () { + #oe_runmake install # doesn't install to correct location + + # This works + install -d ${D}${bindir}/ + install -m 0755 ${S}/node ${D}${bindir}/ +} +FILES_${PN} = "${bindir}/node"
Why is that needed?
I am a beginner, so I hope my comments are correct. If so please submit a v3 and do not forget your Signed-off-by line.
Thanks,
Paul
Quoted 118 lines · AJ ONeal
---
recipes/nodejs/files/libev-cross-cc.patch | 18 ++++++++++++recipes/nodejs/files/node-cross-cc.patch| 14 ++++++++++.../node-dont-include-hosts-usr-include.patch| 22 +++++++++++++++ recipes/nodejs/nodejs_0.2.0.bb | 28 ++++++++++++++++++++4 files changed, 82 insertions(+), 0 deletions(-)create mode 100644
recipes/nodejs/files/libev-cross-cc.patch
create mode 100644recipes/nodejs/files/node-cross-cc.patch
create mode 100644recipes/nodejs/files/node-dont-include-hosts-usr-include.patchcreate mode 100644 recipes/nodejs/nodejs_0.2.0.bbrecipes/nodejs/files/libev-cross-cc.patch new file +18
-0@@ -0,0 +1,18 @@ +diff --git node-v0.2.0/deps/libev/wscript.orig node-v0.2.0/deps/libev/wscript +index 19e7bb2..f0a3d3b 100644 +--- node-v0.2.0/deps/libev/wscript.orig ++++ node-v0.2.0/deps/libev/wscript +@@ -52,7 +52,12 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True, ++ # TODO determine this dynamically ++ CROSS = True ++ execute = True ++ if CROSS: ++ execute = False ++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=execute, + msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT')recipes/nodejs/files/node-cross-cc.patch new file +14
-0@@ -0,0 +1,14 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index df9ef53..a55d464 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -326,6 +326,9 @@ def v8_cmd(bld, variant): + arch = "" + if bld.env['DEST_CPU'] == 'x86_64': + arch = "arch=x64" ++ # XXX Better support cross-compilation ++ else: ++ arch = "arch=" + bld.env['DEST_CPU'] + + if variant == "default": + mode = "release"recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +22
-0@@ -0,0 +1,22 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index 3c5ebc5..905bd58 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -162,11 +162,12 @@ def configure(conf): + if Options.options.efence: + conf.check(lib='efence', libpath=['/usr/lib', '/usr/local/lib'], uselib_store='EFENCE') + +- if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"): +- # Note on Darwin/OS X: This will fail, but will still be used as the +- # execinfo stuff are part of the standard library. +- if sys.platform.startswith("freebsd"): +- conf.fatal("Install the libexecinfo port from /usr/ports/devel/libexecinfo.") ++ # OpenEmbedded doesn't like us checking here ++ #if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"): ++ # # Note on Darwin/OS X: This will fail, but will still be used as the ++ # # execinfo stuff are part of the standard library. ++ # if sys.platform.startswith("freebsd"): ++ # conf.fatal("Install the libexecinfo port from /usr/ports/devel/libexecinfo.") + + if not Options.options.without_ssl: + if conf.check_cfg(package='openssl',recipes/nodejs/nodejs_0.2.0.bb new file +28
-1@@ -0,0 +1,28 @@ +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT" +DEPENDS = "openssl" +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz \ + file://node-cross-cc.patch \ + file://libev-cross-cc.patch \ + file://node-dont-include-hosts-usr-include.patch \ +" +#file://libev-arm-cross.patch \ +SRC_URI[md5sum] = "99a6dacc44b3f9c6ec376ccb446dd0b8" +SRC_URI[sha256sum] = "3d3eff9287c9917af4044f3cef99ae5b17946710a71e83039de4fcb4b0a26631" +S = "${WORKDIR}/node-v${PV}" +do_configure () { + ./configure --prefix=${D} --without-snapshot +} +do_compile () { + make +} +do_install () { + #oe_runmake install # doesn't install to correct location + + # This works + install -d ${D}${bindir}/ + install -m 0755 ${S}/node ${D}${bindir}/ +} +FILES_${PN} = "${bindir}/node" --
Quoted 1 line
1.6.0.4
I confirmed that this builds fine--haven't run-tested it yet. 'git am' gave me some trailing whitespace warnings, but I can't otherwise comment on the patch.
Quoted 142 lines · Paul Menzel
Dear AJ,
sorry I overlooked that message. I will reply to your other message tomorrow.
Am Montag, den 23.08.2010, 17:22 -0600 schrieb AJ ONeal:
Quoted 7 lines
bump
AJ ONeal
Quoted 1 line · AJ ONeal
---
After this line a short summary of the changes compared to previous iterations would be great. Git will ignore this when applying the patch but it eases the work of the reviewers.
Quoted 89 lines
Quoted 89 lines
recipes/nodejs/files/libev-cross-cc.patch | 18 ++++++++++++ recipes/nodejs/files/node-cross-cc.patch | 14 ++++++++++ .../node-dont-include-hosts-usr-include.patch | 22 +++++++++++++++ recipes/nodejs/nodejs_0.2.0.bb | 28 ++++++++++++++++++++ 4 files changed, 82 insertions(+), 0 deletions(-) create mode 100644 recipes/nodejs/files/libev-cross-cc.patch create mode 100644 recipes/nodejs/files/node-cross-cc.patch create mode 100644 recipes/nodejs/files/node-dont-include-hosts-usr-include.patch create mode 100644 recipes/nodejs/nodejs_0.2.0.bbrecipes/nodejs/files/libev-cross-cc.patch new file +1
-0@@ -0,0 +1,18 @@ +diff --git node-v0.2.0/deps/libev/wscript.orignode-v0.2.0/deps/libev/wscript
recipes/nodejs/files/libev-cross-cc.patch new file +8
-0+index 19e7bb2..f0a3d3b 100644 +--- node-v0.2.0/deps/libev/wscript.orig ++++ node-v0.2.0/deps/libev/wscript +@@ -52,7 +52,12 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL",execute=True,
++ # TODO determine this dynamically ++ CROSS = True ++ execute = True ++ if CROSS:++ execute = False
++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=execute,recipes/nodejs/files/libev-cross-cc.patch new file +3
-0+ msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT')recipes/nodejs/files/node-cross-cc.patch new file +14
-0@@ -0,0 +1,14 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index df9ef53..a55d464 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -326,6 +326,9 @@ def v8_cmd(bld, variant): + arch = "" + if bld.env['DEST_CPU'] == 'x86_64': + arch = "arch=x64" ++ # XXX Better support cross-compilation ++ else: ++ arch = "arch=" + bld.env['DEST_CPU'] + + if variant == "default": + mode = "release"recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +7
-0@@ -0,0 +1,22 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index 3c5ebc5..905bd58 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -162,11 +162,12 @@ def configure(conf): + if Options.options.efence: + conf.check(lib='efence', libpath=['/usr/lib', '/usr/local/lib'],uselib_store='EFENCE')
+
+- if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):+- # Note on Darwin/OS X: This will fail, but will still be used as the +- # execinfo stuff are part of the standard library. +- if sys.platform.startswith("freebsd"): +- conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")
++ # OpenEmbedded doesn't like us checking here
++ #if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):Quoted 8 lines
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch line 22
Quoted 8 lines
++ # # Note on Darwin/OS X: This will fail, but will still be used as the ++ # # execinfo stuff are part of the standard library. ++ # if sys.platform.startswith("freebsd"): ++ # conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +3
-0+ + if not Options.options.without_ssl: + if conf.check_cfg(package='openssl',Did you sent these patches upstream? Maybe document that in the patch headers. There is also a page in the Wiki regarding this.
Quoted 10 lines
Quoted 10 lines
recipes/nodejs/ renamed from recipes/nodejs/nodejs_0.2.0.bb +0
-0nodejs_0.2.0.bb
new file mode 100644
index 0000000..83bfa2erecipes/nodejs/nodejs_0.2.0.bb new file +3
-0@@ -0,0 +1,28 @@ +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT"Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb line 11
Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb new file +8
-0+DEPENDS = "openssl" +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz \ + file://node-cross-cc.patch \ + file://libev-cross-cc.patch \ + file://node-dont-include-hosts-usr-include.patch \ +" +#file://libev-arm-cross.patch \Is that commented line needed?
Quoted 10 lines
Quoted 7 lines
recipes/nodejs/nodejs_0.2.0.bb line 17
Quoted 7 lines
recipes/nodejs/nodejs_0.2.0.bb new file +2
-0+SRC_URI[md5sum] = "99a6dacc44b3f9c6ec376ccb446dd0b8" +SRC_URI[sha256sum] ="
3d3eff9287c9917af4044f3cef99ae5b17946710a71e83039de4fcb4b0a26631"recipes/nodejs/nodejs_0.2.0.bb new file +4
-0+S = "${WORKDIR}/node-v${PV}" +do_configure () { + ./configure --prefix=${D} --without-snapshot +}Can you use
EXTRA_OECONF(Dogit grep EXTRA_OECONFin the repository to get examples.)
its ok. Since its override the do_configure
Quoted 2 lines
I think you might need
inherit autotools, but I am not sure.
no this package does not use autotools it not needed.
Quoted 6 lines
Quoted 4 lines
recipes/nodejs/nodejs_0.2.0.bb line 20
Quoted 4 lines
recipes/nodejs/nodejs_0.2.0.bb new file +3
-0+do_compile () { + make +}Is that needed? What about Frans’ suggestion?
should use oe_runmake instea of bare make to exploit parallelism.
Quoted 12 lines
Quoted 9 lines
recipes/nodejs/nodejs_0.2.0.bb line 28
Quoted 9 lines
recipes/nodejs/nodejs_0.2.0.bb new file +8
-0+do_install () { + #oe_runmake install # doesn't install to correct location + + # This works + install -d ${D}${bindir}/ + install -m 0755 ${S}/node ${D}${bindir}/ +} +FILES_${PN} = "${bindir}/node"Why is that needed?
Quoted 2 lines
I am a beginner, so I hope my comments are correct. If so please submit a v3 and do not forget your Signed-off-by line.
right.
Quoted 12 lines
Thanks,
Paul
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
I'll resubmit this weekend and put that patch tutorial on the wiki too.
AJ ONeal
Quoted 212 lines · Khem Raj
Quoted 12 lines · Paul Menzel
Dear AJ,
sorry I overlooked that message. I will reply to your other message tomorrow.
Am Montag, den 23.08.2010, 17:22 -0600 schrieb AJ ONeal:
Quoted 4 lines
bump
AJ ONeal
Quoted 9 lines
Quoted 3 lines · AJ ONeal
Quoted 2 lines
---
After this line a short summary of the changes compared to previous iterations would be great. Git will ignore this when applying the patch but it eases the work of the reviewers.
Quoted 1 line
Quoted 1 line
recipes/nodejs/files/libev-cross-cc.patch | 18++++++++++++
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
recipes/nodejs/files/node-cross-cc.patch | 14 ++++++++++ .../node-dont-include-hosts-usr-include.patch | 22+++++++++++++++
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
recipes/nodejs/nodejs_0.2.0.bb | 28 ++++++++++++++++++++ 4 files changed, 82 insertions(+), 0 deletions(-) create mode 100644 recipes/nodejs/files/libev-cross-cc.patch create mode 100644 recipes/nodejs/files/node-cross-cc.patch create mode 100644 recipes/nodejs/files/node-dont-include-hosts-usr-include.patch create mode 100644 recipes/nodejs/nodejs_0.2.0.bbrecipes/nodejs/files/libev-cross-cc.patch new file +1
-0@@ -0,0 +1,18 @@ +diff --git node-v0.2.0/deps/libev/wscript.orignode-v0.2.0/deps/libev/wscript
recipes/nodejs/files/libev-cross-cc.patch new file +8
-0+index 19e7bb2..f0a3d3b 100644 +--- node-v0.2.0/deps/libev/wscript.orig ++++ node-v0.2.0/deps/libev/wscript +@@ -52,7 +52,12 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL",execute=True,
++ # TODO determine this dynamically ++ CROSS = True ++ execute = True ++ if CROSS:++ execute = False
++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=execute,recipes/nodejs/files/libev-cross-cc.patch new file +3
-0+ msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT')recipes/nodejs/files/node-cross-cc.patch new file +7
-0@@ -0,0 +1,14 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index df9ef53..a55d464 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -326,6 +326,9 @@ def v8_cmd(bld, variant): + arch = "" + if bld.env['DEST_CPU'] == 'x86_64':Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes/nodejs/files/node-cross-cc.patch new file +7
-0+ arch = "arch=x64" ++ # XXX Better support cross-compilation ++ else: ++ arch = "arch=" + bld.env['DEST_CPU'] + + if variant == "default": + mode = "release"diff --git
a/recipes/nodejs/files/node-dont-include-hosts-usr-include.patchQuoted 5 lines
Quoted 5 lines
Quoted 5 lines
b/recipes/nodejs/files/node-dont-include-hosts-usr-include.patchnew file mode 100644
index 0000000..edbf7c4recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +0
-0Quoted 8 lines
Quoted 8 lines
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch line 7
Quoted 8 lines
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +7
-0@@ -0,0 +1,22 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index 3c5ebc5..905bd58 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -162,11 +162,12 @@ def configure(conf): + if Options.options.efence: + conf.check(lib='efence', libpath=['/usr/lib','
/usr/local/lib'],Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
uselib_store='EFENCE')
+
+- if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):
+- # Note on Darwin/OS X: This will fail, but will still be usedas the
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
+- # execinfo stuff are part of the standard library. +- if sys.platform.startswith("freebsd"): +- conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")
++ # OpenEmbedded doesn't like us checking here
++ #if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):
++ # # Note on Darwin/OS X: This will fail, but will still be usedas the
Quoted 32 lines
Quoted 7 lines
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch line 22
Quoted 7 lines
++ # # execinfo stuff are part of the standard library. ++ # if sys.platform.startswith("freebsd"): ++ # conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +3
-0+ + if not Options.options.without_ssl: + if conf.check_cfg(package='openssl',Did you sent these patches upstream? Maybe document that in the patch headers. There is also a page in the Wiki regarding this.
Quoted 10 lines
Quoted 10 lines
recipes/nodejs/ renamed from recipes/nodejs/nodejs_0.2.0.bb +0
-0nodejs_0.2.0.bb
new file mode 100644
index 0000000..83bfa2erecipes/nodejs/nodejs_0.2.0.bb new file +3
-0@@ -0,0 +1,28 @@ +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT"Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb line 11
Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb new file +8
-0+DEPENDS = "openssl" +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz \ + file://node-cross-cc.patch \ + file://libev-cross-cc.patch \ + file://node-dont-include-hosts-usr-include.patch \ +" +#file://libev-arm-cross.patch \Is that commented line needed?
Quoted 10 lines
Quoted 7 lines
recipes/nodejs/nodejs_0.2.0.bb line 17
Quoted 7 lines
recipes/nodejs/nodejs_0.2.0.bb new file +2
-0+SRC_URI[md5sum] = "99a6dacc44b3f9c6ec376ccb446dd0b8" +SRC_URI[sha256sum] ="
3d3eff9287c9917af4044f3cef99ae5b17946710a71e83039de4fcb4b0a26631"recipes/nodejs/nodejs_0.2.0.bb new file +4
-0+S = "${WORKDIR}/node-v${PV}" +do_configure () { + ./configure --prefix=${D} --without-snapshot +}Can you use
EXTRA_OECONF(Dogit grep EXTRA_OECONFin the repository to get examples.)its ok. Since its override the
do_configureQuoted 2 lines
I think you might need
inherit autotools, but I am not sure.no this package does not use autotools it not needed.
Quoted 6 lines
Quoted 4 lines
recipes/nodejs/nodejs_0.2.0.bb line 20
Quoted 4 lines
recipes/nodejs/nodejs_0.2.0.bb new file +3
-0+do_compile () { + make +}Is that needed? What about Frans’ suggestion?
should use
oe_runmakeinstea of bare make to exploit parallelism.Quoted 12 lines
Quoted 9 lines
recipes/nodejs/nodejs_0.2.0.bb line 28
Quoted 9 lines
recipes/nodejs/nodejs_0.2.0.bb new file +8
-0+do_install () { + #oe_runmake install # doesn't install to correct location + + # This works + install -d ${D}${bindir}/ + install -m 0755 ${S}/node ${D}${bindir}/ +} +FILES_${PN} = "${bindir}/node"Why is that needed?
Quoted 2 lines
I am a beginner, so I hope my comments are correct. If so please submit a v3 and do not forget your Signed-off-by line.
right.
Quoted 4 lines
Thanks,
Quoted 8 lines
Paul
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Upstream is making some changes so that my patches probably won't be necessary.
I'm going to wait a week or two and I'll resubmit once node-v0.2.1 comes out which will most likely include the changes.
AJ ONeal
Quoted 223 lines · AJ ONeal
I'll resubmit this weekend and put that patch tutorial on the wiki too.
AJ ONeal
Quoted 213 lines · Khem Raj
Quoted 12 lines · Paul Menzel
Dear AJ,
sorry I overlooked that message. I will reply to your other message tomorrow.
Am Montag, den 23.08.2010, 17:22 -0600 schrieb AJ ONeal:
Quoted 4 lines
bump
AJ ONeal
Quoted 9 lines
Quoted 3 lines · AJ ONeal
Quoted 2 lines
---
After this line a short summary of the changes compared to previous iterations would be great. Git will ignore this when applying the patch but it eases the work of the reviewers.
Quoted 1 line
Quoted 1 line
recipes/nodejs/files/libev-cross-cc.patch | 18++++++++++++
Quoted 1 line
Quoted 1 line
Quoted 1 line
recipes/nodejs/files/node-cross-cc.patch | 14++++++++++
Quoted 1 line
Quoted 1 line
Quoted 1 line
.../node-dont-include-hosts-usr-include.patch | 22+++++++++++++++
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
recipes/nodejs/nodejs_0.2.0.bb | 28 ++++++++++++++++++++ 4 files changed, 82 insertions(+), 0 deletions(-) create mode 100644 recipes/nodejs/files/libev-cross-cc.patch create mode 100644 recipes/nodejs/files/node-cross-cc.patch create mode 100644 recipes/nodejs/files/node-dont-include-hosts-usr-include.patch create mode 100644 recipes/nodejs/nodejs_0.2.0.bbrecipes/nodejs/files/libev-cross-cc.patch new file +1
-0@@ -0,0 +1,18 @@ +diff --git node-v0.2.0/deps/libev/wscript.orignode-v0.2.0/deps/libev/wscript
recipes/nodejs/files/libev-cross-cc.patch new file +8
-0+index 19e7bb2..f0a3d3b 100644 +--- node-v0.2.0/deps/libev/wscript.orig ++++ node-v0.2.0/deps/libev/wscript +@@ -52,7 +52,12 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL",execute=True,
++ # TODO determine this dynamically ++ CROSS = True ++ execute = True ++ if CROSS:++ execute = False
++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=execute,recipes/nodejs/files/libev-cross-cc.patch new file +3
-0+ msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT')recipes/nodejs/files/node-cross-cc.patch new file +7
-0@@ -0,0 +1,14 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index df9ef53..a55d464 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -326,6 +326,9 @@ def v8_cmd(bld, variant): + arch = "" + if bld.env['DEST_CPU'] == 'x86_64':Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes/nodejs/files/node-cross-cc.patch new file +7
-0+ arch = "arch=x64" ++ # XXX Better support cross-compilation ++ else: ++ arch = "arch=" + bld.env['DEST_CPU'] + + if variant == "default": + mode = "release"diff --git
a/recipes/nodejs/files/node-dont-include-hosts-usr-include.patchQuoted 5 lines
Quoted 5 lines
Quoted 5 lines
b/recipes/nodejs/files/node-dont-include-hosts-usr-include.patchnew file mode 100644
index 0000000..edbf7c4recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +0
-0Quoted 8 lines
Quoted 8 lines
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch line 7
Quoted 8 lines
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +7
-0@@ -0,0 +1,22 @@ +diff --git node-v0.2.0/wscript.orig node-v0.2.0/wscript +index 3c5ebc5..905bd58 100644 +--- node-v0.2.0/wscript.orig ++++ node-v0.2.0/wscript +@@ -162,11 +162,12 @@ def configure(conf): + if Options.options.efence: + conf.check(lib='efence', libpath=['/usr/lib','
/usr/local/lib'],Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
uselib_store='EFENCE')
+
+- if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):
+- # Note on Darwin/OS X: This will fail, but will still be usedas the
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
+- # execinfo stuff are part of the standard library. +- if sys.platform.startswith("freebsd"): +- conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")
++ # OpenEmbedded doesn't like us checking here
++ #if not conf.check(lib="execinfo", includes=['/usr/include', '/usr/local/include'], libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):
++ # # Note on Darwin/OS X: This will fail, but will still be usedas the
Quoted 32 lines
Quoted 7 lines
recipes/nodejs/files/node-dont-include-hosts-usr-include.patch line 22
Quoted 7 lines
++ # # execinfo stuff are part of the standard library. ++ # if sys.platform.startswith("freebsd"): ++ # conf.fatal("Install the libexecinfo port from
/usr/ports/devel/libexecinfo.")recipes/nodejs/files/node-dont-include-hosts-usr-include.patch new file +3
-0+ + if not Options.options.without_ssl: + if conf.check_cfg(package='openssl',Did you sent these patches upstream? Maybe document that in the patch headers. There is also a page in the Wiki regarding this.
Quoted 10 lines
Quoted 10 lines
recipes/nodejs/ renamed from recipes/nodejs/nodejs_0.2.0.bb +0
-0nodejs_0.2.0.bb
new file mode 100644
index 0000000..83bfa2erecipes/nodejs/nodejs_0.2.0.bb new file +3
-0@@ -0,0 +1,28 @@ +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT"Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb line 11
Quoted 8 lines
recipes/nodejs/nodejs_0.2.0.bb new file +8
-0+DEPENDS = "openssl" +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz<http://nodejs.org/dist/node-v$%7BPV%7D.tar.gz>\ + file://node-cross-cc.patch \ + file://libev-cross-cc.patch \ + file://node-dont-include-hosts-usr-include.patch \ +" +#file://libev-arm-cross.patch \Is that commented line needed?
Quoted 10 lines
Quoted 7 lines
recipes/nodejs/nodejs_0.2.0.bb line 17
Quoted 7 lines
recipes/nodejs/nodejs_0.2.0.bb new file +2
-0+SRC_URI[md5sum] = "99a6dacc44b3f9c6ec376ccb446dd0b8" +SRC_URI[sha256sum] ="
3d3eff9287c9917af4044f3cef99ae5b17946710a71e83039de4fcb4b0a26631"recipes/nodejs/nodejs_0.2.0.bb new file +4
-0+S = "${WORKDIR}/node-v${PV}" +do_configure () { + ./configure --prefix=${D} --without-snapshot +}Can you use
EXTRA_OECONF(Dogit grep EXTRA_OECONFin the repository to get examples.)its ok. Since its override the
do_configureQuoted 2 lines
I think you might need
inherit autotools, but I am not sure.no this package does not use autotools it not needed.
Quoted 6 lines
Quoted 4 lines
recipes/nodejs/nodejs_0.2.0.bb line 20
Quoted 4 lines
recipes/nodejs/nodejs_0.2.0.bb new file +3
-0+do_compile () { + make +}Is that needed? What about Frans’ suggestion?
should use
oe_runmakeinstea of bare make to exploit parallelism.Quoted 12 lines
Quoted 9 lines
recipes/nodejs/nodejs_0.2.0.bb line 28
Quoted 9 lines
recipes/nodejs/nodejs_0.2.0.bb new file +8
-0+do_install () { + #oe_runmake install # doesn't install to correct location + + # This works + install -d ${D}${bindir}/ + install -m 0755 ${S}/node ${D}${bindir}/ +} +FILES_${PN} = "${bindir}/node"Why is that needed?
Quoted 2 lines
I am a beginner, so I hope my comments are correct. If so please submit a v3 and do not forget your Signed-off-by line.
right.
Quoted 4 lines
Thanks,
Quoted 8 lines
Paul
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel