Skip to content

Commit c3ed062

Browse files
committed
chore: update pkg-config files with versioned library names
Updated all pkg-config (.pc.in) files to include versioned library names by appending major version number to the library references. Changed library flags from -l@BIN_NAME@ to -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@ in both Libs and Libs.private sections for dfm-burn, dfm-io, dfm-mount, and dfm-search packages. This change ensures proper versioning and compatibility when linking against these libraries, allowing multiple major versions to coexist and providing better dependency management. Influence: 1. Verify that pkg-config correctly reports the versioned library names 2. Test linking against the updated library references 3. Confirm that build systems can properly locate the versioned libraries 4. Ensure backward compatibility with existing code that links against these libraries 5. Check that package installation and dependency resolution work correctly chore: 更新 pkg-config 文件使用版本化库名称 更新所有 pkg-config (.pc.in) 文件,在库引用中附加主版本号。将 dfm-burn、 dfm-io、dfm-mount 和 dfm-search 包的 Libs 和 Libs.private 节中的库标志从 -l@BIN_NAME@ 改为 -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@。此更改确保库的正 确版本控制和兼容性,允许多个主版本共存,并提供更好的依赖管理。 Influence: 1. 验证 pkg-config 是否正确报告版本化库名称 2. 测试针对更新后的库引用进行链接 3. 确认构建系统能够正确找到版本化库 4. 确保与现有链接这些库的代码向后兼容 5. 检查软件包安装和依赖解析是否正常工作
1 parent 011103b commit c3ed062

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

misc/dfm-burn/dfm-burn.pc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ URL: @CMAKE_PROJECT_HOMEPAGE_URL@
44
Version: @PROJECT_VERSION@
55
Requires: libisoburn-1, Qt@QT_VERSION_MAJOR@Core
66
Cflags: -I"@CMAKE_INSTALL_FULL_INCLUDEDIR@/@BIN_NAME@"
7-
Libs: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@
8-
Libs.private: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@
7+
Libs: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@
8+
Libs.private: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@

misc/dfm-io/dfm-io.pc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Description: @CMAKE_PROJECT_DESCRIPTION@
33
URL: @CMAKE_PROJECT_HOMEPAGE_URL@
44
Version: @PROJECT_VERSION@
55
Cflags: -I"@CMAKE_INSTALL_FULL_INCLUDEDIR@/@BIN_NAME@"
6-
Libs: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@
7-
Libs.private: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@
6+
Libs: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@
7+
Libs.private: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@

misc/dfm-mount/dfm-mount.pc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ URL: @CMAKE_PROJECT_HOMEPAGE_URL@
44
Version: @PROJECT_VERSION@
55
Requires: udisks2 gio-2.0 libsecret-1
66
Cflags: -I"@CMAKE_INSTALL_FULL_INCLUDEDIR@/@BIN_NAME@"
7-
Libs: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@
8-
Libs.private: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@
7+
Libs: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@
8+
Libs.private: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@

misc/dfm-search/dfm-search.pc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ URL: @CMAKE_PROJECT_HOMEPAGE_URL@
44
Version: @PROJECT_VERSION@
55
Requires: Qt@QT_VERSION_MAJOR@Core dtk@QT_VERSION_MAJOR@core liblucene++ liblucene++-contrib Boostsystem Threads
66
Cflags: -I"@CMAKE_INSTALL_FULL_INCLUDEDIR@/@BIN_NAME@"
7-
Libs: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@
8-
Libs.private: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@
7+
Libs: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@
8+
Libs.private: -L"@CMAKE_INSTALL_FULL_LIBDIR@" -l@BIN_NAME@.@PROJECT_VERSION_MAJOR@

0 commit comments

Comments
 (0)