Skip to content

Commit ab705d2

Browse files
authored
Update Mavlink git repo, remove hot-patching of mavros and mavlink code (#358)
* Remove the sed-munging on mavlink and mavros * Pin docker buildx to v0.18.0 in Github workflow
1 parent c90109a commit ab705d2

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.docker/Dockerfile

+1-13
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,7 @@ WORKDIR $USER_WORKSPACE/src/
113113
ARG MAVROS_RELEASE=ros2
114114
ARG MAVLINK_RELEASE=release/rolling/mavlink
115115
RUN git clone --depth 1 -b ${MAVROS_RELEASE} https://github.com/mavlink/mavros.git
116-
RUN git clone --depth 1 --recursive -b ${MAVLINK_RELEASE} https://github.com/mavlink/mavlink-gbp-release.git mavlink
117-
# - mavgen uses future.standard_library for backwards compatibility with Python2;
118-
# However, this caused issues with Python 3.12 installed in "noble".
119-
# Comment those lines out in mavlink.
120-
#
121-
# - Fix linkage for yaml-cpp in mavros_extra_plugins
122-
RUN sed -i -e 's/^from future import standard_library/#from future import standard_library/' \
123-
-e 's/standard_library.install_aliases()/#standard_library.install_aliases()/' \
124-
mavlink/pymavlink/generator/mavgen.py && \
125-
sed -i -e 's/^# find_package(yaml_cpp REQUIRED)/find_package(yaml-cpp REQUIRED)/' \
126-
-e '/^ament_target_dependencies(mavros_extras_plugins$/i target_link_libraries(mavros_extras_plugins yaml-cpp::yaml-cpp)' \
127-
-e '/^ament_target_dependencies(mavros_extras$/i target_link_libraries(mavros_extras yaml-cpp::yaml-cpp)' \
128-
mavros/mavros_extras/CMakeLists.txt
116+
RUN git clone --depth 1 --recursive -b ${MAVLINK_RELEASE} https://github.com/ros2-gbp/mavlink-gbp-release.git mavlink
129117

130118
WORKDIR $USER_WORKSPACE
131119
RUN sudo apt-get -q update \

.github/workflows/docker.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838

3939
- name: Set up Docker Buildx
4040
uses: docker/setup-buildx-action@v3
41+
with:
42+
# Pin docker-buildx to this version for now
43+
# v0.19.2 has issues with empty keys,
44+
# particularly the "*.cache-to=" used below
45+
#
46+
version: v0.18.0
4147

4248
- if: env.PUSH == 'true'
4349
name: Log into registry

0 commit comments

Comments
 (0)