summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-01-14 22:50:50 +0200
committerMaxim Devaev <[email protected]>2024-01-14 22:50:50 +0200
commit1c0b0bec411d373c975c1420be6ddeac16639db8 (patch)
treebfe72a19564ce53d8276776627c49cd5e067426d
parent4c6c86b0298f4476cc5b5c092141c86c8279a75f (diff)
testing with libgpiod 2.1
-rw-r--r--testenv/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/testenv/Dockerfile b/testenv/Dockerfile
index 036a8380..7b5ea41d 100644
--- a/testenv/Dockerfile
+++ b/testenv/Dockerfile
@@ -95,6 +95,19 @@ RUN git clone https://github.com/pikvm/ustreamer \
&& cd - \
&& rm -rf ustreamer
+# FIXME: workaroung for legacy libgpiod 2.1
+RUN pacman --noconfirm --ask=4 -R libgpiod
+ENV LIBGPIOD_PKG libgpiod-2.1
+RUN curl \
+ -o $LIBGPIOD_PKG.tar.gz \
+ https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/$LIBGPIOD_PKG.tar.gz \
+ && tar -xzvf $LIBGPIOD_PKG.tar.gz \
+ && cd $LIBGPIOD_PKG \
+ && ./autogen.sh --prefix=/usr --enable-tools=yes --enable-bindings-python \
+ && make PREFIX=/usr install \
+ && cd - \
+ && rm -rf $LIBGPIOD_PKG{,.tar.gz}
+
RUN mkdir -p \
/etc/kvmd/{nginx,vnc} \
/var/lib/kvmd/msd \