Commit 4281bfc
committed
bazel/Dockerfile: add X11/xcb runtime libs for --//:platform=gui
The Qt GUI openroad binary (built with --//:platform=gui) links against
qt-bazel prebuilts, which stub X11 at link time but resolve libX11/libxcb/
libxkbcommon from the system at load time. The slim bazel-ci image ships no
X11 runtime, so every bazel test run against the gui binary dies immediately
at ld.so with:
openroad: error while loading shared libraries: libX11-xcb.so.1:
cannot open shared object file: No such file or directory
Install the runtime (non -dev) subset of etc/DependencyInstaller.sh's GUI
xcb package list. This exactly covers the gui openroad binary's direct
NEEDED entries (verified via readelf/ldd); the tcl test suite runs in CLI
mode and needs no X server or QT_QPA_PLATFORM.
This unblocks jenkins-ci#155, which switches `bazelisk test` to the gui
binary to populate the gui cache.
Signed-off-by: SombraSoft <sombrio@sombrasoft.dev>1 parent 165dbe2 commit 4281bfc
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
36 | 67 | | |
37 | 68 | | |
38 | 69 | | |
0 commit comments