diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-09-09 10:43:32 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-09-09 18:23:01 -0700 |
commit | 9afc79f3a78df10352f4adfbfa8ae7750ef80076 (patch) | |
tree | 8d994f2a7d50951e85852d44b6664a708a393d4e | |
parent | ab4aa4045b6b4decf3ce52e62719b78a2651b5b4 (diff) | |
download | meta-openembedded-9afc79f3a78df10352f4adfbfa8ae7750ef80076.tar.gz |
opentelemetry-cpp: Fix build with clang-19
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/opentelemetry/opentelemetry-cpp/0001-Fix-build-with-clang-19.patch | 56 | ||||
-rw-r--r-- | meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.16.1.bb | 3 |
2 files changed, 58 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp/0001-Fix-build-with-clang-19.patch b/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp/0001-Fix-build-with-clang-19.patch new file mode 100644 index 000000000..2651eb6a7 --- /dev/null +++ b/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp/0001-Fix-build-with-clang-19.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From 1a5b4035e4cb75b87c716b4ebd5ffe32cd604c6e Mon Sep 17 00:00:00 2001 | ||
2 | From: "Sergey A. Osokin" <osa@FreeBSD.org.ru> | ||
3 | Date: Sun, 8 Sep 2024 17:14:25 -0400 | ||
4 | Subject: [PATCH] Fix build with clang 19 | ||
5 | |||
6 | Please see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281359 | ||
7 | for details. | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/open-telemetry/opentelemetry-cpp/pull/3055] | ||
10 | Credit: Dimitry Andric <dim@FreeBSD.org> | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | api/include/opentelemetry/logs/event_logger.h | 2 +- | ||
14 | api/include/opentelemetry/logs/logger.h | 2 +- | ||
15 | api/include/opentelemetry/logs/logger_type_traits.h | 2 +- | ||
16 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
17 | |||
18 | diff --git a/api/include/opentelemetry/logs/event_logger.h b/api/include/opentelemetry/logs/event_logger.h | ||
19 | index b5c94a70..5892e041 100644 | ||
20 | --- a/api/include/opentelemetry/logs/event_logger.h | ||
21 | +++ b/api/include/opentelemetry/logs/event_logger.h | ||
22 | @@ -66,7 +66,7 @@ class EventLogger | ||
23 | nostd::unique_ptr<LogRecord> log_record = delegate_logger->CreateLogRecord(); | ||
24 | |||
25 | IgnoreTraitResult( | ||
26 | - detail::LogRecordSetterTrait<typename std::decay<ArgumentType>::type>::template Set( | ||
27 | + detail::LogRecordSetterTrait<typename std::decay<ArgumentType>::type>::template Set<>( | ||
28 | log_record.get(), std::forward<ArgumentType>(args))...); | ||
29 | |||
30 | EmitEvent(event_name, std::move(log_record)); | ||
31 | diff --git a/api/include/opentelemetry/logs/logger.h b/api/include/opentelemetry/logs/logger.h | ||
32 | index dc09a0c2..19da3942 100644 | ||
33 | --- a/api/include/opentelemetry/logs/logger.h | ||
34 | +++ b/api/include/opentelemetry/logs/logger.h | ||
35 | @@ -73,7 +73,7 @@ class Logger | ||
36 | } | ||
37 | |||
38 | IgnoreTraitResult( | ||
39 | - detail::LogRecordSetterTrait<typename std::decay<ArgumentType>::type>::template Set( | ||
40 | + detail::LogRecordSetterTrait<typename std::decay<ArgumentType>::type>::template Set<>( | ||
41 | log_record.get(), std::forward<ArgumentType>(args))...); | ||
42 | |||
43 | EmitLogRecord(std::move(log_record)); | ||
44 | diff --git a/api/include/opentelemetry/logs/logger_type_traits.h b/api/include/opentelemetry/logs/logger_type_traits.h | ||
45 | index 48613513..f140a545 100644 | ||
46 | --- a/api/include/opentelemetry/logs/logger_type_traits.h | ||
47 | +++ b/api/include/opentelemetry/logs/logger_type_traits.h | ||
48 | @@ -166,7 +166,7 @@ struct LogRecordSetterTrait | ||
49 | * = nullptr> | ||
50 | inline static LogRecord *Set(LogRecord *log_record, ArgumentType &&arg) noexcept | ||
51 | { | ||
52 | - return LogRecordSetterTrait<common::KeyValueIterable>::template Set( | ||
53 | + return LogRecordSetterTrait<common::KeyValueIterable>::template Set<>( | ||
54 | log_record, std::forward<ArgumentType>(arg)); | ||
55 | } | ||
56 | |||
diff --git a/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.16.1.bb b/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.16.1.bb index a52e7aef6..c7004cc78 100644 --- a/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.16.1.bb +++ b/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.16.1.bb | |||
@@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | |||
8 | 8 | ||
9 | DEPENDS = "nlohmann-json" | 9 | DEPENDS = "nlohmann-json" |
10 | 10 | ||
11 | SRC_URI = "git://github.com/open-telemetry/opentelemetry-cpp.git;protocol=https;branch=main;" | 11 | SRC_URI = "git://github.com/open-telemetry/opentelemetry-cpp.git;protocol=https;branch=main \ |
12 | file://0001-Fix-build-with-clang-19.patch" | ||
12 | SRCREV = "baecbb95bd63df53e0af16e87bc683967962c5f8" | 13 | SRCREV = "baecbb95bd63df53e0af16e87bc683967962c5f8" |
13 | 14 | ||
14 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |