diff options
| author | Thomas <thomas.giudici@proton.me> | 2026-06-23 09:59:58 +0200 |
|---|---|---|
| committer | Thomas <thomas.giudici@proton.me> | 2026-06-23 13:43:02 +0200 |
| commit | 5564db6791008f9e6b950b03fd1b5b8052adec50 (patch) | |
| tree | 99bb651381cb780b39b694066b16d46f82497602 /Dockerfile.linux | |
| parent | 0e78e60cd799aaa207125c0c51278f0d481e9dea (diff) | |
| download | monzero-gui-5564db6791008f9e6b950b03fd1b5b8052adec50.tar.gz monzero-gui-5564db6791008f9e6b950b03fd1b5b8052adec50.tar.xz monzero-gui-5564db6791008f9e6b950b03fd1b5b8052adec50.zip | |
Dockerfiles: pin Qt to a commit hash
Qt was cloned with -b ${QT_VERSION} --depth 1 but, unlike every other
dependency in these files, never reset to a commit, so a moved upstream
tag would silently change the Qt source built into the release.
Pin the qt5 superproject to its v5.15.19-lts-lgpl commit and let it
resolve the submodules (git submodule update on linux/windows,
init-repository on android), so only the qt5 hash is hardcoded. qt5
records the exact submodule commits, and the relative .gitmodules URLs
keep the fetches on https.
Follow-up to #4613.
Diffstat (limited to 'Dockerfile.linux')
| -rw-r--r-- | Dockerfile.linux | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Dockerfile.linux b/Dockerfile.linux index 1e08748b..588a5a3e 100644 --- a/Dockerfile.linux +++ b/Dockerfile.linux @@ -190,18 +190,8 @@ RUN rm /usr/lib/x86_64-linux-gnu/libX11.a && \ rm /usr/lib/x86_64-linux-gnu/libX11-xcb.a && \ git clone https://code.qt.io/qt/qt5.git -b ${QT_VERSION} --depth 1 && \ cd qt5 && \ - git clone https://code.qt.io/qt/qtbase.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtdeclarative.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtgraphicaleffects.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtimageformats.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtmultimedia.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtquickcontrols.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtquickcontrols2.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtsvg.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qttools.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qttranslations.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtx11extras.git -b ${QT_VERSION} --depth 1 && \ - git clone https://code.qt.io/qt/qtxmlpatterns.git -b ${QT_VERSION} --depth 1 && \ + git reset --hard dc2ac680fa9d0ef7b0d9520859593d13951bedea && \ + git submodule update --init --depth 1 qtbase qtdeclarative qtgraphicaleffects qtimageformats qtmultimedia qtquickcontrols qtquickcontrols2 qtsvg qttools qttranslations qtx11extras qtxmlpatterns && \ sed -ri s/\(Libs:.*\)/\\1\ -lexpat/ /usr/local/lib/pkgconfig/fontconfig.pc && \ sed -ri s/\(Libs:.*\)/\\1\ -lz/ /usr/local/lib/pkgconfig/freetype2.pc && \ sed -ri s/\(Libs:.*\)/\\1\ -lXau/ /usr/local/lib/pkgconfig/xcb.pc && \ |
