diff options
Diffstat (limited to 'nebula-velodyne-hw-interfaces.spec')
| -rw-r--r-- | nebula-velodyne-hw-interfaces.spec | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nebula-velodyne-hw-interfaces.spec b/nebula-velodyne-hw-interfaces.spec index 255c4c6..73d63bc 100644 --- a/nebula-velodyne-hw-interfaces.spec +++ b/nebula-velodyne-hw-interfaces.spec @@ -71,6 +71,19 @@ BuildRequires: boost-devel # 已实证踩坑,COPR build 112600 → 112602 修复)。openEuler 包名按 pkg.remap # "nlohmann-json-dev nlohmann-json-devel" 映射(§6 deb→rpm 映射,非凭经验猜名) BuildRequires: nlohmann-json-devel +# 系统依赖:nebula_velodyne_common 的 ament 导出依赖含 yaml-cpp(其 package.xml +# 有 <depend>yaml-cpp</depend>,CMakeLists:25 ament_export_dependencies( +# nebula_core_common yaml-cpp))。该名字不在本包 package.xml,但 CMake 配置期沿 +# autoware_package → ament_auto_find_build_dependencies → +# include(nebula_velodyne_commonConfig) → +# ament_cmake_export_dependencies-extras.cmake find_package(yaml-cpp) +# 链式触发,缺失即报 "Could not find a package configuration file provided by +# yaml-cpp"(实证于 COPR build 112603)。openEuler 包名按 pkg.remap +# "yaml-cpp yaml-cpp-devel" 映射(§6 deb→rpm 映射,非凭经验猜名);已用 +# dnf repoquery -l yaml-cpp-devel 实证其提供 +# /usr/lib64/cmake/yaml-cpp/yaml-cpp-config.cmake(正是 find_package(yaml-cpp) +# 的查找目标)。同族 nebula-velodyne 的 package.xml 直接声明该依赖,写法一致 +BuildRequires: yaml-cpp-devel # 测试依赖:package.xml 无 <test_depend>,CMakeLists 第 36-60 行的 # test_velodyne_hw_interface 仅在 BUILD_TESTING 时启用,已由 §5 构建参数 # -DBUILD_TESTING=OFF -DTESTING=OFF 关闭,不写额外 BuildRequires(§5) @@ -88,6 +101,10 @@ Requires: boost-devel # 同理,nebula_core_common 经 ament_export_dependencies 传播的 nlohmann_json 在 # 安装侧也要能被 find_package,否则下游包在本包之上配置时同样报缺失(§6) Requires: nlohmann-json-devel +# 同理,nebula_velodyne_common 经 ament_export_dependencies 传播的 yaml-cpp 在 +# 安装侧也要能被 find_package(本包 .so 又与 nebula_velodyne_common 链式链接 +# 到 libyaml-cpp.so),运行期缺它同样报配置失败(§6) +Requires: yaml-cpp-devel # §7 单包策略:ROS 包严禁拆实体子包(同一路径被两个子包拥有会安装冲突), # 用虚拟别名兼容依赖方 @@ -150,3 +167,4 @@ make install DESTDIR=%{buildroot} - Initial import (ROS batch) - Fix: 注释里裸的 cmake 宏名被 rpm 展开,残留文本串进 cmake 位置参数(build 112576) - Fix: add nlohmann-json-devel BuildRequires/Requires (exported by nebula_core_common) +- Fix: add yaml-cpp-devel BuildRequires/Requires (exported by nebula_velodyne_common) |
