Skip to contentSkip to conversation

bitwise: add new recipe

PATCH Superseded Ramon Fried 2 participants 4 messages Dec 15, 2020

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bitwise: add new recipe

Bitwise is multi base interactive calculator supporting dynamic base conversion and bit manipulation.
It's a handy tool for low level hackers, kernel developers and device drivers developers.

---
 .../packagegroups/packagegroup-meta-oe.bb     |  1 +
 .../recipes-extended/bitwise/bitwise_0.41.bb  | 28 +++++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 meta-oe/recipes-extended/bitwise/bitwise_0.41.bb
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +1 -0
index 2c46d21b7..577f2e788 100644
@@ -307,6 +307,7 @@ RDEPENDS_packagegroup-meta-oe-devtools_remove_x86-64 = "${@bb.utils.contains("TU
 RDEPENDS_packagegroup-meta-oe-devtools_remove_x86 = "ply"
 
 RDEPENDS_packagegroup-meta-oe-extended ="\
+     bitwise \
     ${@bb.utils.contains("DISTRO_FEATURES", "x11 wayland opengl", "boinc-client", "", d)} \
      brotli \
      byacc \
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +28 -0
new file mode 100644
index 000000000..2c4ffb1eb
@@ -0,0 +1,28 @@
+SUMMARY = "Bitwise terminal calculator"
+DESCRIPTION = "Bitwise is multi base interactive calculator \
+supporting dynamic base conversion and bit manipulation.\
+It's a handy tool for low level hackers, \
+kernel developers and device drivers developers."
+
+HOMEPAGE = "https://github.com/mellowcandle/bitwise"
+SECTION = "console/utils"
+
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
+
+SRC_URI = "https://github.com/mellowcandle/bitwise/releases/download/v${PV}/bitwise-v${PV}.tar.gz"
+SRC_URI[md5sum] = "62514cb4d26771eec56a54901299b09e"
+SRC_URI[sha1sum] = "753662205db576f86de7ab89b303b6e411dcf04a"
+SRC_URI[sha256sum] = "33ce934fb99dadf7652224152cc135a0abf6a211adde53d96e9be7067567749c"
+SRC_URI[sha384sum] = "ff15c72b60e71b2029d316688350ec07119b1b56e3c911d9bf3f23e3939d9f86d43853b9e812ad7ae7a002a71a559fb2"
+SRC_URI[sha512sum] = "fc4a612d73bd34a20a87181420ca46549815a86c2861ad918a6539e3bf15230af5e534724f368080a2de0874deac7052e58075683fd32bce1ee070b777d24a9b"
+
+UPSTREAM_CHECK_URI = "https://github.com/mellowcandle/bitwise/releases"
+
+S = "${WORKDIR}/${BPN}-v${PV}"
+
+DEPENDS = "ncurses readline"
+
+CFLAGS_prepend = "-I${S}/inc "
+
+inherit autotools
Signature · 1 line
2.17.1
#1 lore raw
Quoted 38 lines · Ramon Fried

Bitwise is multi base interactive calculator supporting dynamic base conversion and bit manipulation.
It's a handy tool for low level hackers, kernel developers and device drivers developers.

---
  .../packagegroups/packagegroup-meta-oe.bb     |  1 +
  .../recipes-extended/bitwise/bitwise_0.41.bb  | 28 +++++++++++++++++++
  2 files changed, 29 insertions(+)

create mode 100644 meta-oe/recipes-extended/bitwise/bitwise_0.41.bb

meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +1 -0
index 2c46d21b7..577f2e788 100644
@@ -307,6 +307,7 @@ RDEPENDS_packagegroup-meta-oe-devtools_remove_x86-64 = "${@bb.utils.contains("TU
  RDEPENDS_packagegroup-meta-oe-devtools_remove_x86 = "ply"
 
  RDEPENDS_packagegroup-meta-oe-extended ="\
+     bitwise \
      ${@bb.utils.contains("DISTRO_FEATURES", "x11 wayland opengl", "boinc-client", "", d)} \
       brotli \
       byacc \
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +8 -0
new file mode 100644
index 000000000..2c4ffb1eb
@@ -0,0 +1,28 @@
+SUMMARY = "Bitwise terminal calculator"
+DESCRIPTION = "Bitwise is multi base interactive calculator \
+supporting dynamic base conversion and bit manipulation.\
+It's a handy tool for low level hackers, \
+kernel developers and device drivers developers."
+
+HOMEPAGE = "https://github.com/mellowcandle/bitwise"
+SECTION = "console/utils"

meta-oe/recipes-extended/bitwise/bitwise_0.41.bb line 18

