Skip to contentSkip to conversation

websocketd: Add new recipe

PATCH In review Denys Dmytriyenko 4 participants 7 messages Oct 28, 2020 – Oct 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 websocketd: Add new recipe

From: Nikhil Devshatwar <[email protected]>

websocketd is an application which allows to redirect output of command line applications via a websocket so that web pages can interact with them.

This is very useful for visualizing statistics information on host machine browser.

---
v4 - export http_proxy with explanation

 .../recipes-devtools/websocketd/websocketd_0.3.1.bb    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +18 -0
new file mode 100644
index 0000000..d2f3387
@@ -0,0 +1,18 @@
+SUMMARY = "Application for routing native applications via websockets"
+HOMEPAGE = "http://websocketd.com/"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a14d7befdbee1290ac5c472cd85d66f2"
+
+inherit go-mod
+
+GO_IMPORT = "github.com/joewalnes/websocketd"
+
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "0440211d7862dc76b5f2499d7dfcd4ef6a9c2fa2"
+
+# bitbake only exports proxy variables during fetching, but go handles
+# module fetching on its own during compile and needs proxy settings
+export http_proxy
+
+# Development package contains all the examples in different languages
+INSANE_SKIP_${PN}-dev = "file-rdeps"
Signature · 1 line
2.7.4
#1 lore raw

Nikhil

Quoted 32 lines · Denys Dmytriyenko

From: Nikhil Devshatwar <[email protected]>

websocketd is an application which allows to redirect output of command line applications via a websocket so that web pages can interact with them.

This is very useful for visualizing statistics information on host machine browser.

---
v4 - export http_proxy with explanation

  .../recipes-devtools/websocketd/websocketd_0.3.1.bb    | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)

create mode 100644 meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +8 -0
new file mode 100644
index 0000000..d2f3387
@@ -0,0 +1,18 @@
+SUMMARY = "Application for routing native applications via websockets"
+HOMEPAGE = "http://websocketd.com/"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a14d7befdbee1290ac5c472cd85d66f2"
+
+inherit go-mod
+
+GO_IMPORT = "github.com/joewalnes/websocketd"

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb line 18

Quoted 10 lines
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +10 -0
+
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "0440211d7862dc76b5f2499d7dfcd4ef6a9c2fa2"
+
+# bitbake only exports proxy variables during fetching, but go handles
+# module fetching on its own during compile and needs proxy settings
+export http_proxy
+
+# Development package contains all the examples in different languages
+INSANE_SKIP_${PN}-dev = "file-rdeps"

This looks fine to me but I think we should add the version we are checking out.

I mean this repo has not been updated in years but we should add the version so we know it is v0.3.1.

Dan

#2 lore raw
Quoted 49 lines · Dan Murphy

Nikhil

Quoted 32 lines · Denys Dmytriyenko

From: Nikhil Devshatwar <[email protected]>

websocketd is an application which allows to redirect output of command line applications via a websocket so that web pages can interact with them.

This is very useful for visualizing statistics information on host machine browser.

---
v4 - export http_proxy with explanation

 .../recipes-devtools/websocketd/websocketd_0.3.1.bb    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +8 -0
new file mode 100644
index 0000000..d2f3387
@@ -0,0 +1,18 @@
+SUMMARY = "Application for routing native applications via websockets"
+HOMEPAGE = "http://websocketd.com/"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a14d7befdbee1290ac5c472cd85d66f2"
+
+inherit go-mod
+
+GO_IMPORT = "github.com/joewalnes/websocketd"

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb line 18

Quoted 10 lines
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +10 -0
+
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "0440211d7862dc76b5f2499d7dfcd4ef6a9c2fa2"
+
+# bitbake only exports proxy variables during fetching, but go handles
+# module fetching on its own during compile and needs proxy settings
+export http_proxy
+
+# Development package contains all the examples in different languages
+INSANE_SKIP_${PN}-dev = "file-rdeps"

This looks fine to me but I think we should add the version we are checking out.

Quoted 2 lines

I mean this repo has not been updated in years but we should add the version so we know it is v0.3.1.

SRCREV above corresponds to v0.3.1 tag. While you could use the tag directly, it's not recommended and it's better to use specific commit SHA directly in the recipes, even if it's the same as the tag.

The only benefit of using the tag in SRCREV is developer convenience.

There are several drawbacks though:

* tag could move, so someone else using your recipe could get a completely different output, not what you expected or intended

* tag needs to be resolved against the origin git server on every bitbake parse, regardless if you have local sources cached or stored on a mirror. That requires network connection, proxies setup, etc. for every time you run bitbake. And some customers require isolated no-network builds when all the sources are available locally

* and from integration/release perspective there's less control of the build and results due to the above - images, packages, sstate could change. Not an issue for nightly builds, but could be a major issue for reproducible releases

Signature · 1 line
Denys
#3 lore raw

Denys

Quoted 68 lines · Denys Dmytriyenko
Quoted 48 lines · Dan Murphy

Nikhil

Quoted 32 lines · Denys Dmytriyenko

From: Nikhil Devshatwar <[email protected]>

websocketd is an application which allows to redirect output of command line applications via a websocket so that web pages can interact with them.

This is very useful for visualizing statistics information on host machine browser.

---
v4 - export http_proxy with explanation

  .../recipes-devtools/websocketd/websocketd_0.3.1.bb    | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)

create mode 100644 meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +8 -0
new file mode 100644
index 0000000..d2f3387
@@ -0,0 +1,18 @@
+SUMMARY = "Application for routing native applications via websockets"
+HOMEPAGE = "http://websocketd.com/"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a14d7befdbee1290ac5c472cd85d66f2"
+
+inherit go-mod
+
+GO_IMPORT = "github.com/joewalnes/websocketd"

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb line 18

Quoted 10 lines
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +10 -0
+
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "0440211d7862dc76b5f2499d7dfcd4ef6a9c2fa2"
+
+# bitbake only exports proxy variables during fetching, but go handles
+# module fetching on its own during compile and needs proxy settings
+export http_proxy
+
+# Development package contains all the examples in different languages
+INSANE_SKIP_${PN}-dev = "file-rdeps"

This looks fine to me but I think we should add the version we are checking out.

Quoted 2 lines

I mean this repo has not been updated in years but we should add the version so we know it is v0.3.1.

SRCREV above corresponds to v0.3.1 tag. While you could use the tag directly, it's not recommended and it's better to use specific commit SHA directly in the recipes, even if it's the same as the tag.

The only benefit of using the tag in SRCREV is developer convenience.

There are several drawbacks though:

* tag could move, so someone else using your recipe could get a completely different output, not what you expected or intended

* tag needs to be resolved against the origin git server on every bitbake parse, regardless if you have local sources cached or stored on a mirror. That requires network connection, proxies setup, etc. for every time you run bitbake. And some customers require isolated no-network builds when all the sources are available locally

Quoted 4 lines

* and from integration/release perspective there's less control of the build and results due to the above - images, packages, sstate could change. Not an issue for nightly builds, but could be a major issue for reproducible releases

No I was suggesting just adding

PV = "v0.3.1" to the recipe. Still use the SHA but just document the version

Dan

#4 lore raw
Quoted 71 lines · Dan Murphy

Denys

Quoted 68 lines · Denys Dmytriyenko
Quoted 48 lines · Dan Murphy

Nikhil

Quoted 32 lines · Denys Dmytriyenko

From: Nikhil Devshatwar <[email protected]>

websocketd is an application which allows to redirect output of command line applications via a websocket so that web pages can interact with them.

This is very useful for visualizing statistics information on host machine browser.

---
v4 - export http_proxy with explanation

 .../recipes-devtools/websocketd/websocketd_0.3.1.bb    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +8 -0
new file mode 100644
index 0000000..d2f3387
@@ -0,0 +1,18 @@
+SUMMARY = "Application for routing native applications via websockets"
+HOMEPAGE = "http://websocketd.com/"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a14d7befdbee1290ac5c472cd85d66f2"
+
+inherit go-mod
+
+GO_IMPORT = "github.com/joewalnes/websocketd"

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb line 18

Quoted 10 lines
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +10 -0
+
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "0440211d7862dc76b5f2499d7dfcd4ef6a9c2fa2"
+
+# bitbake only exports proxy variables during fetching, but go handles
+# module fetching on its own during compile and needs proxy settings
+export http_proxy
+
+# Development package contains all the examples in different languages
+INSANE_SKIP_${PN}-dev = "file-rdeps"

This looks fine to me but I think we should add the version we are checking out.

Quoted 2 lines

I mean this repo has not been updated in years but we should add the version so we know it is v0.3.1.

SRCREV above corresponds to v0.3.1 tag. While you could use the tag directly, it's not recommended and it's better to use specific commit SHA directly in the recipes, even if it's the same as the tag.

The only benefit of using the tag in SRCREV is developer convenience.

There are several drawbacks though:

* tag could move, so someone else using your recipe could get a completely different output, not what you expected or intended

