Skip to content

Commit b27e32e

Browse files
authored
Merge pull request #10844 from The-OpenROAD-Project-staging/bazel-gui-x11-runtime-libs
bazel/Dockerfile: add X11/xcb runtime libs for --//:platform=gui
2 parents d901af3 + 4281bfc commit b27e32e

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

bazel/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,37 @@ RUN apt-get -y update \
3333
python3-yaml \
3434
time
3535

36+
# Runtime X11/xcb libraries for the Qt GUI build (--//:platform=gui).
37+
# Qt itself is hermetic (qt-bazel prebuilts), but the linked openroad binary
38+
# still resolves libX11/libxcb/libxkbcommon from the system at load time, so
39+
# without these every test against the gui binary dies at ld.so with
40+
# "libX11-xcb.so.1: cannot open shared object file". This is the runtime
41+
# (non -dev) subset of etc/DependencyInstaller.sh's GUI xcb list.
42+
RUN apt-get -y update \
43+
&& apt-get -y install --no-install-recommends \
44+
libx11-6 \
45+
libx11-xcb1 \
46+
libsm6 \
47+
libice6 \
48+
libxcb1 \
49+
libxcb-cursor0 \
50+
libxcb-icccm4 \
51+
libxcb-image0 \
52+
libxcb-keysyms1 \
53+
libxcb-randr0 \
54+
libxcb-render0 \
55+
libxcb-render-util0 \
56+
libxcb-shape0 \
57+
libxcb-shm0 \
58+
libxcb-sync1 \
59+
libxcb-util1 \
60+
libxcb-xfixes0 \
61+
libxcb-xkb1 \
62+
libdbus-1-3 \
63+
libfontconfig1 \
64+
libxkbcommon0 \
65+
libxkbcommon-x11-0
66+
3667
RUN groupadd -g 9000 user \
3768
&& useradd -u 9000 -g 9000 -m -s /bin/bash user
3869
USER user

0 commit comments

Comments
 (0)