diff --git a/.github/workflows/ros2.yaml b/.github/workflows/ros2.yaml
index 0727ef8..2b29f8f 100644
--- a/.github/workflows/ros2.yaml
+++ b/.github/workflows/ros2.yaml
@@ -16,3 +16,7 @@ jobs:
- uses: ros-industrial/industrial_ci@master
env:
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
+ # lyrical and rolling with the repository of the build farm (building), as the build farm builds the packages
+ # with it: the changes of the dependencies (e.g. of cv_bridge) break the build there before they reach the
+ # testing and main ones
+ ROS_REPOSITORY_PATH: ${{ (matrix.ROS_DISTRO == 'lyrical' || matrix.ROS_DISTRO == 'rolling') && 'http://repo.ros2.org/ubuntu/building' || '' }}
diff --git a/posedetection_msgs/CMakeLists.txt b/posedetection_msgs/CMakeLists.txt
index e184051..7032e02 100644
--- a/posedetection_msgs/CMakeLists.txt
+++ b/posedetection_msgs/CMakeLists.txt
@@ -76,6 +76,9 @@ elseif("$ENV{ROS_VERSION}" EQUAL 2)
find_package(${_dep} REQUIRED)
endforeach()
+ # libopencv-dev is a build_depend for cv_bridge (see package.xml), not a package of the interfaces
+ ament_package_xml()
+ list(REMOVE_ITEM ${PROJECT_NAME}_BUILD_DEPENDS libopencv-dev)
rosidl_auto_generate_interfaces(ADD_LINTER_TESTS)
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
diff --git a/posedetection_msgs/package.xml b/posedetection_msgs/package.xml
index 750fc57..b4c5bb7 100644
--- a/posedetection_msgs/package.xml
+++ b/posedetection_msgs/package.xml
@@ -21,6 +21,9 @@
sensor_msgs
geometry_msgs
cv_bridge
+
+ libopencv-dev
message_generation
rosidl_default_generators
message_filters