Quoted 10 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +10 -0
+
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
+
+SRC_URI = "https://github.com/mellowcandle/bitwise/releases/download/v${PV}/bitwise-v${PV}.tar.gz"
+SRC_URI[md5sum] = "62514cb4d26771eec56a54901299b09e"
+SRC_URI[sha1sum] = "753662205db576f86de7ab89b303b6e411dcf04a"
+SRC_URI[sha256sum] = "33ce934fb99dadf7652224152cc135a0abf6a211adde53d96e9be7067567749c"
+SRC_URI[sha384sum] = "ff15c72b60e71b2029d316688350ec07119b1b56e3c911d9bf3f23e3939d9f86d43853b9e812ad7ae7a002a71a559fb2"
+SRC_URI[sha512sum] = "fc4a612d73bd34a20a87181420ca46549815a86c2861ad918a6539e3bf15230af5e534724f368080a2de0874deac7052e58075683fd32bce1ee070b777d24a9b"

we only need SRC_URI[sha256sum] please delete rest of them.

meta-oe/recipes-extended/bitwise/bitwise_0.41.bb line 26

Quoted 8 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +8 -0
+
+UPSTREAM_CHECK_URI = "https://github.com/mellowcandle/bitwise/releases"
+
+S = "${WORKDIR}/${BPN}-v${PV}"
+
+DEPENDS = "ncurses readline"
+
+CFLAGS_prepend = "-I${S}/inc "

I meant that you can avoid this by fixing the code with a patch like

https://gist.github.com/kraj/1e5f8fb76705159afa4bb78a5a8f0311

this patch can be upstreamed as well, if you want to take it forward feel free.

Quoted 7 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +2 -0
+
+inherit autotools
#2 lore raw
Quoted 46 lines · Khem Raj
Quoted 42 lines · Ramon Fried

Bitwise is multi base interactive calculator supporting dynamic base conversion and bit manipulation.
It's a handy tool for low level hackers, kernel developers and device drivers developers.

---
  .../packagegroups/packagegroup-meta-oe.bb     |  1 +
  .../recipes-extended/bitwise/bitwise_0.41.bb  | 28 +++++++++++++++++++
  2 files changed, 29 insertions(+)

create mode 100644 meta-oe/recipes-extended/bitwise/bitwise_0.41.bb

meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +1 -0
index 2c46d21b7..577f2e788 100644
@@ -307,6 +307,7 @@ RDEPENDS_packagegroup-meta-oe-devtools_remove_x86-64 = "${@bb.utils.contains("TU
  RDEPENDS_packagegroup-meta-oe-devtools_remove_x86 = "ply"
 
  RDEPENDS_packagegroup-meta-oe-extended ="\
+     bitwise \
      ${@bb.utils.contains("DISTRO_FEATURES", "x11 wayland opengl", "boinc-client", "", d)} \
       brotli \
       byacc \
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +12 -0
new file mode 100644
index 000000000..2c4ffb1eb
@@ -0,0 +1,28 @@
+SUMMARY = "Bitwise terminal calculator"
+DESCRIPTION = "Bitwise is multi base interactive calculator \
+supporting dynamic base conversion and bit manipulation.\
+It's a handy tool for low level hackers, \
+kernel developers and device drivers developers."
+
+HOMEPAGE = "https://github.com/mellowcandle/bitwise"
+SECTION = "console/utils"
+
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
+
Quoted 8 lines

meta-oe/recipes-extended/bitwise/bitwise_0.41.bb line 18

Quoted 6 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +6 -0
+SRC_URI = "https://github.com/mellowcandle/bitwise/releases/download/v${PV}/bitwise-v${PV}.tar.gz"
+SRC_URI[md5sum] = "62514cb4d26771eec56a54901299b09e"
+SRC_URI[sha1sum] = "753662205db576f86de7ab89b303b6e411dcf04a"
+SRC_URI[sha256sum] = "33ce934fb99dadf7652224152cc135a0abf6a211adde53d96e9be7067567749c"
+SRC_URI[sha384sum] = "ff15c72b60e71b2029d316688350ec07119b1b56e3c911d9bf3f23e3939d9f86d43853b9e812ad7ae7a002a71a559fb2"
+SRC_URI[sha512sum] = "fc4a612d73bd34a20a87181420ca46549815a86c2861ad918a6539e3bf15230af5e534724f368080a2de0874deac7052e58075683fd32bce1ee070b777d24a9b"

we only need SRC_URI[sha256sum] please delete rest of them.

Sure.

Quoted 12 lines

