From afd981a792a484ce9adf699720ecee0a617c32cc Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Wed, 3 Jul 2019 07:57:24 +0000 Subject: [PATCH] realsense-camera: require ros-realsense DISTRO_FEATURE, because it depends on optional meta-intel-realsense layer * resolves following error in world builds without everybody needing to blacklist it manually for builds which don't include meta-intel-realsense layer, we could use dynamic layers for this, but as long as this is the only recipe depending on optional layer, we can just use this DISTRO_FEATURE (like thud branch of meta-ros is using now). NOTE: Resolving any missing task queue dependencies ERROR: Nothing PROVIDES 'librealsense' (but /OE/build/oe-core/meta-ros/recipes-extended/realsense-camera/realsense-camera_1.8.0.bb DEPENDS on or otherwise requires it) ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'realsense-camera', 'librealsense'] Signed-off-by: Martin Jansa --- recipes-extended/realsense-camera/realsense-camera_1.8.0.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-extended/realsense-camera/realsense-camera_1.8.0.bb b/recipes-extended/realsense-camera/realsense-camera_1.8.0.bb index 0d98e14..0b66ac8 100644 --- a/recipes-extended/realsense-camera/realsense-camera_1.8.0.bb +++ b/recipes-extended/realsense-camera/realsense-camera_1.8.0.bb @@ -13,6 +13,8 @@ SRC_URI[sha256sum] = "18e2d3e847b3b1158c124b6167ea2751236a2749aca03532ca7d9f5b7b S = "${WORKDIR}/realsense-${PV}/realsense_camera" -inherit catkin +inherit catkin distro_features_check + +REQUIRED_DISTRO_FEATURES = "ros-realsense" EXTRA_OECMAKE = "-DUSE_SYSTEM_LIBREALSENSE:BOOL=ON"