Skip to content

Commit

Permalink
images: install wayland and wayland-protocols manually
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed Dec 10, 2024
1 parent b0851cc commit 9f04153
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
26 changes: 23 additions & 3 deletions docker/Dockerfile-manylinux
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,34 @@ RUN if [[ $TARGETARCH = 'arm64' ]]; then \

# install deps
RUN yum -y update && \
yum -y install wget curl zip unzip ccache fuse fuse3 sudo \
libX11-devel libXi-devel libXcursor-devel libxkbcommon-devel libXrandr-devel wayland-devel wayland-protocols-devel dbus-devel ibus-devel SDL2-devel \
yum -y install wget curl zip unzip ccache fuse fuse3 sudo cmake \
mesa-libGL-devel mesa-libEGL-devel mesa-libgbm-devel libX11-devel libXi-devel libXcursor-devel libxkbcommon-devel libXrandr-devel libXrender-devel \
libXext-devel libXinerama-devel dbus-devel ibus-devel libxml2-devel \
gcc-aarch64-linux-gnu gcc-c++-aarch64-linux-gnu binutils-aarch64-linux-gnu && \
yum -y clean all && \
rm -fr /var/cache

# install meson and ninja
RUN pip install --no-cache-dir --no-compile meson ninja

# install and build wayland
RUN wget https://gitlab.freedesktop.org/wayland/wayland/-/releases/1.23.0/downloads/wayland-1.23.0.tar.xz && \
tar -xJf wayland-1.23.0.tar.xz && \
cd wayland-1.23.0 && \
meson setup build --prefix=/usr -Dtests=false -Ddocumentation=false && \
meson install -C build && \
cd .. && \
rm -rf wayland-1.23.0

# install and build wayland-protocols
RUN wget https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.38/downloads/wayland-protocols-1.38.tar.xz && \
tar -xJf wayland-protocols-1.38.tar.xz && \
cd wayland-protocols-1.38 && \
meson setup build --prefix=/usr -Dtests=false && \
meson install -C build && \
cd .. && \
rm -rf wayland-protocols-1.38

# install appimagetool and friends
RUN set -eux; \
arch=; \
Expand Down Expand Up @@ -121,4 +140,5 @@ RUN rpm -i --force --nodeps --ignorearch "https://pkgs.sysadmins.ws/el8/extras/x
touch /usr/lib64/libdecor-0.so /usr/lib64/libdecor-0.so.0 && \
yum -y history sync && \
yum -y clean all && \
rm -fr /var/cache
rm -fr /var/cache

3 changes: 2 additions & 1 deletion docker/Dockerfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ RUN wget "http://archive.ubuntu.com/ubuntu/pool/main/libd/libdecor-0/libdecor-0-
dpkg --force-all -i "libdecor-0-dev_0.1.0-3build1_amd64.deb" && \
rm -f "libdecor-0-dev_0.1.0-3build1_amd64.deb" && \
perl -i~ -pe 's|\QDepends: libdecor-0-0 (= 0.1.0-3build1), libwayland-dev\E\n||g' /var/lib/dpkg/status && \
touch /usr/lib/$(dpkg-architecture -q DEB_TARGET_MULTIARCH)/libdecor-0.so /usr/lib/$(dpkg-architecture -q DEB_TARGET_MULTIARCH)/libdecor-0.so.0
touch /usr/lib/$(dpkg-architecture -q DEB_TARGET_MULTIARCH)/libdecor-0.so /usr/lib/$(dpkg-architecture -q DEB_TARGET_MULTIARCH)/libdecor-0.so.0

0 comments on commit 9f04153

Please sign in to comment.