Followup-For: Bug #1022797
Control: tag -1 patch pending
>From 6d96b1f77b981454e4ba8314ab15f67568694f4c Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <[email protected]>
Date: Sat, 20 Dec 2025 03:10:02 +0100
Subject: [PATCH 5/8] Add superficial autopkgtest for CMake
 find_package(rocm_smi).

---
 debian/tests/cmake/CMakeLists.txt |  5 +++++
 debian/tests/control              | 10 ++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 debian/tests/cmake/CMakeLists.txt

diff --git a/debian/tests/cmake/CMakeLists.txt 
b/debian/tests/cmake/CMakeLists.txt
new file mode 100644
index 0000000..ff52510
--- /dev/null
+++ b/debian/tests/cmake/CMakeLists.txt
@@ -0,0 +1,5 @@
+cmake_minimum_required(VERSION 3.15)
+
+project(find_rocm_smi C)
+
+find_package(rocm_smi REQUIRED)
diff --git a/debian/tests/control b/debian/tests/control
index 877154f..5a2cc12 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -12,3 +12,13 @@ Test-Command: rocm-smi -S
 Depends: rocm-smi
 Restrictions: allow-stderr
 Features: test-name=regression_bug_1031121
+
+Test-Command: cmake -B $AUTOPKGTEST_TMP -S debian/tests/cmake
+Features: test-name=cmake-find_package-rocm_smi
+Depends:
+ librocm-smi-dev,
+ cmake,
+ make,
+ g++,
+Restrictions:
+ superficial,
-- 
2.39.5

>From 8180821f121276358059259a73ce5a04317bbb71 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <[email protected]>
Date: Sat, 20 Dec 2025 10:00:27 +0100
Subject: [PATCH 6/8] librocm-smi-dev: Promote liboam-dev to dependency.

Closes: #1022797
---
 debian/control | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index b0c9c53..295f366 100644
--- a/debian/control
+++ b/debian/control
@@ -39,8 +39,8 @@ Package: librocm-smi-dev
 Architecture: linux-any
 Section: libdevel
 Depends: ${misc:Depends},
-         librocm-smi64-1 (= ${binary:Version})
-Recommends: liboam-dev (= ${binary:Version})
+         librocm-smi64-1 (= ${binary:Version}),
+         liboam-dev (= ${binary:Version}),
 Description: ROCm System Management Interface (ROCm SMI) library headers
  ROCm SMI is part of the ROCm software stack. It is a C library for Linux
  that provides a user-space interface for applications to monitor and
-- 
2.39.5

Reply via email to