public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/amdsmi] rawhide: silence pack warning introduced with python 3.15
Date: Wed, 17 Jun 2026 20:06:06 GMT	[thread overview]
Message-ID: <178172676650.1.7677617078382226972.rpms-amdsmi-f8903c390e29@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-06-17 20:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178172676650.1.7677617078382226972.rpms-amdsmi-f8903c390e29@fedoraproject.org \
    --to=tom.rix@amd.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox