Commit 383319f
Ubuntu 26.04: Fix OCCT dependencies to avoid VTK/Java/GCC-16 bloat
The libocct-*-dev packages in Ubuntu 26.04 have a hard dependency on
libocct-ivtk-dev, which pulls in the full VTK stack, Java (OpenJDK 25),
MPI, the GCC-16 compiler suite, Boost dev, GDAL, HDF5, media codecs,
and ~2GB of other transitive bloat.
To work around this Ubuntu 26.04 packaging issue:
1. Install the OCCT runtime packages (libocct-*-7.9) via apt normally -
they have no VTK dependency.
2. Extract the dev package files (headers, cmake configs, .so symlinks)
using dpkg-deb -x, bypassing apt dependency resolution entirely.
3. Also extract libocct-ivtk-7.9 (the 112K runtime .so) so that cmake's
OpenCASCADEVisualizationTargets.cmake can find libTKIVtk.so.7.9.
4. Remove cargo registry/git cache after cargo install to save space.
Verified: cmake find_package(OpenCASCADE) succeeds and a test program
using BRep/STEP headers compiles successfully, with no VTK or Java
installed in the image.
Agent-Logs-Url: https://github.com/LibrePCB/docker-librepcb-dev/sessions/13556661-f78f-4ed6-8f93-71071bd01171
Co-authored-by: ubruhin <5374821+ubruhin@users.noreply.github.com>1 parent 98f9ed3 commit 383319f
1 file changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
| |||
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
55 | 82 | | |
56 | 83 | | |
57 | 84 | | |
| |||
63 | 90 | | |
64 | 91 | | |
65 | 92 | | |
| 93 | + | |
66 | 94 | | |
67 | 95 | | |
68 | 96 | | |
| |||
0 commit comments