From cd0672a9da5d28365e2e5af3bd9f80d63d048b9a Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Fri, 7 Jun 2019 18:48:27 -0700 Subject: [PATCH] HACK yaml-cpp-vendor.inc: Symlink library into libdir --- includes-ros2/yaml-cpp-vendor/yaml-cpp-vendor.inc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +}