Skip to content

Commit 6819283

Browse files
committed
Deduplicate package deps in qt6 Dockerfile
1 parent ec5357e commit 6819283

1 file changed

Lines changed: 4 additions & 41 deletions

File tree

taskcluster/docker/linux-qt6-build/Dockerfile

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ RUN apt-get update -q
2525
RUN apt-get -y install tzdata
2626
RUN apt-get -y install build-essential \
2727
clang-16 \
28+
cmake \
2829
curl \
2930
debhelper \
3031
devscripts \
3132
equivs \
33+
golang \
3234
libclang-16-dev \
3335
libgl1-mesa-dev \
3436
locales \
3537
ninja-build \
3638
patchelf \
39+
pkg-config \
3740
sudo
3841

3942
# Enable multiarch and add cross-compilation toolchain
@@ -43,49 +46,9 @@ RUN if [ "$DEB_HOST_ARCH" != "amd64" ]; then \
4346
crossbuild-essential-${DEB_HOST_ARCH} \
4447
gcc-${DEB_HOST_GNU_CPU}-linux-gnu \
4548
g++-${DEB_HOST_GNU_CPU}-linux-gnu \
46-
binutils-${DEB_HOST_GNU_CPU}-linux-gnu \
47-
pkg-config \
48-
cmake \
49-
golang; \
49+
binutils-${DEB_HOST_GNU_CPU}-linux-gnu; \
5050
fi
5151

52-
## Install Qt6/X11 build dependencies
53-
## From: https://doc.qt.io/qt-6/linux-requirements.html
54-
RUN apt-get -y install libatspi2.0-dev:${DEB_HOST_ARCH} \
55-
libdbus-1-dev:${DEB_HOST_ARCH} \
56-
libfontconfig1-dev:${DEB_HOST_ARCH} \
57-
libfreetype6-dev:${DEB_HOST_ARCH} \
58-
libgles-dev:${DEB_HOST_ARCH} \
59-
libssl-dev:${DEB_HOST_ARCH} \
60-
libx11-dev:${DEB_HOST_ARCH} \
61-
libx11-xcb-dev:${DEB_HOST_ARCH} \
62-
libxext-dev:${DEB_HOST_ARCH} \
63-
libxfixes-dev:${DEB_HOST_ARCH} \
64-
libxi-dev:${DEB_HOST_ARCH} \
65-
libxrender-dev:${DEB_HOST_ARCH} \
66-
libxcb1-dev:${DEB_HOST_ARCH} \
67-
libxcb-cursor-dev:${DEB_HOST_ARCH} \
68-
libxcb-glx0-dev:${DEB_HOST_ARCH} \
69-
libxcb-keysyms1-dev:${DEB_HOST_ARCH} \
70-
libxcb-image0-dev:${DEB_HOST_ARCH} \
71-
libxcb-shm0-dev:${DEB_HOST_ARCH} \
72-
libxcb-icccm4-dev:${DEB_HOST_ARCH} \
73-
libxcb-sync-dev:${DEB_HOST_ARCH} \
74-
libxcb-xfixes0-dev:${DEB_HOST_ARCH} \
75-
libxcb-shape0-dev:${DEB_HOST_ARCH} \
76-
libxcb-randr0-dev:${DEB_HOST_ARCH} \
77-
libxcb-render-util0-dev:${DEB_HOST_ARCH} \
78-
libxcb-util-dev:${DEB_HOST_ARCH} \
79-
libxcb-xinerama0-dev:${DEB_HOST_ARCH} \
80-
libxcb-xkb-dev:${DEB_HOST_ARCH} \
81-
libxkbcommon-dev:${DEB_HOST_ARCH} \
82-
libxkbcommon-x11-dev:${DEB_HOST_ARCH}
83-
84-
## Install wayland build dependencies
85-
RUN apt -y install libwayland-dev:${DEB_HOST_ARCH} \
86-
libwayland-egl-backend-dev:${DEB_HOST_ARCH} \
87-
wayland-protocols
88-
8952
# Also pull in packages from build-depends as early as possible
9053
# %include linux/debian/control
9154
ADD topsrcdir/linux/debian/control /root/mozillavpn-dpkg-control

0 commit comments

Comments
 (0)