Signed-off-by: Gianfranco Costamagna <costamagnagianfra...@yahoo.it> Signed-off-by: Gianfranco Costamagna <locutusofb...@debian.org> --- .../dlt-daemon/dlt-daemon/504.patch | 34 +++++++++++++++++++ .../dlt-daemon/dlt-daemon_2.18.9.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/504.patch
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/504.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/504.patch new file mode 100644 index 000000000..3290d1108 --- /dev/null +++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/504.patch @@ -0,0 +1,34 @@ +Bug: https://bugs.debian.org/1041124 +From 3f8bc3343983697531d52918fb6cdba19593f3a8 Mon Sep 17 00:00:00 2001 +From: Gianfranco Costamagna <costamagnagianfra...@yahoo.it> +Date: Sat, 15 Jul 2023 11:31:55 +0200 +Subject: [PATCH] Update CMakeLists.txt: set required std version to gnu++14 + +New googletest 1.13.0 defaults to gnu++14, so makes this package FTBFS when building testsuite with this error: + +In file included from /usr/include/gtest/gtest-message.h:57, + from /usr/include/gtest/gtest-assertion-result.h:46, + from /usr/include/gtest/gtest.h:64, + from /build/1st/dlt-daemon-2.18.9/tests/gtest_dlt_user.cpp:27: +/usr/include/gtest/internal/gtest-port.h:270:2: error: #error C++ versions less than C++14 are not supported. + 270 | #error C++ versions less than C++14 are not supported. + | ^~~~~ + +Thanks Adrian Bunk <b...@debian.org> for the report and the fix! +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 014fc3bb..b2e056db 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -213,7 +213,7 @@ endif() + + add_compile_options( + $<$<COMPILE_LANGUAGE:C>:-std=gnu99> +- $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++11> ++ $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++14> + -Wall + -Wextra + # -pedantic diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.9.bb b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.9.bb index 9a7b38b49..2d6d1879a 100644 --- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.9.bb +++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.9.bb @@ -19,6 +19,7 @@ SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \ file://0004-Modify-systemd-config-directory.patch \ file://481.patch \ file://482.patch \ + file://504.patch \ " SRCREV = "9a2312d3512a27620d41b9a325338b6e7b3d42de" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103973): https://lists.openembedded.org/g/openembedded-devel/message/103973 Mute This Topic: https://lists.openembedded.org/mt/100281329/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-