meta-oe/recipes-extended/bitwise/bitwise_0.41.bb line 26

Quoted 9 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +8 -0
+
+UPSTREAM_CHECK_URI = "https://github.com/mellowcandle/bitwise/releases"
+
+S = "${WORKDIR}/${BPN}-v${PV}"
+
+DEPENDS = "ncurses readline"
+
+CFLAGS_prepend = "-I${S}/inc "

I meant that you can avoid this by fixing the code with a patch like

Quoted 1 line

https://gist.github.com/kraj/1e5f8fb76705159afa4bb78a5a8f0311

I don't mind, I can do both, whatever you prefer.

Quoted 11 lines

this patch can be upstreamed as well, if you want to take it forward feel free.

Quoted 7 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +2 -0
+
+inherit autotools
#3 lore raw
Quoted 68 lines · Ramon Fried
Quoted 46 lines · Khem Raj
Quoted 42 lines · Ramon Fried

Bitwise is multi base interactive calculator supporting dynamic base conversion and bit manipulation.
It's a handy tool for low level hackers, kernel developers and device drivers developers.

---
   .../packagegroups/packagegroup-meta-oe.bb     |  1 +
   .../recipes-extended/bitwise/bitwise_0.41.bb  | 28 +++++++++++++++++++
   2 files changed, 29 insertions(+)

create mode 100644 meta-oe/recipes-extended/bitwise/bitwise_0.41.bb

meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +1 -0
index 2c46d21b7..577f2e788 100644
@@ -307,6 +307,7 @@ RDEPENDS_packagegroup-meta-oe-devtools_remove_x86-64 = "${@bb.utils.contains("TU
   RDEPENDS_packagegroup-meta-oe-devtools_remove_x86 = "ply"
 
   RDEPENDS_packagegroup-meta-oe-extended ="\
+     bitwise \
       ${@bb.utils.contains("DISTRO_FEATURES", "x11 wayland opengl", "boinc-client", "", d)} \
        brotli \
        byacc \
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +12 -0
new file mode 100644
index 000000000..2c4ffb1eb
@@ -0,0 +1,28 @@
+SUMMARY = "Bitwise terminal calculator"
+DESCRIPTION = "Bitwise is multi base interactive calculator \
+supporting dynamic base conversion and bit manipulation.\
+It's a handy tool for low level hackers, \
+kernel developers and device drivers developers."
+
+HOMEPAGE = "https://github.com/mellowcandle/bitwise"
+SECTION = "console/utils"
+
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
+
Quoted 8 lines

meta-oe/recipes-extended/bitwise/bitwise_0.41.bb line 18

Quoted 6 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +6 -0
+SRC_URI = "https://github.com/mellowcandle/bitwise/releases/download/v${PV}/bitwise-v${PV}.tar.gz"
+SRC_URI[md5sum] = "62514cb4d26771eec56a54901299b09e"
+SRC_URI[sha1sum] = "753662205db576f86de7ab89b303b6e411dcf04a"
+SRC_URI[sha256sum] = "33ce934fb99dadf7652224152cc135a0abf6a211adde53d96e9be7067567749c"
+SRC_URI[sha384sum] = "ff15c72b60e71b2029d316688350ec07119b1b56e3c911d9bf3f23e3939d9f86d43853b9e812ad7ae7a002a71a559fb2"
+SRC_URI[sha512sum] = "fc4a612d73bd34a20a87181420ca46549815a86c2861ad918a6539e3bf15230af5e534724f368080a2de0874deac7052e58075683fd32bce1ee070b777d24a9b"

we only need SRC_URI[sha256sum] please delete rest of them.

Sure.

Quoted 12 lines

meta-oe/recipes-extended/bitwise/bitwise_0.41.bb line 26

Quoted 9 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +8 -0
+
+UPSTREAM_CHECK_URI = "https://github.com/mellowcandle/bitwise/releases"
+
+S = "${WORKDIR}/${BPN}-v${PV}"
+
+DEPENDS = "ncurses readline"
+
+CFLAGS_prepend = "-I${S}/inc "

I meant that you can avoid this by fixing the code with a patch like

Quoted 2 lines
Quoted 1 line

https://gist.github.com/kraj/1e5f8fb76705159afa4bb78a5a8f0311

I don't mind, I can do both, whatever you prefer.

thanks then lets go with this patch

Quoted 11 lines
Quoted 11 lines

this patch can be upstreamed as well, if you want to take it forward feel free.

Quoted 7 lines
meta-oe/recipes-extended/bitwise/bitwise_0.41.bb new file +2 -0
+
+inherit autotools