From bfd1eebbeb551921c10cf143c3b3ea0daf192ca3 Mon Sep 17 00:00:00 2001 From: Matthias Schoepfer Date: Sun, 6 Apr 2025 10:45:33 +0200 Subject: [PATCH] tf2: fixing compile with newer boost Seems like we are missing a header here, and the location of tuple type seems to have changed. This patch allows compiling of tf with styhead. Signed-off-by: Matthias Schoepfer --- ...0001-fixing-compile-with-newer-boost.patch | 35 +++++++++++++++++++ .../geometry2/tf2_%.bbappend | 4 +++ 2 files changed, 39 insertions(+) create mode 100644 meta-ros1-noetic/recipes-bbappends/geometry2/tf2/0001-fixing-compile-with-newer-boost.patch create mode 100644 meta-ros1-noetic/recipes-bbappends/geometry2/tf2_%.bbappend diff --git a/meta-ros1-noetic/recipes-bbappends/geometry2/tf2/0001-fixing-compile-with-newer-boost.patch b/meta-ros1-noetic/recipes-bbappends/geometry2/tf2/0001-fixing-compile-with-newer-boost.patch new file mode 100644 index 00000000000..b800a64ef4e --- /dev/null +++ b/meta-ros1-noetic/recipes-bbappends/geometry2/tf2/0001-fixing-compile-with-newer-boost.patch @@ -0,0 +1,35 @@ +From 3ecd728ecb016fee816e28273b86a362463f6f79 Mon Sep 17 00:00:00 2001 +From: Matthias Schoepfer +Date: Thu, 27 Mar 2025 20:39:41 +0100 +Subject: [PATCH] fixing compile with newer boost + +The boost tuple seems to have changed, and the header was missing + +Upstream-Status: Pending + +Signed-off-by: Matthias Schoepfer +--- + src/buffer_core.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/buffer_core.cpp b/src/buffer_core.cpp +index b2eb4877b..de01cf73b 100644 +--- a/src/buffer_core.cpp ++++ b/src/buffer_core.cpp +@@ -38,6 +38,7 @@ + #include + #include "tf2/LinearMath/Transform.h" + #include ++#include + + namespace tf2 + { +@@ -1412,7 +1413,7 @@ void BufferCore::testTransformableRequests() + boost::mutex::scoped_lock lock(transformable_requests_mutex_); + V_TransformableRequest::iterator it = transformable_requests_.begin(); + +- typedef boost::tuple TransformableTuple; + std::vector transformables; + diff --git a/meta-ros1-noetic/recipes-bbappends/geometry2/tf2_%.bbappend b/meta-ros1-noetic/recipes-bbappends/geometry2/tf2_%.bbappend new file mode 100644 index 00000000000..8adaae759bc --- /dev/null +++ b/meta-ros1-noetic/recipes-bbappends/geometry2/tf2_%.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://0001-fixing-compile-with-newer-boost.patch" +