Skip to content

Commit 2356833

Browse files
committed
fix: update shared library version dependency
Changed the shared library version dependency from major.minor to major.minor.patch format in the dh_makeshlibs command. The version string now includes all three version components (major.minor.patch) instead of just major.minor, ensuring proper dependency resolution that considers patch level changes. This fix was necessary because the previous version constraint was too broad, potentially allowing incompatible library versions to satisfy the dependency. By including the patch version, we ensure that only compatible versions with the exact same patch level can satisfy the dependency requirement. Influence: 1. Test package installation with different library versions 2. Verify dependency resolution works correctly with patch version constraints 3. Check that incompatible library versions are properly rejected 4. Test package upgrades and downgrades 5. Verify shared library linking works as expected fix: 更新共享库版本依赖 将 dh_makeshlibs 命令中的共享库版本依赖从主版本.次版本格式改为主版本. 次版本.修订版本格式。版本字符串现在包含所有三个版本组件(主版本.次版本. 修订版本),而不仅仅是主版本.次版本,确保考虑到修订版本变更的正确依赖 解析。 此修复是必要的,因为之前的版本约束过于宽泛,可能允许不兼容的库版本来满足 依赖。通过包含修订版本,我们确保只有具有完全相同修订级别的兼容版本才能满 足依赖要求。 Influence: 1. 测试使用不同库版本的软件包安装 2. 验证依赖解析在使用修订版本约束时正常工作 3. 检查不兼容的库版本是否被正确拒绝 4. 测试软件包升级和降级 5. 验证共享库链接按预期工作
1 parent ecdf132 commit 2356833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ override_dh_auto_configure:
2828
dh_auto_configure -- -DBUILD_PLUGINS=OFF -DBUILD_DOCS=ON -DDTK_VERSION=$(_PACK_VER)
2929

3030
override_dh_makeshlibs:
31-
dh_makeshlibs -V "libdtk6widget (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2))"
31+
dh_makeshlibs -V "libdtk6widget (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2,3))"

0 commit comments

Comments
 (0)