vsomeip: upgrade 3.5.3 -> 3.5.10
PATCH v2 1/1 vsomeip: upgrade 3.5.3 -> 3.5.10
ChangeLog:
https://github.com/COVESA/vsomeip/releases/tag/3.5.4
https://github.com/COVESA/vsomeip/releases/tag/3.5.5
https://github.com/COVESA/vsomeip/releases/tag/3.5.6
https://github.com/COVESA/vsomeip/releases/tag/3.5.7
https://github.com/COVESA/vsomeip/releases/tag/3.5.8
https://github.com/COVESA/vsomeip/releases/tag/3.5.9
https://github.com/COVESA/vsomeip/releases/tag/3.5.10
* Fix build with boost 1.89
* Fix build on 32-bit host
---
V2 Changes: Update to 3.5.10
Fix build with clang
Update Upstream-Status in patches
.../0001-Fix-pkgconfig-dir-for-multilib.patch | 8 +-
...e-configuration-files-to-etc-vsomeip.patch | 8 +-
...-Do-not-specify-PIE-flag-explicitly.patch} | 21 +--
.../0004-Fix-build-with-boost-1.89.patch | 42 ++++++
...ddress-from_string-with-make_address.patch | 47 +++++++
...eLists.txt-add-missing-link-with-dlt.patch | 41 ------
...06-Fix-scanning-64-bit-integer-types.patch | 128 ++++++++++++++++++
...treat-warnings-as-errors-with-clang.patch} | 45 +++---
.../{vsomeip_3.5.3.bb => vsomeip_3.5.10.bb} | 32 +++--
9 files changed, 278 insertions(+), 94 deletions(-)
copy meta-networking/recipes-protocols/vsomeip/vsomeip/{0004-Do-not-specify-PIE-flag-explicitly.patch => 0003-Do-not-specify-PIE-flag-explicitly.patch} (82%)
create mode 100644 meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Fix-build-with-boost-1.89.patch
create mode 100644 meta-networking/recipes-protocols/vsomeip/vsomeip/0005-Replace-address-from_string-with-make_address.patch
delete mode 100644 meta-networking/recipes-protocols/vsomeip/vsomeip/0005-test-common-CMakeLists.txt-add-missing-link-with-dlt.patch
create mode 100644 meta-networking/recipes-protocols/vsomeip/vsomeip/0006-Fix-scanning-64-bit-integer-types.patch
rename meta-networking/recipes-protocols/vsomeip/vsomeip/{0004-Do-not-specify-PIE-flag-explicitly.patch => 0007-Do-not-treat-warnings-as-errors-with-clang.patch} (50%)
rename meta-networking/recipes-protocols/vsomeip/{vsomeip_3.5.3.bb => vsomeip_3.5.10.bb} (66%)meta-networking/recipes-protocols/vsomeip/vsomeip/0001-Fix-pkgconfig-dir-for-multilib.patch +4 -4
@@ -1,4 +1,4 @@ -From 2f931baf290477b586309189445bf87e3bc5d5ba Mon Sep 17 00:00:00 2001 +From 0be97662524d86a24647f7c37b0a66b18da7b72c Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 2 Mar 2022 14:51:13 +0800 Subject: [PATCH] Fix pkgconfig dir for multilib
@@ -11,10 +11,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index ab399a69..beae6eaf 100644 +index 8445ecc8..12c3b947 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -637,7 +637,7 @@ endif() +@@ -661,7 +661,7 @@ endif() # create pkg-config file if(NOT WIN32) configure_file(${VSOMEIP_NAME}.pc.in ${PROJECT_BINARY_DIR}/${VSOMEIP_NAME}.pc @ONLY)
@@ -24,5 +24,5 @@ index ab399a69..beae6eaf 100644 ############################################################################## -- -2.25.1 +2.34.1
meta-networking/recipes-protocols/vsomeip/vsomeip/0002-Install-example-configuration-files-to-etc-vsomeip.patch +4 -4
@@ -1,4 +1,4 @@ -From ebaa3206ee125741314272cddafa04fa71bd2d1e Mon Sep 17 00:00:00 2001 +From c9d03f6b100d1be8bee75caf933e10fcbb599db3 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 9 Mar 2022 11:48:44 +0800 Subject: [PATCH] Install example configuration files to /etc/vsomeip
@@ -11,10 +11,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index beae6eaf..d791c12e 100644 +index 12c3b947..b42f8688 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -536,7 +536,7 @@ install(FILES ${PROJECT_BINARY_DIR}/vsomeip.pc DESTINATION lib/pkgconfig) +@@ -578,7 +578,7 @@ install(FILES ${PROJECT_BINARY_DIR}/vsomeip.pc DESTINATION lib/pkgconfig) endif () install (
@@ -24,5 +24,5 @@ index beae6eaf..d791c12e 100644 # Add all targets to the build-tree export set -- -2.25.1 +2.34.1
meta-networking/recipes-protocols/vsomeip/vsomeip/0003-Do-not-specify-PIE-flag-explicitly.patch renamed from meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Do-not-specify-PIE-flag-explicitly.patch +13 -8
@@ -1,4 +1,4 @@ -From ec2d36466c9050ee282ea1c3bb1b5f1f61c96ecb Mon Sep 17 00:00:00 2001 +From 8054f459d47cde818ed9d1eb1e49efb4a8d4b3df Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Mon, 17 Jul 2023 14:33:32 +0800 Subject: [PATCH] Do not specify PIE flag explicitly
@@ -23,9 +23,11 @@ Signed-off-by: Yi Zhao <[email protected]> CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b42f8688..c39184e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -70,7 +70,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" +@@ -73,7 +73,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # This is only relevant for GCC and causes warnings on Clang set(EXPORTSYMBOLS "-Wl,-export-dynamic -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exportmap.gcc")
@@ -34,12 +36,15 @@ Signed-off-by: Yi Zhao <[email protected]> endif() set(NO_DEPRECATED "") -@@ -78,7 +78,7 @@ endif() - if(NOT DEFINED _FORTIFY_SOURCE) - set(_FORTIFY_SOURCE 2) - endif() -- set(OS_CXX_FLAGS "${OS_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=${_FORTIFY_SOURCE} -Wformat -Wformat-security -Wpedantic -Werror -fPIE") -+ set(OS_CXX_FLAGS "${OS_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=${_FORTIFY_SOURCE} -Wformat -Wformat-security -Wpedantic") +@@ -82,7 +82,7 @@ endif() + if(NOT DEFINED _FORTIFY_SOURCE) + set(_FORTIFY_SOURCE 2) + endif() +- set(OS_CXX_FLAGS "${OS_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=${_FORTIFY_SOURCE} -Wformat -Wformat-security -Wpedantic -Werror -fPIE -Wno-inconsistent-missing-override") ++ set(OS_CXX_FLAGS "${OS_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=${_FORTIFY_SOURCE} -Wformat -Wformat-security -Wpedantic -Werror -Wno-inconsistent-missing-override") # force all use of std::mutex and std::recursive_mutex to use runtime init # instead of static initialization so mutexes can be hooked to enable PI as needed +-- +2.34.1 +
meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Fix-build-with-boost-1.89.patch new file +42 -0
42 lines not on this page · raw message
meta-networking/recipes-protocols/vsomeip/vsomeip/0005-Replace-address-from_string-with-make_address.patch new file +47 -0
47 lines not on this page · raw message
meta-networking/recipes-protocols/vsomeip/vsomeip/0005-test-common-CMakeLists.txt-add-missing-link-with-dlt.patch deleted +0 -41
41 lines not on this page · raw message
meta-networking/recipes-protocols/vsomeip/vsomeip/0006-Fix-scanning-64-bit-integer-types.patch new file +128 -0
128 lines not on this page · raw message
meta-networking/recipes-protocols/vsomeip/vsomeip/0007-Do-not-treat-warnings-as-errors-with-clang.patch renamed from meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Do-not-specify-PIE-flag-explicitly.patch +20 -25
65 lines not on this page · raw message
meta-networking/recipes-protocols/vsomeip/vsomeip_3.5.10.bb renamed from meta-networking/recipes-protocols/vsomeip/vsomeip_3.5.3.bb +20 -12
@@ -7,25 +7,27 @@ SECTION = "net" LICENSE = "MPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3" -GTEST_VER = "1.15.2" +GTEST_VER = "1.17.0" SRC_URI = "git://github.com/GENIVI/${BPN}.git;branch=master;protocol=https;name=vsomeip \ https://github.com/google/googletest/releases/download/v${GTEST_VER}/googletest-${GTEST_VER}.tar.gz;name=gtest;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/ \ file://0001-Fix-pkgconfig-dir-for-multilib.patch \ file://0002-Install-example-configuration-files-to-etc-vsomeip.patch \ - file://0004-Do-not-specify-PIE-flag-explicitly.patch \ - file://0005-test-common-CMakeLists.txt-add-missing-link-with-dlt.patch \ + file://0003-Do-not-specify-PIE-flag-explicitly.patch \ + file://0004-Fix-build-with-boost-1.89.patch \ + file://0005-Replace-address-from_string-with-make_address.patch \ + file://0006-Fix-scanning-64-bit-integer-types.patch \ + file://0007-Do-not-treat-warnings-as-errors-with-clang.patch \ " -SRCREV = "6461369b3874c844642c9adaac9d1b7406794ab8" -SRC_URI[gtest.sha256sum] = "7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926" +SRCREV = "c4e0db329da9b63f511f3c2456c040582daf9305" +SRC_URI[gtest.sha256sum] = "65fab701d9829d38cb77c14acdc431d2108bfdbf8979e40eb8ae567edf10b27c" COMPATIBLE_HOST:mips = "null" COMPATIBLE_HOST:mips64 = "null" COMPATIBLE_HOST:powerpc = "null" COMPATIBLE_HOST:libc-musl = 'null' -DEPENDS = "boost dlt-daemon googletest" - +DEPENDS = "boost dlt-daemon" inherit cmake pkgconfig
@@ -43,9 +45,10 @@ EXTRA_OECMAKE += "-DTEST_IP_MASTER=10.0.3.1 \ RDEPENDS:${PN}-test = "bash lsof" -do_compile:append() { - cmake_runcmake_build --target examples - cmake_runcmake_build --target build_tests +OECMAKE_TARGET_COMPILE += "vsomeip_ctrl examples build_tests" + +do_compile:prepend() { + sed -i -e 's#${S}/build#/opt/${PN}-test#g' ${S}/test/unit_tests/security_policy_manager_impl_tests/policy_manager_impl_unit_test_macro.hpp } do_install:append() {
@@ -58,13 +61,17 @@ do_install:append() { install -d ${D}/opt/${PN}-test/test/test/common cp -rf ${S}/test/common/examples_policies \ ${D}/opt/${PN}-test/test/test/common/ + + install -d ${D}/opt/${PN}-test/test/common install -m 0755 ${B}/test/common/libvsomeip_utilities.so \ - ${D}/opt/${PN}-test/test/test/common/ + ${D}/opt/${PN}-test/test/common/ for d in unit_tests network_tests; do install -d ${D}/opt/${PN}-test/test/$d cp -rf ${B}/test/$d/*_tests ${D}/opt/${PN}-test/test/$d + find ${D}/opt/${PN}-test/test/$d -maxdepth 2 \( -name "*.cmake" -o -name "CMakeFiles" \) -exec rm -rf {} \; done + sed -i -e 's#../..${B}#/opt/${PN}-test#g' ${D}/opt/${PN}-test/test/network_tests/lazy_load_tests/vsomeip/vsomeip_policy_extensions.json } PACKAGES += "${PN}-test"
@@ -75,4 +82,5 @@ FILES:${PN}-dbg += " \ FILES:${PN}-test = " \ /opt/${PN}-test \ " -SKIP_RECIPE[vsomeip] ?= "Does not work with boost >= 1.87" + +INSANE_SKIP += "32bit-time"
Signature · 1 line
2.34.1