summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/nghttp2
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-10-11 11:40:54 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-14 11:48:46 +0100
commitf5ed0980b36120d7badc178f89340dc22f6cb5c4 (patch)
tree3cd9c508cb1bbb8869f9e798b21bc88937b32946 /meta/recipes-support/nghttp2
parent6cddf1ff1914dbc02781972fe55ddf280b87f243 (diff)
downloadpoky-f5ed0980b36120d7badc178f89340dc22f6cb5c4.tar.gz
nghttp2: add recipe from meta-oe
It is needed for latest libsoup. (From OE-Core rev: 1ea50f0e11a30516ca0d5da03570b940cced34f2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nghttp2')
-rw-r--r--meta/recipes-support/nghttp2/nghttp2/0001-fetch-ocsp-response-use-python3.patch27
-rw-r--r--meta/recipes-support/nghttp2/nghttp2_1.45.1.bb35
2 files changed, 62 insertions, 0 deletions
diff --git a/meta/recipes-support/nghttp2/nghttp2/0001-fetch-ocsp-response-use-python3.patch b/meta/recipes-support/nghttp2/nghttp2/0001-fetch-ocsp-response-use-python3.patch
new file mode 100644
index 0000000000..e4db09638f
--- /dev/null
+++ b/meta/recipes-support/nghttp2/nghttp2/0001-fetch-ocsp-response-use-python3.patch
@@ -0,0 +1,27 @@
1From 73ec79432fc557a8be4f1500982b1c0f5fdf12a9 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Thu, 7 Nov 2019 09:58:52 +0000
4Subject: [PATCH] fetch-ocsp-response: use python3
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Inappropriate [oe specific]
10Signed-off-by: André Draszik <git@andred.net>
11---
12 script/fetch-ocsp-response | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/script/fetch-ocsp-response b/script/fetch-ocsp-response
16index 0ff7461..185116b 100755
17--- a/script/fetch-ocsp-response
18+++ b/script/fetch-ocsp-response
19@@ -1,4 +1,4 @@
20-#!/usr/bin/env python
21+#!/usr/bin/env python3
22 # -*- coding: utf-8 -*-
23
24 # nghttp2 - HTTP/2 C Library
25--
262.23.0.rc1
27
diff --git a/meta/recipes-support/nghttp2/nghttp2_1.45.1.bb b/meta/recipes-support/nghttp2/nghttp2_1.45.1.bb
new file mode 100644
index 0000000000..3de509a27c
--- /dev/null
+++ b/meta/recipes-support/nghttp2/nghttp2_1.45.1.bb
@@ -0,0 +1,35 @@
1SUMMARY = "HTTP/2 C Library and tools"
2HOMEPAGE = "https://nghttp2.org/"
3SECTION = "libs"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=764abdf30b2eadd37ce47dcbce0ea1ec"
6
7UPSTREAM_CHECK_URI = "https://github.com/nghttp2/nghttp2/releases"
8
9SRC_URI = "\
10 https://github.com/nghttp2/nghttp2/releases/download/v${PV}/nghttp2-${PV}.tar.xz \
11 file://0001-fetch-ocsp-response-use-python3.patch \
12"
13SRC_URI[sha256sum] = "abdc4addccadbc7d89abe27c4d6427d78e57d139f69c1f45749227393c68bf79"
14
15inherit cmake manpages python3native
16PACKAGECONFIG[manpages] = ""
17
18# examples are never installed, and don't need to be built in the
19# first place
20EXTRA_OECMAKE = "-DENABLE_EXAMPLES=OFF -DENABLE_APP=OFF -DENABLE_HPACK_TOOLS=OFF"
21
22PACKAGES =+ "lib${PN} ${PN}-client ${PN}-proxy ${PN}-server"
23
24RDEPENDS:${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})"
25RDEPENDS:${PN}:class-native = ""
26RDEPENDS:${PN}-proxy = "openssl python3-core python3-io python3-shell"
27
28ALLOW_EMPTY:${PN} = "1"
29FILES:${PN} = ""
30FILES:lib${PN} = "${libdir}/*${SOLIBS}"
31FILES:${PN}-client = "${bindir}/h2load ${bindir}/nghttp"
32FILES:${PN}-proxy = "${bindir}/nghttpx ${datadir}/${BPN}/fetch-ocsp-response"
33FILES:${PN}-server = "${bindir}/nghttpd"
34
35BBCLASSEXTEND = "native nativesdk"