mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix devcontainer.
This commit is contained in:
parent
ea5517b270
commit
25a65863bb
@ -1,31 +1,36 @@
|
|||||||
#
|
#
|
||||||
# Stage 0: Build xserver-xorg-video-dummy 0.3.8-2 with RandR support.
|
# Stage 0: Build xorg dependencies.
|
||||||
#
|
#
|
||||||
FROM debian:bullseye-slim as xserver-xorg-video-dummy
|
FROM debian:bullseye-slim as xorg-deps
|
||||||
|
|
||||||
WORKDIR /usr/local/src
|
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
cp /etc/apt/sources.list /etc/apt/sources.list~; \
|
|
||||||
sed -Ei 's/^deb /deb-src /' /etc/apt/sources.list; \
|
|
||||||
cat /etc/apt/sources.list~ >> /etc/apt/sources.list; \
|
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y dpkg-dev git; \
|
apt-get install -y \
|
||||||
apt-get build-dep -y xserver-xorg-video-dummy; \
|
git gcc pkgconf autoconf automake libtool make xorg-dev xutils-dev \
|
||||||
git clone --depth 1 --branch xserver-xorg-video-dummy-1_0.3.8-2 https://salsa.debian.org/xorg-team/driver/xserver-xorg-video-dummy; \
|
&& rm -rf /var/lib/apt/lists/*;
|
||||||
#
|
|
||||||
# clean up
|
|
||||||
apt-get clean -y; \
|
|
||||||
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
|
||||||
|
|
||||||
COPY runtime/xdummy-randr.patch /tmp/xdummy-randr.patch
|
WORKDIR /xorg
|
||||||
|
|
||||||
|
COPY xorg/ /xorg/
|
||||||
|
|
||||||
|
# build xserver-xorg-video-dummy 0.3.8-2 with RandR support.
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
|
cd xf86-video-dummy; \
|
||||||
|
git clone --depth 1 --branch xserver-xorg-video-dummy-1_0.3.8-2 https://salsa.debian.org/xorg-team/driver/xserver-xorg-video-dummy; \
|
||||||
cd xserver-xorg-video-dummy; \
|
cd xserver-xorg-video-dummy; \
|
||||||
patch -p1 < /tmp/xdummy-randr.patch; \
|
patch -p1 < ../xdummy-randr.patch; \
|
||||||
bash ./autogen.sh; \
|
./autogen.sh; \
|
||||||
make; \
|
make -j$(nproc); \
|
||||||
|
make install;
|
||||||
|
|
||||||
|
# build custom input driver
|
||||||
|
RUN set -eux; \
|
||||||
|
cd xf86-input-neko; \
|
||||||
|
./autogen.sh --prefix=/usr; \
|
||||||
|
./configure; \
|
||||||
|
make -j$(nproc); \
|
||||||
make install;
|
make install;
|
||||||
|
|
||||||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.166.0/containers/go/.devcontainer/base.Dockerfile
|
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.166.0/containers/go/.devcontainer/base.Dockerfile
|
||||||
@ -112,8 +117,9 @@ RUN set -eux; \
|
|||||||
# Indian fonts
|
# Indian fonts
|
||||||
fonts-indic;
|
fonts-indic;
|
||||||
|
|
||||||
# replace version
|
# copy dependencies from previous stage
|
||||||
COPY --from=xserver-xorg-video-dummy /usr/local/lib/xorg/modules/drivers/dummy_drv.so /usr/lib/xorg/modules/drivers/dummy_drv.so
|
COPY --from=xorg-deps /usr/local/lib/xorg/modules/drivers/dummy_drv.so /usr/lib/xorg/modules/drivers/dummy_drv.so
|
||||||
|
COPY --from=xorg-deps /usr/local/lib/xorg/modules/input/neko_drv.so /usr/lib/xorg/modules/input/neko_drv.so
|
||||||
|
|
||||||
# copy runtime files
|
# copy runtime files
|
||||||
COPY runtime/dbus /usr/bin/dbus
|
COPY runtime/dbus /usr/bin/dbus
|
||||||
|
Loading…
Reference in New Issue
Block a user