1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: Fix the SONAME version
The SONAME version is set by parsing git tags which doesn't work in packaging.
Instead hardcode to match the version used in the source code for now.
This is a bit of a hack, but we need upstream support to hardcode ABI versions
as a fallback instead of git tags.
Author: Mario Limonciello <superm1@debian.org>
---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: Mario
Bug-Debian: https://bugs.debian.org/1115069
Forwarded: no
Last-Update: 2025-09-15
--- amdsmi-6.4.3+ds.orig/src/CMakeLists.txt
+++ amdsmi-6.4.3+ds/src/CMakeLists.txt
@@ -71,6 +71,14 @@ message("Package version: ${PKG_VERSION_
get_version_from_tag("${${AMD_SMI_LIBS_TARGET}_VERSION_MAJOR}.${${AMD_SMI_LIBS_TARGET}_VERSION_MINOR}.0.0"
${SO_VERSION_GIT_TAG_PREFIX} GIT)
+#if VERSION_MAJOR is 0 and VERSION_MINOR is 0 hardcode to 25.0
+if((NOT DEFINED VERSION_MAJOR) OR (VERSION_MAJOR STREQUAL 0 AND VERSION_MINOR STREQUAL 0))
+ set(VERSION_MAJOR 25)
+ set(VERSION_MINOR 0)
+ set(VERSION_PATCH 0)
+ message("Using hardcoded version: ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
+endif()
+
# VERSION_* variables should be set by get_version_from_tag
if(${ROCM_PATCH_VERSION})
set(VERSION_PATCH ${ROCM_PATCH_VERSION})
|