From eadfa2d503ffef722ca2ebeeb1a4d440d9beff5c Mon Sep 17 00:00:00 2001 From: ezkrg Date: Thu, 7 Apr 2022 23:27:36 +0200 Subject: update signal --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 5dcc717..9e7fa5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -300,16 +300,19 @@ FROM bitlbee-build as signald-build ARG SIGNAL=1 ARG SIGNAL_VERSION +COPY signal-login.c.patch /tmp/login.c.patch + RUN echo SIGNAL=${SIGNAL} > /tmp/status \ && if [ ${SIGNAL} -eq 1 ]; \ then cd /tmp \ - && apk --no-cache add file-dev libmagic \ + && apk --no-cache add file-dev libmagic patch \ && git clone -n https://github.com/hoehermann/libpurple-signald \ && cd libpurple-signald \ && git checkout ${SIGNAL_VERSION} \ && git submodule init \ && git submodule update \ - && make -j$(nproc --ignore 2) SUPPORT_EXTERNAL_ATTACHMENTS=1 \ + && patch < ../login.c.patch \ + && make -j$(nproc --ignore 2) SUPPORT_EXTERNAL_ATTACHMENTS=1 libsignald.so \ && make install \ && strip /usr/lib/purple-2/libsignald.so; \ else mkdir -p /usr/lib/purple-2 \ -- cgit v1.2.3