From e9cf0a1c8c68c13cabb2fe60e89d96dfdf75db89 Mon Sep 17 00:00:00 2001 From: filippobrizzi Date: Tue, 12 Mar 2024 15:38:18 +0000 Subject: [PATCH] working --- docker/Dockerfile | 4 ++++ docker/version.sh | 4 ++-- external/CMakeLists.txt | 38 ++------------------------------ modules/utils/src/version_impl.h | 2 +- 4 files changed, 9 insertions(+), 39 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index a293fe84..29f3cbb1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -35,6 +35,10 @@ RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-$CLANG_VE RUN ln -s /usr/bin/clangd-${CLANG_VERSION} /usr/bin/clangd +RUN echo "deb [trusted=yes] https://download.eclipse.org/zenoh/debian-repo/ /" | tee -a /etc/apt/sources.list.d/zenoh.list > /dev/null && \ + apt-get update && apt-get install zenoh && \ + rm -rf /var/lib/apt/lists/* + RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust_installer.sh && chmod +x rust_installer.sh && ./rust_installer.sh -y RUN . "$HOME/.cargo/env" && cargo install sccache --locked RUN echo "export RUSTC_WRAPPER=sccache" >> $HOME/.bashrc diff --git a/docker/version.sh b/docker/version.sh index ed89b5d4..56816ed0 100644 --- a/docker/version.sh +++ b/docker/version.sh @@ -1,6 +1,6 @@ HOST=ghcr.io/olympus-robotics -VERSION=1.0.4 +VERSION=1.0.5 IMAGE=hephaestus-dev # This is the version of the dep image. Increase this number everytime you change `external/CMakeLists.txt` -DEPS_VERSION=1.0.7 +DEPS_VERSION=1.0.8 diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index cb91db11..a6b26503 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -17,7 +17,7 @@ include(${CMAKE_TEMPLATE_DIR}/external.cmake) # correctly includes them. # -------------------------------------------------------------------------------------------------- if(zenohcxx IN_LIST EXTERNAL_PROJECTS_LIST) - set(ZENOHCXX_DEPENDS zenohc zenohd) + set(ZENOHCXX_DEPENDS zenohc) list(APPEND EXTERNAL_PROJECTS_LIST ${ZENOHCXX_DEPENDS}) endif() @@ -29,42 +29,8 @@ endif() # -------------------------------------------------------------------------------------------------- # zenoh -if(zenohd IN_LIST EXTERNAL_PROJECTS_LIST) - set(zenohd_VERION_REQUIRED 0.10.1-rc) - - foreach(path ${CMAKE_PREFIX_PATH}) - if(EXISTS "${path}/bin/zenohd") - set(ZENOHD_BIN "${path}/bin/zenohd") - break() - endif() - endforeach() - if(ZENOHD_BIN) - message(STATUS "zenohd: Using from ${ZENOHD_BIN}") - add_dummy_target(zenohd) - else() - message(STATUS "zenohd: Building ${zenohd_VERION_REQUIRED} from source") - set(ZENOH_PLUGIN_LIB "target/release/libzenoh_plugin_rest.so") - if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") - set(ZENOH_PLUGIN_LIB "target/release/libzenoh_plugin_rest.dylib") - endif() - ExternalProject_Add( - zenohd - GIT_REPOSITORY "https://github.com/eclipse-zenoh/zenoh.git" - GIT_TAG ${zenohd_VERION_REQUIRED} - GIT_SHALLOW true - CONFIGURE_COMMAND "" - BUILD_COMMAND - COMMAND cargo build --release --package zenoh-plugin-rest --package zenohd - BUILD_IN_SOURCE true - INSTALL_COMMAND cp target/release/zenohd ${CMAKE_INSTALL_PREFIX}/bin/ && cp ${ZENOH_PLUGIN_LIB} - ${CMAKE_INSTALL_PREFIX}/bin/ - LOG_BUILD ON - ) - endif() -endif() - set(GIT_TAG "10176b911096cb92b8ee46bc491b78079ee26c20") -add_cmake_dependency(NAME zenohc DEPENDS zenohd URL "https://github.com/eclipse-zenoh/zenoh-c/archive/${GIT_TAG}.zip") +add_cmake_dependency(NAME zenohc URL "https://github.com/eclipse-zenoh/zenoh-c/archive/${GIT_TAG}.zip") set(GIT_TAG "c0b7adb077cbf0b7b0cd04addb6de741b338fc49") add_cmake_dependency( diff --git a/modules/utils/src/version_impl.h b/modules/utils/src/version_impl.h index d8f7d484..18ea82ba 100644 --- a/modules/utils/src/version_impl.h +++ b/modules/utils/src/version_impl.h @@ -19,6 +19,6 @@ static constexpr std::uint16_t VERSION_PATCH = 1; static constexpr std::string_view REPO_BRANCH = "fix_format_submodule"; static constexpr std::string_view BUILD_PROFILE = "RelWithDebInfo"; -static constexpr std::string_view REPO_HASH = "d5dd1f4"; +static constexpr std::string_view REPO_HASH = "ca8eebe"; } // namespace heph::utils