From 5f755e95dbafd46d3810112017fe3aa519a8bb9d Mon Sep 17 00:00:00 2001 From: Seth Landry Date: Sat, 11 Jan 2025 22:26:18 -0600 Subject: [PATCH] Fix build issue on Ubuntu 24.04 Fixes #833 Update workflow and documentation to address build issues on Ubuntu 24.04. * **README.md** - Add a note to use Ubuntu 22.04 as a temporary fix for build issues on Ubuntu 24.04. - Mention the issue related to the GitHub Actions runner update. * **.github/workflows/c-cpp.yml** - Change `runs-on` from `ubuntu-latest` to `ubuntu-22.04` for the job `build_on_ubuntu_boost_183_gcc_x86`. * **Dockerfile** - Update base image from `ubuntu:jammy` to `ubuntu:22.04`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/COVESA/vsomeip/issues/833?shareId=XXXX-XXXX-XXXX-XXXX). --- .github/workflows/c-cpp.yml | 2 +- Dockerfile | 2 +- README.md | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 16983637f..0c403dd56 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,7 +8,7 @@ on: jobs: build_on_ubuntu_boost_183_gcc_x86: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Ubuntu - Install boost 1.83.0 with gcc and x86 uses: MarkusJx/install-boost@v2.4.4 diff --git a/Dockerfile b/Dockerfile index 0f131fc08..19e8c2356 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:jammy +FROM ubuntu:22.04 SHELL ["/bin/bash", "-xec"] RUN export DEBIAN_FRONTEND=noninteractive;\ apt-get update;\ diff --git a/README.md b/README.md index 78159d08e..d121bd8ad 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,9 @@ cmake -DENABLE_SIGNAL_HANDLING=1 .. ``` In the default setting, the application has to take care of shutting down vSomeIP in case these signals are received. +###### Note on Ubuntu 24.04 Build Issues + +If you encounter build issues on Ubuntu 24.04, consider using Ubuntu 22.04 as a temporary fix. This is due to the ongoing transition of the GitHub Actions runner to Ubuntu 24.04, which may cause compatibility issues. ##### Build Instructions for Android