From 8368c2b9730635be72e6c357efb77d86b12667ff Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 14 Nov 2020 22:54:09 +0100 Subject: [PATCH] debian-stretch-titan: Use correct architecture of libfftranscode We cannot blindly assume that we're running on amd64. Change-Id: I937d7b02a194244a62b79dbe6b78c27f7baabeb6 Related: OS#4727 --- debian-stretch-titan/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/debian-stretch-titan/Dockerfile b/debian-stretch-titan/Dockerfile index c5fd2352..74203483 100644 --- a/debian-stretch-titan/Dockerfile +++ b/debian-stretch-titan/Dockerfile @@ -38,7 +38,8 @@ RUN sed -i 's/^#error/\/\/#error/' /usr/include/titan/cversion.h # binary-only transcoding library for RANAP/RUA/HNBAP to work around TITAN only implementing BER RUN apt-get update && \ apt-get -y install wget -RUN wget https://ftp.osmocom.org/binaries/libfftranscode/libfftranscode0_0.3_amd64.deb && \ - wget https://ftp.osmocom.org/binaries/libfftranscode/libfftranscode-dev_0.3_amd64.deb && \ - apt install ./libfftranscode0_0.3_amd64.deb ./libfftranscode-dev_0.3_amd64.deb && \ +RUN DPKG_ARCH="$(dpkg --print-architecture)" && export $DPKG_ARCH && \ + wget https://ftp.osmocom.org/binaries/libfftranscode/libfftranscode0_0.3_${DPKG_ARCH}.deb && \ + wget https://ftp.osmocom.org/binaries/libfftranscode/libfftranscode-dev_0.3_${DPKG_ARCH}.deb && \ + apt install ./libfftranscode0_0.3_${DPKG_ARCH}.deb ./libfftranscode-dev_0.3_${DPKG_ARCH}.deb && \ rm libfftranscode*.deb