From 13733bc999f2b0198334f56224d615f8af4c7834 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 5 May 2025 18:16:23 +0300 Subject: [PATCH] x265: Fix error: 'uint8_t' Include cstdint in json11.cpp Fixes: json11.cpp:101:32: error: 'uint8_t' does not name a type This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../0001-json11.cpp-Include-cstdint.patch | 33 +++++++++++++++++++ .../recipes-multimedia/x265/x265_4.1.bb | 5 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 meta-multimedia/recipes-multimedia/x265/x265/0001-json11.cpp-Include-cstdint.patch diff --git a/meta-multimedia/recipes-multimedia/x265/x265/0001-json11.cpp-Include-cstdint.patch b/meta-multimedia/recipes-multimedia/x265/x265/0001-json11.cpp-Include-cstdint.patch new file mode 100644 index 0000000000..f32316009f --- /dev/null +++ b/meta-multimedia/recipes-multimedia/x265/x265/0001-json11.cpp-Include-cstdint.patch @@ -0,0 +1,33 @@ +From 6cbd417be3f6bcbda77464db6a4d83cef3df8904 Mon Sep 17 00:00:00 2001 +From: Leon Anavi +Date: Mon, 5 May 2025 14:08:36 +0000 +Subject: [PATCH] json11.cpp: Include cstdint + +Fixes: + +json11.cpp:101:32: error: 'uint8_t' does not name a type + +This work was sponsored by GOVCERT.LU. + +Upstream-Status: Pending [https://bitbucket.org/multicoreware/x265_git/pull-requests/33] + +Signed-off-by: Leon Anavi +--- + dynamicHDR10/json11/json11.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/dynamicHDR10/json11/json11.cpp b/dynamicHDR10/json11/json11.cpp +index 7625777..74f990a 100644 +--- a/dynamicHDR10/json11/json11.cpp ++++ b/dynamicHDR10/json11/json11.cpp +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + #if _MSC_VER + #pragma warning(disable: 4510) //const member cannot be default initialized +-- +2.39.5 + diff --git a/meta-multimedia/recipes-multimedia/x265/x265_4.1.bb b/meta-multimedia/recipes-multimedia/x265/x265_4.1.bb index 23d6342d26..ae0f7758c1 100644 --- a/meta-multimedia/recipes-multimedia/x265/x265_4.1.bb +++ b/meta-multimedia/recipes-multimedia/x265/x265_4.1.bb @@ -8,7 +8,10 @@ LIC_FILES_CHKSUM = "file://../COPYING;md5=c9e0427bc58f129f99728c62d4ad4091" DEPENDS = "nasm-native gnutls zlib libpcre numactl" -SRC_URI = "https://bitbucket.org/multicoreware/x265_git/downloads/x265_${PV}.tar.gz" +SRC_URI = " \ + https://bitbucket.org/multicoreware/x265_git/downloads/x265_${PV}.tar.gz \ + file://0001-json11.cpp-Include-cstdint.patch \ +" SRC_URI[sha256sum] = "a31699c6a89806b74b0151e5e6a7df65de4b49050482fe5ebf8a4379d7af8f29" S = "${WORKDIR}/x265_${PV}/source"