Skip to content

Commit 60ffcd1

Browse files
adrpoclaude
andauthored
Install Boost in the testing image for the maintenance branches (#389) (#390)
The base image lost Boost when OpenModelicaBuildScripts#80 dropped it from the openmodelica Build-Depends (master no longer uses it since OpenModelica#17057). The autotools build of maintenance/v1.26 and v1.27 still includes it in ParModelica/auto and links it in the C++ runtime, so the v1.27 omc build of LibraryTest #11947 stopped at parmodauto with 'boost/chrono.hpp' file not found. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 54dc295 commit 60ffcd1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.CI/testing/Dockerfile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ FROM docker.openmodelica.org/build-deps:ubuntu-26.04-rust
1919
# autoconf/automake/libtool and omniORB build the maintenance branches: master builds with cmake,
2020
# while v1.26 and v1.27 still go through `autoreconf && ./configure --with-omniORB`. The base image
2121
# carries what the cmake build needs, which is not quite the same set.
22+
# Boost is one of the differences: master dropped it (OpenModelica#17057) and so did the base
23+
# image's `apt-get build-dep openmodelica` (OpenModelicaBuildScripts#80), but the maintenance
24+
# branches still include it in ParModelica/auto (chrono, graph) and link it in the C++ runtime
25+
# (filesystem, system, serialization, program_options, log, thread).
2226
RUN export DEBIAN_FRONTEND=noninteractive \
2327
&& apt-get update \
2428
&& apt-get install -qy software-properties-common \
2529
&& add-apt-repository -y ppa:deadsnakes/ppa \
2630
&& apt-get install -qy --no-install-recommends openssh-client psmisc rsync time \
2731
&& apt-get install -qy --no-install-recommends libcomedi-dev libx11-dev libnetcdf-dev mosquitto \
2832
&& apt-get install -qy --no-install-recommends autoconf automake libtool omniidl libomniorb4-dev \
33+
&& apt-get install -qy --no-install-recommends libboost-dev libboost-chrono-dev libboost-filesystem-dev \
34+
libboost-system-dev libboost-serialization-dev libboost-program-options-dev libboost-log-dev \
35+
libboost-thread-dev \
2936
&& apt-get install -qy python3.8 python3.12 libpython3.8-dev libpython3.12-dev \
3037
&& apt-get clean \
3138
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)