public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/amdsmi] rawhide: silence pack warning introduced with python 3.15
@ 2026-06-17 20:06 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-17 20:06 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/amdsmi
            Branch : rawhide
            Commit : f8903c390e296d3ad4eb5f4aaab8afccfc8ab24a
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-06-17T13:05:33-07:00
            Stats  : +34/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/amdsmi/c/f8903c390e296d3ad4eb5f4aaab8afccfc8ab24a?branch=rawhide

            Log:
            silence pack warning introduced with python 3.15

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/0001-amdsmi-silence-pack-warnings.patch b/0001-amdsmi-silence-pack-warnings.patch
new file mode 100644
index 0000000..026b552
--- /dev/null
+++ b/0001-amdsmi-silence-pack-warnings.patch
@@ -0,0 +1,29 @@
+From 18316b10f1008652539722f631a12401edcfbd91 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Wed, 17 Jun 2026 12:25:53 -0700
+Subject: [PATCH] amdsmi silence pack warnings
+
+---
+ py-interface/amdsmi_wrapper.py | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/py-interface/amdsmi_wrapper.py b/py-interface/amdsmi_wrapper.py
+index 6f1524862694..807192a717f7 100644
+--- a/py-interface/amdsmi_wrapper.py
++++ b/py-interface/amdsmi_wrapper.py
+@@ -27,6 +27,12 @@ import os
+ #
+ import ctypes
+ 
++# silence warning for _pack_ needing _layout_ set to 'ms'
++import warnings
++warnings.filterwarnings(
++    "ignore",
++    category=DeprecationWarning,
++message=".*memory layout compatible with MSVC.*"   )
+ 
+ c_int128 = ctypes.c_ubyte*16
+ c_uint128 = c_int128
+-- 
+2.53.0
+

diff --git a/amdsmi.spec b/amdsmi.spec
index 217ac61..a4729a6 100644
--- a/amdsmi.spec
+++ b/amdsmi.spec
@@ -86,7 +86,7 @@ Version:    %{rocm_version}
 %if %{with preview}
 Release:    1%{?dist}
 %else
-Release:    4%{?dist}
+Release:    5%{?dist}
 %endif
 Summary:    AMD System Management Interface
 
@@ -119,6 +119,7 @@ Source1:    https://github.com/amd/esmi_ib_library/archive/refs/tags/esmi_pkg_ve
 %if %{without preview}
 # https://github.com/ROCm/amdsmi/pull/165
 Patch1:     0001-Fix-compilation-with-libdrm-2.4.130.patch
+Patch2:     0001-amdsmi-silence-pack-warnings.patch
 %else
 # https://github.com/ROCm/rocm-systems/issues/4535
 Patch1:     0001-amdsmi-so-libamdsminic.patch
@@ -375,6 +376,9 @@ chrpath -d %{buildroot}%{pkg_prefix}/lib/python%{python3_version}/site-packages/
 %endif
 
 %changelog
+* Wed Jun 17 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.1-5
+- Silence _pack_ warnings
+
 * Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 7.2.1-4
 - Rebuilt for Python 3.15
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-17 20:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-17 20:06 [rpms/amdsmi] rawhide: silence pack warning introduced with python 3.15 Tom Rix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox