summaryrefslogtreecommitdiff
path: root/rtabmap-slam.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-03-31 02:40:38 +0000
committerCoprDistGit <infra@openeuler.org>2026-03-31 02:40:38 +0000
commit8d86229f4af9388fc44e206ddeb07d1aaa3dc69b (patch)
tree2ee14590ca96b550549c43fcabca66903a7ea7f4 /rtabmap-slam.spec
parentf690aee00a44fa9060a9f139ecfcff9524ff4660 (diff)
automatic import of rtabmap-slamopeneuler24.03_LTS
Diffstat (limited to 'rtabmap-slam.spec')
-rw-r--r--rtabmap-slam.spec9
1 files changed, 5 insertions, 4 deletions
diff --git a/rtabmap-slam.spec b/rtabmap-slam.spec
index 5ea7a45..06786ab 100644
--- a/rtabmap-slam.spec
+++ b/rtabmap-slam.spec
@@ -1,6 +1,10 @@
%bcond_with tests
%bcond_without weak_deps
+# Reduce debug info level to avoid OOM/timeout on EUR aarch64 builder
+# CoreWrapper.cpp is huge and -g (full DWARF) causes multi-hour compile
+%global optflags %(echo '%{optflags}' | sed 's/-g /-g1 /; s/-grecord-gcc-switches//')
+
%define ros_distro humble
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
@@ -11,7 +15,7 @@
Name: ros-%{ros_distro}-%{RosPkgName}
Version: 0.22.1
-Release: 3%{?dist}%{?release_suffix}
+Release: 4%{?dist}%{?release_suffix}
Summary: RTAB-Map's SLAM package.
License: BSD
@@ -80,9 +84,6 @@ export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packa
# in the install tree and source it. It will set things like
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
-# Strip -g from flags to reduce compile time and memory on EUR aarch64 builder
-export CFLAGS=$(echo $CFLAGS | sed 's/-g /-g1 /g; s/-grecord-gcc-switches//g')
-export CXXFLAGS=$(echo $CXXFLAGS | sed 's/-g /-g1 /g; s/-grecord-gcc-switches//g')
mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform}
%cmake3 \
-UINCLUDE_INSTALL_DIR \