From 1af076b58ee1f0bd1bec7d101b5684a294342744 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 29 Sep 2026 05:11:22 +0000 Subject: automatic import of ros-humble-cartographer-rviz --- cartographer-rviz.spec | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'cartographer-rviz.spec') diff --git a/cartographer-rviz.spec b/cartographer-rviz.spec index fa8da31..08b485e 100644 --- a/cartographer-rviz.spec +++ b/cartographer-rviz.spec @@ -4,7 +4,7 @@ Name: ros-%{ros_distro}-%{RosPkgName} Version: 2.0.9002 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Cartographer is a system that provides real-time simultaneous localization and License: Apache 2.0 URL: https://github.com/ros2/cartographer_ros/tree/ros2 @@ -53,6 +53,41 @@ Cartographer is a system that provides real-time simultaneous localization %prep %autosetup -n %{RosPkgName}-%{src_version} +cat > cartographer_rviz/include/cartographer_rviz/thread_safety_shim.h << 'SHIM' +#ifndef THREAD_SAFETY_SHIM_H +#define THREAD_SAFETY_SHIM_H +#ifndef GUARDED_BY +#define GUARDED_BY(x) +#endif +#ifndef EXCLUSIVE_LOCKS_REQUIRED +#define EXCLUSIVE_LOCKS_REQUIRED(x) +#endif +#ifndef LOCKS_EXCLUDED +#define LOCKS_EXCLUDED(x) +#endif +#ifndef EXCLUSIVE_LOCK_FUNCTION +#define EXCLUSIVE_LOCK_FUNCTION(x) +#endif +#ifndef UNLOCK_FUNCTION +#define UNLOCK_FUNCTION(x) +#endif +#ifndef SHARED_LOCKS_REQUIRED +#define SHARED_LOCKS_REQUIRED(x) +#endif +#ifndef ASSERT_EXCLUSIVE_LOCK +#define ASSERT_EXCLUSIVE_LOCK(x) +#endif +#ifndef NO_THREAD_SAFETY_ANALYSIS +#define NO_THREAD_SAFETY_ANALYSIS +#endif +#endif +SHIM + +for f in cartographer_rviz/include/cartographer_rviz/drawable_submap.h \ + cartographer_rviz/include/cartographer_rviz/submaps_display.h; do + sed -i '1i#include "cartographer_rviz/thread_safety_shim.h"' "$f" +done + %build [ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || true export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH} @@ -81,5 +116,8 @@ make install DESTDIR=%{buildroot} /opt/ros/%{ros_distro} %changelog +* Tue Sep 29 2026 ai-importer - 2.0.9002-2 +- Define thread safety annotation macros via shim header (GUARDED_BY etc.) + * Tue Sep 29 2026 ai-importer - 2.0.9002-1 - Initial import (ROS batch) -- cgit v1.2.3