@@ -7,7 +7,7 @@ RUN yum install -y centos-release-scl-rh epel-release && \
77 yum upgrade -y && \
88 yum install -y \
99 # general devtools
10- devtoolset-7 -gcc devtoolset-7 -gcc-c++ make \
10+ devtoolset-9 -gcc devtoolset-9 -gcc-c++ make \
1111 # squashfs-tools libs
1212 libzstd-devel \
1313 # Qt build tools
@@ -19,15 +19,15 @@ RUN yum install -y centos-release-scl-rh epel-release && \
1919 git && \
2020 yum clean all
2121
22- ARG DEVTOOLSET_ROOTPATH=/opt/rh/devtoolset-7 /root
22+ ARG DEVTOOLSET_ROOTPATH=/opt/rh/devtoolset-9 /root
2323ENV PATH=/opt/qt/bin:${DEVTOOLSET_ROOTPATH}/usr/bin:${PATH}
2424ENV LD_LIBRARY_PATH=${DEVTOOLSET_ROOTPATH}/usr/lib64
2525
26- ARG SQUASHFS_TOOLS_VERSION=4.4
26+ ARG SQUASHFS_TOOLS_VERSION=4.6.1
2727ARG QT_MAJOR_MINOR=5.15
28- ARG QT_PATCH=12
28+ ARG QT_PATCH=14
2929ARG QT_VERSION=${QT_MAJOR_MINOR}.${QT_PATCH}
30- ARG FCITX5_QT_VERSION=5.0.17
30+ ARG FCITX5_QT_VERSION=5.1.6
3131
3232# AppImage runtime
3333RUN curl -L -o /opt/appimage-runtime 'https://github.com/AppImage/type2-runtime/releases/download/continuous/runtime-x86_64'
@@ -47,15 +47,17 @@ RUN mkdir -p /build/squashfs-tools && \
4747# Qt 5
4848RUN mkdir -p /build/qt5 && \
4949 cd /build/qt5 && \
50- curl -L -O "https://download.qt.io/archive/qt/${QT_MAJOR_MINOR}/${QT_VERSION}/submodules/qt{base,svg,tools,wayland}-everywhere-opensource-src-${QT_VERSION}.tar.xz" && \
51- tar xf qtbase-everywhere-opensource-src-${QT_VERSION}.tar.xz && \
52- cd qtbase-everywhere-src-${QT_VERSION} && \
50+ curl -L -O "https://download.qt.io/archive/qt/${QT_MAJOR_MINOR}/${QT_VERSION}/single/qt-everywhere-opensource-src-${QT_VERSION}.tar.xz" && \
51+ tar xf qt-everywhere-opensource-src-${QT_VERSION}.tar.xz && \
52+ cd qt-everywhere-src-${QT_VERSION} && \
53+ ls | grep ^qt | grep -vE 'qt(\. pro|base|svg|tools|wayland|translations)' | xargs rm -r && \
5354 ./configure \
5455 -prefix /opt/qt \
5556 -opensource -confirm-license \
5657 -optimize-size -static -platform linux-g++ -linker bfd \
58+ -no-feature-wayland-server \
5759 -nomake examples -nomake tests -nomake tools -dbus-linked \
58- -qt-doubleconversion -no-glib -eventfd -inotify -iconv -no-icu -no-mimetype-database -qt-pcre -qt-zlib \
60+ -qt-doubleconversion -no-glib -eventfd -inotify -iconv -no-icu -no-mimetype-database -qt-pcre -qt-zlib -no-zstd \
5961 -no-openssl \
6062 -no-cups -fontconfig -system-freetype -qt-harfbuzz -no-gtk -no-opengl -xcb-xlib \
6163 -xcb \
@@ -64,27 +66,6 @@ RUN mkdir -p /build/qt5 && \
6466 -sql-sqlite -qt-sqlite && \
6567 make -j$(nproc) && \
6668 make install && \
67- # svg package
68- cd /build/qt5 && \
69- tar xf qtsvg-everywhere-opensource-src-${QT_VERSION}.tar.xz && \
70- cd qtsvg-everywhere-src-${QT_VERSION} && \
71- qmake . && \
72- make -j$(nproc) && \
73- make install && \
74- # tools package
75- cd /build/qt5 && \
76- tar xf qttools-everywhere-opensource-src-${QT_VERSION}.tar.xz && \
77- cd qttools-everywhere-src-${QT_VERSION} && \
78- qmake . && \
79- make -j$(nproc) && \
80- make install && \
81- # wayland package
82- cd /build/qt5 && \
83- tar xf qtwayland-everywhere-opensource-src-${QT_VERSION}.tar.xz && \
84- cd qtwayland-everywhere-src-${QT_VERSION} && \
85- qmake . && \
86- make -j$(nproc) && \
87- make install && \
8869 # cleanup
8970 cd / && \
9071 rm -r /build/qt5
0 commit comments