Skip to contentSkip to conversation

Recipe for Nghttp2: HTTP/2 C Library.

PATCH In review baali 2 participants 2 messages Oct 5, 2017

lore
Share & tools
lore

baali

author
#0 lore raw

PATCH 1/1 Recipe for Nghttp2: HTTP/2 C Library.

It is also needed for Curl to support HTTP2 protocol.

---
 meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb
meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb new file +16 -0
new file mode 100644
index 0000000..3e6b10a
@@ -0,0 +1,16 @@
+SUMMARY = "HTTP/2 C Library and tools"
+HOMEPAGE = "https://nghttp2.org/"
+SECTION = "libs"
+
+DEPENDS = "pkgconfig cunit zlib openssl libxml2 jansson c-ares"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+SRC_URI = "https://github.com/nghttp2/nghttp2/releases/download/v${PV}/nghttp2-${PV}.tar.bz2"
+SRC_URI[md5sum] = "926f07ad3b50f38f7d8935ced04716cf"
+SRC_URI[sha256sum] = "0df4229f4123b5aa96e834ebcfdffe954e93d986f0252fd10123d50c6f010983"
+
+inherit cmake pythonnative python-dir
+
+EXTRA_OECMAKE = ""
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · baali

It is also needed for Curl to support HTTP2 protocol.

---
 meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb
meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb new file +0 -0
new file mode 100644
index 0000000..3e6b10a

meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb line 5

Quoted 5 lines
meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb new file +5 -0
@@ -0,0 +1,16 @@
+SUMMARY = "HTTP/2 C Library and tools"
+HOMEPAGE = "https://nghttp2.org/"
+SECTION = "libs"
+
+DEPENDS = "pkgconfig cunit zlib openssl libxml2 jansson c-ares"

Adding pkgconfig to DEPENDS looks odd. Maybe the recipe should be inheriting the pkgconfig class instead?

meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb line 8

Quoted 3 lines
meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb new file +3 -0
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

Try to find a license text within the nghttp2 sources to use here.

meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb line 16

Quoted 7 lines
meta-oe/recipes-support/nghttp2/nghttp2_1.26.0.bb new file +7 -0
+SRC_URI = "https://github.com/nghttp2/nghttp2/releases/download/v${PV}/nghttp2-${PV}.tar.bz2"
+SRC_URI[md5sum] = "926f07ad3b50f38f7d8935ced04716cf"
+SRC_URI[sha256sum] = "0df4229f4123b5aa96e834ebcfdffe954e93d986f0252fd10123d50c6f010983"
+
+inherit cmake pythonnative python-dir
+
+EXTRA_OECMAKE = ""

This is redundant and can be dropped.

Quoted 8 lines

--
2.7.4

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