Skip to contentSkip to conversation

WIP: cloud9: created

meta-oe Jason Kridner 4 participants 4 messages Sep 24, 2011 – Sep 26, 2011

lore
Share & tools
lore
#0 lore raw

Cloud9 is a web-browser based IDE. This application should support multiple architectures as long as they have node.js and a build of node-o3-xml that is dropped into this system. Ideally, that library would be added separately as a system-dependent portion, because everything else should be ISA independent.

Advice on cleaning up this recipe is welcome. I will continue to improve it as I understand how. It is rather useful as-is.

---
 meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb |   28 +++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +28 -0
new file mode 100644
index 0000000..626332f
@@ -0,0 +1,28 @@
+DESCRIPTION = "Meet Cloud9, development-as-a-service for Javascripters and other developers"
+HOMEPAGE = "http://c9.io"
+RDEPENDS = "nodejs"
+
+SRC_URI = "git://github.com/jadonk/cloud9.git;protocol=git \
+"
+
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4784c3bcff601fd8f9515f52a11e7018"
+
+SRCREV = "08bae1d1cc2ba9f7f883a25afd07f0339a82fa8b"
+S = "${WORKDIR}/git"
+
+do_configure_prepend () {
+ git submodule update --init --recursive
+}
+
+do_compile () {
+}
+
+do_install () {
+ install -m 0755 -d ${D}/usr/share/cloud9 ${D}${bindir}
+ rsync -r --exclude=".*" ${S}/* ${D}/usr/share/cloud9
+ touch ${D}${bindir}/cloud9
+ echo "#!/bin/sh" > ${D}${bindir}/cloud9
+ echo "node /usr/share/cloud9/bin/cloud9.js -l 0.0.0.0 -w /home/root -p 3000" >> ${D}${bindir}/cloud9
+ chmod 0755 ${D}${bindir}/cloud9
+}
Signature · 1 line
1.7.4.1
#1 lore raw

Dear Jason,

Am Samstag, den 24.09.2011, 03:08 -0400 schrieb Jason Kridner:

Quoted 7 lines

Cloud9 is a web-browser based IDE. This application should support multiple architectures as long as they have node.js and a build of node-o3-xml that is dropped into this system. Ideally, that library would be added separately as a system-dependent portion, because everything else should be ISA independent.

Advice on cleaning up this recipe is welcome.

what problems to do you see?

Quoted 13 lines

I will continue to improve it as I understand how. It is rather useful as-is.

---
 meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb |   28 +++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +0 -0
new file mode 100644
index 0000000..626332f

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 3

Quoted 3 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +3 -0
@@ -0,0 +1,28 @@
+DESCRIPTION = "Meet Cloud9, development-as-a-service for Javascripters and other developers"
+HOMEPAGE = "http://c9.io"
+RDEPENDS = "nodejs"

This belongs further down too.

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 6

Quoted 3 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +3 -0
+
+SRC_URI = "git://github.com/jadonk/cloud9.git;protocol=git \
+"

Please put that below the license stuff [1].

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 19

Quoted 13 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +13 -0
+
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4784c3bcff601fd8f9515f52a11e7018"
+
+SRCREV = "08bae1d1cc2ba9f7f883a25afd07f0339a82fa8b"
+S = "${WORKDIR}/git"
+
+do_configure_prepend () {
+ git submodule update --init --recursive
+}
+
+do_compile () {
+}

Maybe add comments why the above overrides are needed.

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 23

Quoted 4 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +4 -0
+
+do_install () {
+ install -m 0755 -d ${D}/usr/share/cloud9 ${D}${bindir}
+ rsync -r --exclude=".*" ${S}/* ${D}/usr/share/cloud9

Should rsync be put in DEPENDS?

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 28

Quoted 5 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +5 -0
+ touch ${D}${bindir}/cloud9
+ echo "#!/bin/sh" > ${D}${bindir}/cloud9
+ echo "node /usr/share/cloud9/bin/cloud9.js -l 0.0.0.0 -w /home/root -p 3000" >> ${D}${bindir}/cloud9
+ chmod 0755 ${D}${bindir}/cloud9
+}

Thanks,

Paul

[1] http://openembedded.org/index.php?title=Styleguide

#2 lore raw
Quoted 9 lines · Paul Menzel

Dear Jason,

Am Samstag, den 24.09.2011, 03:08 -0400 schrieb Jason Kridner:

Quoted 6 lines

Cloud9 is a web-browser based IDE.  This application should support multiple architectures as long as they have node.js and a build of node-o3-xml that is dropped into this system.  Ideally, that library would be added separately as a system-dependent portion, because everything else should be ISA independent.

Quoted 3 lines
Quoted 1 line

Advice on cleaning up this recipe is welcome.

what problems to do you see?

My main concern was the use of rsync and the process I was using to extract git submodules. They both work fine. Hopefully the fetcher will be improved in the future to solve the git submodules challenge, but I sure think there must be an easier way to simply copy all of the non-hidden files in a directory.

Quoted 8 lines
Quoted 8 lines

I will continue to improve it as I understand how.  It is rather useful as-is.
---
 meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb |   28 +++++++++++++++++++++++

 1 files changed, 28 insertions(+), 0 deletions(-)

 create mode 100644 meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb

Quoted 11 lines

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 3

Quoted 9 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +3 -0
new file mode 100644
index 0000000..626332f
@@ -0,0 +1,28 @@
+DESCRIPTION = "Meet Cloud9, development-as-a-service for Javascripters and other developers"
+HOMEPAGE = "http://c9.io"
+RDEPENDS = "nodejs"

This belongs further down too.

oe-stylize places RDEPENDS above SRC_URI.

Quoted 10 lines

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 6

Quoted 4 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +3 -0
+
+SRC_URI = "git://github.com/jadonk/cloud9.git;protocol=git \
+"

Please put that below the license stuff [1].

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 9

Quoted 3 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +3 -0
+
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4784c3bcff601fd8f9515f52a11e7018"

oe-stylize only moves LICENSE up higher, but doesn't understand LIC_FILES_CHKSUM. I'll fix manually.

Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +4 -0
+
+SRCREV = "08bae1d1cc2ba9f7f883a25afd07f0339a82fa8b"
+S = "${WORKDIR}/git"
+
Quoted 8 lines

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 19

Quoted 6 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +6 -0
+do_configure_prepend () {
+ git submodule update --init --recursive
+}
+
+do_compile () {
+}

Maybe add comments why the above overrides are needed.

Will do. Note that oe-sytlize removes the line breaks between the do_ functions. Is that really desired?

Quoted 7 lines

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 23

Quoted 5 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +4 -0
+
+do_install () {
+ install -m 0755 -d ${D}/usr/share/cloud9 ${D}${bindir}
+ rsync -r --exclude=".*" ${S}/* ${D}/usr/share/cloud9

Should rsync be put in DEPENDS?

I'll put it there.

Quoted 8 lines

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 28

Quoted 6 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +5 -0
+ touch ${D}${bindir}/cloud9
+ echo "#!/bin/sh" > ${D}${bindir}/cloud9
+ echo "node /usr/share/cloud9/bin/cloud9.js -l 0.0.0.0 -w /home/root -p 3000" >> ${D}${bindir}/cloud9
+ chmod 0755 ${D}${bindir}/cloud9
+}
Quoted 6 lines

Thanks,

Paul

[1] http://openembedded.org/index.php?title=Styleguide

I believe that is only for classic OE. I'm looking to submit to meta-oe. I submitted to this list per [2].

[2] http://git.openembedded.org/cgit.cgi/meta-openembedded/tree/meta-oe/README

Quoted 7 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 13 lines · Jason Kridner
Quoted 12 lines

meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb line 19

Quoted 10 lines
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb new file +9 -0
+SRCREV = "08bae1d1cc2ba9f7f883a25afd07f0339a82fa8b"
+S = "${WORKDIR}/git"
+
+do_configure_prepend () {
+ git submodule update --init --recursive
+}
+
+do_compile () {
+}

Maybe add comments why the above overrides are needed.

Quoted 2 lines

Will do. Note that oe-sytlize removes the line breaks between the do_ functions. Is that really desired?

Not sure about the lack of empty lines between do_ functions - probably an unintended behavior of oe-stylize...

But I believe empty do_ functions need to have a single ':' character, which is a NOP in shell, to prevent bitbake from discarding the function altogether, if I'm not mistaken for the proper reason.

Signature · 1 line
Denys