summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-01-09 00:03:14 +0200
committerMaxim Devaev <[email protected]>2024-01-09 00:03:14 +0200
commit7382b1ed12193a69e4297e879e9ab49b2b0b3955 (patch)
tree940bfdae63dd2ed9593c14f480cc1d7ea89f56f8
parent0676a3cee927e96693773369a458acbd7ed786bc (diff)
workaround for legacy libgpiod 1.x
-rw-r--r--testenv/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/testenv/Dockerfile b/testenv/Dockerfile
index 036a8380..2874fed6 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 1.x libgpido
+RUN pacman --noconfirm --ask=4 -R libgpiod
+ENV LIBGPIOD_PKG libgpiod-1.6.4
+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 \