Skip to content

Commit a50cfe3

Browse files
authored
Merge pull request #59 from LibrePCB/fix-openssl
Ubuntu 20.04/Qt6.6: Fix OpenSSL 3 deployment
2 parents 253ca0c + 7b215c8 commit a50cfe3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ubuntu-20.04-qt6.6/Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,15 @@ RUN /appimagetool-x86_64.AppImage --appimage-extract \
211211

212212
# Install latest OpenSSL to avoid possible issues if servers some day stop
213213
# working with an old OpenSSL library (as already happened in the past).
214-
ARG OPENSSL_VERSION="3.4.0"
215-
RUN wget -c "https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz" -O /tmp.tar.gz \
214+
ARG OPENSSL_VERSION="3.4.1"
215+
ENV LD_LIBRARY_PATH="/opt/openssl/lib:$LD_LIBRARY_PATH"
216+
RUN apt-get remove -y libssl-dev \
217+
&& wget -c "https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz" -O /tmp.tar.gz \
216218
&& tar -zxf /tmp.tar.gz \
217219
&& cd "./openssl-$OPENSSL_VERSION" \
218-
&& ./config --prefix=/usr --libdir=lib --openssldir=/etc/ssl '-Wl,--enable-new-dtags,-rpath,$(LIBRPATH)' \
219-
&& make -s -j8 \
220-
&& make install \
221-
&& ldconfig \
220+
&& ./config --prefix=/opt/openssl --libdir=lib --openssldir=/opt/openssl/etc/ssl \
221+
&& make -j8 \
222+
&& make install_sw \
222223
&& cd .. \
223224
&& rm -rf "./openssl-$OPENSSL_VERSION" \
224225
&& rm /tmp.tar.gz

0 commit comments

Comments
 (0)