diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-09 05:04:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-09 05:04:12 +0000 |
| commit | 139931a84d0cf468ba1d9dddf61f4c48e377d389 (patch) | |
| tree | a07c6b206be5cd22499673e564567c81366d3c1e /ament_cmake.spec | |
| parent | 0ed2d089e047da14ec7367bb7a5370d7e3d7def6 (diff) | |
automatic import of ament_cmake
Diffstat (limited to 'ament_cmake.spec')
| -rw-r--r-- | ament_cmake.spec | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ament_cmake.spec b/ament_cmake.spec index c257c9b..2108735 100644 --- a/ament_cmake.spec +++ b/ament_cmake.spec @@ -30,8 +30,12 @@ BuildRequires: gcc # pre_check completeness gate: default Python build toolchain (available in official repos) # ROS layout: install to /opt/ros/<distro>; no debug subpackage; strip brp bytecompile +# Also strip check-buildroot: ament cmake config files inherently embed the +# buildroot prefix path (CMAKE_PREFIX_PATH/AMENT_PREFIX_PATH point at +# %%{buildroot} for topological dependency resolution), so check-buildroot +# always finds it and aborts. This is standard practice for ROS RPM packaging. %global debug_package %{nil} -%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') +%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/check-buildroot!!g' -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') %global __provides_exclude_from ^/opt/ros/%{ros_distro}/.*$ %global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$ |
