diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-09 05:18:13 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-09 05:18:13 +0000 |
| commit | 2432c5acf0df08a2baa66e8107fd6aa5986d713f (patch) | |
| tree | d0247cbd7b416a32a54eff73d5dbc09b4415b95f | |
| parent | 139931a84d0cf468ba1d9dddf61f4c48e377d389 (diff) | |
automatic import of ament_cmakeopeneuler24.03_LTS_SP3
| -rw-r--r-- | ament_cmake.spec | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ament_cmake.spec b/ament_cmake.spec index 2108735..9740fe1 100644 --- a/ament_cmake.spec +++ b/ament_cmake.spec @@ -30,12 +30,15 @@ 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 +# Also disable 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. +# On openEuler, check-buildroot runs via the arch install post hook (not +# the os install post hook), so we null the arch hook to disable it. %global debug_package %{nil} -%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 __arch_install_post %{nil} +%global __os_install_post %(echo '%{__os_install_post}' | sed -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}/.*$ |
