From 93b5a0d9aa5818facf785b61fc742e8b287b79c9 Mon Sep 17 00:00:00 2001 From: yeshanshan Date: Thu, 30 Oct 2025 20:21:44 +0800 Subject: [PATCH] fix: update library dependency version format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the library dependency version format from major.minor to major.minor.patch in dh_makeshlibs command. This ensures that the package dependency includes the full version number (including patch version) rather than just major and minor components. The modification updates the cut command from extracting fields 1,2 to fields 1,2,3 to include all three version components. This change is necessary to maintain proper dependency resolution and version compatibility, as the patch version can contain important bug fixes and security updates that should be considered when determining package dependencies. Influence: 1. Verify that package builds successfully with the new version format 2. Test package installation and dependency resolution 3. Check that library dependencies are correctly enforced during installation 4. Validate that the package manager properly handles the full version specification fix: 更新库依赖版本格式 将 dh_makeshlibs 命令中的库依赖版本格式从主版本.次版本更改为主版本.次版 本.修订版本。这确保包依赖包含完整的版本号(包括修订版本),而不仅仅是主 版本和次版本。修改将 cut 命令从提取字段 1,2 更新为字段 1,2,3 以包含所有 三个版本组件。 此变更是必要的,以维护正确的依赖解析和版本兼容性,因为修订版本可能包含重 要的错误修复和安全更新,在确定包依赖时应予以考虑。 Influence: 1. 验证包是否使用新版本格式成功构建 2. 测试包安装和依赖解析 3. 检查库依赖在安装过程中是否正确执行 4. 验证包管理器是否正确处理完整版本规范 --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 3ba5de7..453d7a8 100755 --- a/debian/rules +++ b/debian/rules @@ -26,4 +26,4 @@ override_dh_auto_configure: dh_auto_configure -- -DBUILD_TESTING=OFF -DBUILD_DOCS=ON -DDTK_VERSION=$(_PACK_VER) override_dh_makeshlibs: - dh_makeshlibs -V "libdtk6gui (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2))" + dh_makeshlibs -V "libdtk6gui (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2,3))"