diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-10-11 11:40:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 11:48:46 +0100 |
commit | f5ed0980b36120d7badc178f89340dc22f6cb5c4 (patch) | |
tree | 3cd9c508cb1bbb8869f9e798b21bc88937b32946 /meta/recipes-support/nghttp2 | |
parent | 6cddf1ff1914dbc02781972fe55ddf280b87f243 (diff) | |
download | poky-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.patch | 27 | ||||
-rw-r--r-- | meta/recipes-support/nghttp2/nghttp2_1.45.1.bb | 35 |
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 @@ | |||
1 | From 73ec79432fc557a8be4f1500982b1c0f5fdf12a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> | ||
3 | Date: Thu, 7 Nov 2019 09:58:52 +0000 | ||
4 | Subject: [PATCH] fetch-ocsp-response: use python3 | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe specific] | ||
10 | Signed-off-by: André Draszik <git@andred.net> | ||
11 | --- | ||
12 | script/fetch-ocsp-response | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/script/fetch-ocsp-response b/script/fetch-ocsp-response | ||
16 | index 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 | -- | ||
26 | 2.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 @@ | |||
1 | SUMMARY = "HTTP/2 C Library and tools" | ||
2 | HOMEPAGE = "https://nghttp2.org/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=764abdf30b2eadd37ce47dcbce0ea1ec" | ||
6 | |||
7 | UPSTREAM_CHECK_URI = "https://github.com/nghttp2/nghttp2/releases" | ||
8 | |||
9 | SRC_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 | " | ||
13 | SRC_URI[sha256sum] = "abdc4addccadbc7d89abe27c4d6427d78e57d139f69c1f45749227393c68bf79" | ||
14 | |||
15 | inherit cmake manpages python3native | ||
16 | PACKAGECONFIG[manpages] = "" | ||
17 | |||
18 | # examples are never installed, and don't need to be built in the | ||
19 | # first place | ||
20 | EXTRA_OECMAKE = "-DENABLE_EXAMPLES=OFF -DENABLE_APP=OFF -DENABLE_HPACK_TOOLS=OFF" | ||
21 | |||
22 | PACKAGES =+ "lib${PN} ${PN}-client ${PN}-proxy ${PN}-server" | ||
23 | |||
24 | RDEPENDS:${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})" | ||
25 | RDEPENDS:${PN}:class-native = "" | ||
26 | RDEPENDS:${PN}-proxy = "openssl python3-core python3-io python3-shell" | ||
27 | |||
28 | ALLOW_EMPTY:${PN} = "1" | ||
29 | FILES:${PN} = "" | ||
30 | FILES:lib${PN} = "${libdir}/*${SOLIBS}" | ||
31 | FILES:${PN}-client = "${bindir}/h2load ${bindir}/nghttp" | ||
32 | FILES:${PN}-proxy = "${bindir}/nghttpx ${datadir}/${BPN}/fetch-ocsp-response" | ||
33 | FILES:${PN}-server = "${bindir}/nghttpd" | ||
34 | |||
35 | BBCLASSEXTEND = "native nativesdk" | ||