diff options
| author | Frede Hoey Braendstrup <frederikbraendstrup@gmail.com> | 2026-01-27 09:14:59 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-01-30 23:59:10 -0800 |
| commit | ee064972a05c15ec5fb621b34ad342be241a85c5 (patch) | |
| tree | 626242a50d2635bf529feed0e69ff1e7939c20a4 /meta-oe/recipes-support/liboauth2 | |
| parent | c1f2aeb030e6388f54761dd3fc7e5536274b292b (diff) | |
| download | meta-openembedded-ee064972a05c15ec5fb621b34ad342be241a85c5.tar.gz | |
liboauth2: Add recipe at 2.2.0
V3: adds fixes for building with clang
V4: removes default PACKAGECONFIG used for testing builds
V5: fixes Upstream-Status in patch
Signed-off-by: Frede Hoey Braendstrup <frederikbraendstrup@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/liboauth2')
| -rw-r--r-- | meta-oe/recipes-support/liboauth2/liboauth2/0001-fix-clang-curl_easy_setopt-takes-a-long-not-an-int.patch | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-support/liboauth2/liboauth2_2.2.0.bb | 23 |
2 files changed, 56 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/liboauth2/liboauth2/0001-fix-clang-curl_easy_setopt-takes-a-long-not-an-int.patch b/meta-oe/recipes-support/liboauth2/liboauth2/0001-fix-clang-curl_easy_setopt-takes-a-long-not-an-int.patch new file mode 100644 index 0000000000..75da04a3a0 --- /dev/null +++ b/meta-oe/recipes-support/liboauth2/liboauth2/0001-fix-clang-curl_easy_setopt-takes-a-long-not-an-int.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From a9f28a44b9b387ef28904e24ca05d28562fdcc45 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Frede Hoey Braendstrup <frede@vokalo.io> | ||
| 3 | Date: Mon, 26 Jan 2026 11:07:24 +0100 | ||
| 4 | Subject: [PATCH] fix(clang): curl_easy_setopt takes a long not an int | ||
| 5 | |||
| 6 | Signed-off-by: Frede Hoey Braendstrup <frede@vokalo.io> | ||
| 7 | Upstream-Status: Backport [https://github.com/OpenIDC/liboauth2/pull/69] | ||
| 8 | --- | ||
| 9 | src/http.c | 4 ++-- | ||
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/src/http.c b/src/http.c | ||
| 13 | index ab7a25a..bc242ed 100644 | ||
| 14 | --- a/src/http.c | ||
| 15 | +++ b/src/http.c | ||
| 16 | @@ -1024,7 +1024,7 @@ bool oauth2_http_call(oauth2_log_t *log, const char *url, const char *data, | ||
| 17 | curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 5L); | ||
| 18 | |||
| 19 | if (ctx) | ||
| 20 | - curl_easy_setopt(curl, CURLOPT_TIMEOUT, ctx->timeout); | ||
| 21 | + curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long)ctx->timeout); | ||
| 22 | |||
| 23 | curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, | ||
| 24 | oauth2_http_curl_buf_write); | ||
| 25 | @@ -1092,7 +1092,7 @@ bool oauth2_http_call(oauth2_log_t *log, const char *url, const char *data, | ||
| 26 | |||
| 27 | if (data != NULL) { | ||
| 28 | curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data); | ||
| 29 | - curl_easy_setopt(curl, CURLOPT_POST, 1); | ||
| 30 | + curl_easy_setopt(curl, CURLOPT_POST, 1L); | ||
| 31 | } | ||
| 32 | |||
| 33 | if (ctx) | ||
diff --git a/meta-oe/recipes-support/liboauth2/liboauth2_2.2.0.bb b/meta-oe/recipes-support/liboauth2/liboauth2_2.2.0.bb new file mode 100644 index 0000000000..31d7aec69d --- /dev/null +++ b/meta-oe/recipes-support/liboauth2/liboauth2_2.2.0.bb | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | SUMMARY = "OAuth 2.x and OpenID Connect C library" | ||
| 2 | HOMEPAGE = "https://github.com/OpenIDC/liboauth2" | ||
| 3 | LICENSE = "Apache-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" | ||
| 5 | |||
| 6 | SRC_URI = " \ | ||
| 7 | git://github.com/OpenIDC/liboauth2;protocol=https;branch=master;tag=v${PV} \ | ||
| 8 | file://0001-fix-clang-curl_easy_setopt-takes-a-long-not-an-int.patch \ | ||
| 9 | " | ||
| 10 | |||
| 11 | PV = "2.2.0" | ||
| 12 | SRCREV = "12571b6d6568c2db7d5f080f60ecb55795c0db19" | ||
| 13 | |||
| 14 | DEPENDS = "libpcre2 jansson curl openssl cjose" | ||
| 15 | |||
| 16 | inherit pkgconfig autotools-brokensep | ||
| 17 | |||
| 18 | PACKAGECONFIG ??= "" | ||
| 19 | PACKAGECONFIG[memcache] = "--with-memcache,--without-memcache,libmemcached" | ||
| 20 | PACKAGECONFIG[redis] = "--with-redis,--without-redis,hiredis" | ||
| 21 | PACKAGECONFIG[jq] = "--with-jq,--without-jq,jq" | ||
| 22 | PACKAGECONFIG[apache] = "--with-apache,--without-apache,apache2" | ||
| 23 | |||
