File: 0006-add-missing-cstdint-include.patch

package info (click to toggle)
amdsmi 6.4.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,096 kB
  • sloc: cpp: 38,329; python: 20,520; ansic: 11,185; sh: 735; makefile: 20
file content (27 lines) | stat: -rw-r--r-- 1,090 bytes parent folder | download
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
Description: Fix FTBFS with newer C++ toolchains
 The package fails to compile on Ubuntu Questing with "undefined type"
 errors for standard integer types like `uintptr_t` and `uint32_t`.
 .
 This occurs because newer compilers are stricter and no longer guarantee
 that the `<cstdint>` header is included transitively by other standard
 library headers.
 .
 This patch resolves the build failure by explicitly adding the necessary
 `#include <cstdint>` directive to the file where these types are used.
Bug-Debian: https://bugs.debian.org/1114045
Author: Igor Luppi <igor.luppi@canonical.com>
Last-Update: 2025-09-05
---
Index: amdsmi/rocm_smi/include/rocm_smi/rocm_smi_common.h
===================================================================
--- amdsmi.orig/rocm_smi/include/rocm_smi/rocm_smi_common.h
+++ amdsmi/rocm_smi/include/rocm_smi/rocm_smi_common.h
@@ -29,6 +29,8 @@
 #include <string>
 #include <unordered_set>

+#include <cstdint>
+
 #define CHECK_DV_IND_RANGE \
     amd::smi::RocmSMI& smi = amd::smi::RocmSMI::getInstance(); \
     if (dv_ind >= smi.devices().size()) { \