* tag needs to be resolved against the origin git server on every bitbake parse, regardless if you have local sources cached or stored on a mirror. That requires network connection, proxies setup, etc. for every time you run bitbake. And some customers require isolated no-network builds when all the sources are available locally

Quoted 7 lines
Quoted 4 lines

* and from integration/release perspective there's less control of the build and results due to the above - images, packages, sstate could change. Not an issue for nightly builds, but could be a major issue for reproducible releases

No I was suggesting just adding

PV = "v0.3.1" to the recipe. Still use the SHA but just document the version

No, the filename already sets it to "0.3.1".

Signature · 1 line
Denys
#5 lore raw

Denys

Quoted 72 lines · Denys Dmytriyenko
Quoted 71 lines · Dan Murphy

Denys

Quoted 68 lines · Denys Dmytriyenko
Quoted 48 lines · Dan Murphy

Nikhil

Quoted 32 lines · Denys Dmytriyenko

From: Nikhil Devshatwar <[email protected]>

websocketd is an application which allows to redirect output of command line applications via a websocket so that web pages can interact with them.

This is very useful for visualizing statistics information on host machine browser.

---
v4 - export http_proxy with explanation

  .../recipes-devtools/websocketd/websocketd_0.3.1.bb    | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)

create mode 100644 meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +8 -0
new file mode 100644
index 0000000..d2f3387
@@ -0,0 +1,18 @@
+SUMMARY = "Application for routing native applications via websockets"
+HOMEPAGE = "http://websocketd.com/"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a14d7befdbee1290ac5c472cd85d66f2"
+
+inherit go-mod
+
+GO_IMPORT = "github.com/joewalnes/websocketd"

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb line 18

Quoted 10 lines
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +10 -0
+
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "0440211d7862dc76b5f2499d7dfcd4ef6a9c2fa2"
+
+# bitbake only exports proxy variables during fetching, but go handles
+# module fetching on its own during compile and needs proxy settings
+export http_proxy
+
+# Development package contains all the examples in different languages
+INSANE_SKIP_${PN}-dev = "file-rdeps"

This looks fine to me but I think we should add the version we are checking out.

Quoted 2 lines

I mean this repo has not been updated in years but we should add the version so we know it is v0.3.1.

SRCREV above corresponds to v0.3.1 tag. While you could use the tag directly, it's not recommended and it's better to use specific commit SHA directly in the recipes, even if it's the same as the tag.

The only benefit of using the tag in SRCREV is developer convenience.

There are several drawbacks though:

* tag could move, so someone else using your recipe could get a completely different output, not what you expected or intended

* tag needs to be resolved against the origin git server on every bitbake parse, regardless if you have local sources cached or stored on a mirror. That requires network connection, proxies setup, etc. for every time you run bitbake. And some customers require isolated no-network builds when all the sources are available locally

Quoted 9 lines
Quoted 7 lines
Quoted 4 lines

* and from integration/release perspective there's less control of the build and results due to the above - images, packages, sstate could change. Not an issue for nightly builds, but could be a major issue for reproducible releases

No I was suggesting just adding

PV = "v0.3.1" to the recipe. Still use the SHA but just document the version

No, the filename already sets it to "0.3.1".

I see I overlooked the file name.

Dan

Tested-by on v4 1/1
#6 lore raw
In reply to Denys Dmytriyenko
Quoted 6 lines · Denys Dmytriyenko

From: Nikhil Devshatwar <[email protected]>

websocketd is an application which allows to redirect output of command line applications via a websocket so that web pages can interact with them.

Quoted 7 lines

This is very useful for visualizing statistics information on host machine browser.

---
v4 - export http_proxy with explanation

Thank you.

with am65xx-evm and dra7xx-evm

Quoted 32 lines
 .../recipes-devtools/websocketd/websocketd_0.3.1.bb    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.3.1.bb new file +18 -0
new file mode 100644
index 0000000..d2f3387
@@ -0,0 +1,18 @@
+SUMMARY = "Application for routing native applications via websockets"
+HOMEPAGE = "http://websocketd.com/"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a14d7befdbee1290ac5c472cd85d66f2"
+
+inherit go-mod
+
+GO_IMPORT = "github.com/joewalnes/websocketd"
+
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "0440211d7862dc76b5f2499d7dfcd4ef6a9c2fa2"
+
+# bitbake only exports proxy variables during fetching, but go handles
+# module fetching on its own during compile and needs proxy settings
+export http_proxy
+
+# Development package contains all the examples in different languages
+INSANE_SKIP_${PN}-dev = "file-rdeps"
Signature · 1 line
2.7.4