diff --git a/includes-ros2/yaml-cpp-vendor/yaml-cpp-vendor.inc b/includes-ros2/yaml-cpp-vendor/yaml-cpp-vendor.inc index 9acfe44..e4e335d 100644 --- a/includes-ros2/yaml-cpp-vendor/yaml-cpp-vendor.inc +++ b/includes-ros2/yaml-cpp-vendor/yaml-cpp-vendor.inc @@ -20,3 +20,11 @@ FILES_${PN}-dev_prepend = " \ " INSANE_SKIP_${PN} = "dev-so libdir" + +# HACK: Need to figure out how to have "opkg install" look in other directories for libraries to satisfy run-time dependencies. +# The link is removed in ros2_image_rm_vendor_lib_symlinks(), which is appended to ROOTFS_POSTINSTALL_COMMAND in +# ros2_image.bbclass . +pkg_postinst_${PN}() { + mkdir -p $D${libdir} + ln -s ../opt/${ROS_BPN}/lib/libyaml-cpp.so.0.6.2 $D${libdir}/libyaml-cpp.so.0.6 +}