From 051be95889c845443eb9d12d7b8a59a6584ef3ff Mon Sep 17 00:00:00 2001 From: Liu Zhangjian Date: Wed, 17 Dec 2025 14:26:20 +0800 Subject: [PATCH] chore: set QT_SELECT to qt5 in debian build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added QT_SELECT=qt5 environment variable export to ensure the Debian package build system uses Qt5 instead of potentially defaulting to other Qt versions. This prevents build inconsistencies and ensures compatibility with the project's Qt5 dependencies. Influence: 1. Verify package builds successfully with Qt5 libraries 2. Test that the built package functions correctly with Qt5 runtime 3. Check that no Qt4 or other Qt version dependencies are pulled in 4. Validate package installation and basic functionality chore: 在 debian 构建中设置 QT_SELECT 为 qt5 添加 QT_SELECT=qt5 环境变量导出,确保 Debian 包构建系统使用 Qt5 而不是可 能默认使用其他 Qt 版本。这可以防止构建不一致性,并确保与项目 Qt5 依赖项 的兼容性。 Influence: 1. 验证使用 Qt5 库的软件包构建是否成功 2. 测试构建的软件包与 Qt5 运行时的功能是否正确 3. 检查是否没有引入 Qt4 或其他 Qt 版本的依赖项 4. 验证软件包安装和基本功能 --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index 87cf3c5..debf69e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,6 @@ #!/usr/bin/make -f +export QT_SELECT=qt5 include /usr/share/dpkg/default.mk DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)