public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/amdsmi] rawhide: Update preview to 10.1
@ 2026-10-07 20:59 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-10-07 20:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/amdsmi
Branch : rawhide
Commit : f3591c37b2bf76fb75cbd3654138e41beaa7aa60
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-10-07T13:58:35-07:00
Stats : +12/-97 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/amdsmi/c/f3591c37b2bf76fb75cbd3654138e41beaa7aa60?branch=rawhide
Log:
Update preview to 10.1
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/amdsmi.spec b/amdsmi.spec
index 5977b7e..deb04a1 100644
--- a/amdsmi.spec
+++ b/amdsmi.spec
@@ -25,7 +25,7 @@
%bcond_with preview
%if %{with preview}
-%global rocm_release 10.0
+%global rocm_release 10.1
%global rocm_patch 0
%global pkg_library_version 27
%else
@@ -247,33 +247,24 @@ sed -i 's@set(SHARE_INSTALL_PREFIX@#set(SHARE_INSTALL_PREFIX@' CMakeLists.txt
%install
%cmake_install
-%if %{without compat}
-mkdir -p %{buildroot}/%{pkg_prefix}/lib/python%{python3_version}/site-packages
-if [ -d %{buildroot}%{pkg_prefix}/share/amd_smi/amdsmi ]; then
- mv %{buildroot}%{pkg_prefix}/share/amd_smi/amdsmi %{buildroot}/%{pkg_prefix}/lib/python%{python3_version}/site-packages
- mv %{buildroot}%{pkg_prefix}/share/amd_smi/pyproject.toml %{buildroot}/%{pkg_prefix}/lib/python%{python3_version}/site-packages/amdsmi/
-else
- mv %{buildroot}%{pkg_prefix}/share/amdsmi %{buildroot}/%{pkg_prefix}/lib/python%{python3_version}/site-packages
- mv %{buildroot}%{pkg_prefix}/share/pyproject.toml %{buildroot}/%{pkg_prefix}/lib/python%{python3_version}/site-packages/amdsmi/
-fi
+mkdir -p %{buildroot}%{pkg_prefix}/lib/python%{python3_version}/site-packages
+%if %{with preview}
+mv %{buildroot}%{pkg_prefix}/*/*/site-packages/* %{buildroot}%{pkg_prefix}/lib/python%{python3_version}/site-packages
+rm -rf %{buildroot}%{pkg_prefix}/share/amdsmi
+%else
+mv %{buildroot}%{pkg_prefix}/share/amd_smi/amdsmi %{buildroot}/%{pkg_prefix}/lib/python%{python3_version}/site-packages
+mv %{buildroot}%{pkg_prefix}/share/amd_smi/pyproject.toml %{buildroot}/%{pkg_prefix}/lib/python%{python3_version}/site-packages/amdsmi/
+%endif
+%if %{without preview}
# W: unstripped-binary-or-object /usr/lib/python3.13/site-packages/amdsmi/libamd_smi.so
# Does an explict open, so can not just rm it
# let's just strip it
strip %{buildroot}/%{pkg_prefix}/lib/python%{python3_version}/site-packages/amdsmi/*.so
+%endif
# E: non-executable-script .../amdsmi_cli/amdsmi_cli_exceptions.py 644 /usr/bin/env python3
chmod a+x %{buildroot}/%{pkg_prefix}/libexec/amdsmi_cli/amdsmi_*.py
-%else
-rm -f %{buildroot}/%{pkg_prefix}/bin/amd-smi
-rm -rf %{buildroot}/%{pkg_prefix}/libexec/amdsmi_cli
-rm -rf %{buildroot}/%{pkg_prefix}/share/amdsmi
-rm -rf %{buildroot}/%{pkg_prefix}/share/pyproject.toml
-
-# Not going to handle golang in compat mode
-rm -rf %{buildroot}/%{pkg_prefix}/%{pkg_libdir}/libgoamdsmi_shim64*
-%endif
-
# Remove some things
rm -rf %{buildroot}/%{pkg_prefix}/share/example
rm -rf %{buildroot}/%{pkg_prefix}/share/amd_smi/example
@@ -292,7 +283,7 @@ if [ -e %{buildroot}%{pkg_prefix}/share/tests ]; then
mv %{buildroot}%{pkg_prefix}/share/tests %{buildroot}%{pkg_prefix}/share/amdsmi/
fi
-%if %{without compat}
+%if %{without preview}
#ERROR 0002: file '/usr/lib/python3.14/site-packages/amdsmi/libamd_smi.so' contains an invalid runpath '/builddir/build/BUILD/amdsmi-7.12.0-build/amdsmi/redhat-linux-build/src/nic/ai-nic/amdsmi_unified/build' in [/builddir/build/BUILD/amdsmi-7.12.0-build/amdsmi/redhat-linux-build/src/nic/ai-nic/amdsmi_unified/build:]
chrpath -d %{buildroot}%{pkg_prefix}/lib/python%{python3_version}/site-packages/amdsmi/lib%{pkg_library_name}.so
%endif
diff --git a/prompts/build.xml b/prompts/build.xml
deleted file mode 100644
index 3099e9b..0000000
--- a/prompts/build.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<purpose>
- You are a Fedora package developer. An expert in Fedora tools rpmbuild and mock. You have good skills with C++ and CMake.
-
- Analyze the current build according to the instructions.
-</purpose>
-
-<instructions>
- <instruction>
- write analysis output to /tmp/<package-name>.txt
- </instruction>
- <instruction>
- Determine if the build was succesful.
- </instruction>
- <instruction>
- Compare build.log files form <test-build> to <baseline-build>
- </instruction>
- <instruction>
- If the build was successful, summarize differences in the build.
- </instruction>
- <instruction>
- If the build was not successful, identify the failure, analyze to get to a root cause, finally suggest the next action to take
- </instruction>
- <instruction>
- If any instruction is confusing, suggest three better at the end of the report.
- </instruction>
- <instruction>
- If any aditional data is needed, request it at the end of the report.
- </instruction>
-
-</instructions>
-
-<package-name>
-
- the package name can be deduced from the spec file and srpm file in parent directory
-
-</package-name>
-
-<baseline-build>
-
- the file build.log in the current directory is a successful build.
- the source build artifacts for build are not available only the build.log
-
-</baseline-build>
-
-<test-build>
-
- The build was made from the parent directory ..
- The build command was
- mock <command-line-parameter> --localrepo=${PWD}/../output <srpm-file>
-
- The build.log file is found with the other mock output at
- ../../output/results/fedora-rawhide-x86_64/<package-name>*/
-
-</test-build>
-
-<srpm-file>
-
- the package srpm is in the parent directory <package-name>*.src.rpm
-
-</srpm-file>
-
-<command-line-parameter>
-
- There may or may not be extra parameters
- <examples>
- <example>
- --with test
- </example>
- <example>
- --with preview
- </example>
- </examples>
-
-</command-line-parameter>
-
-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-07 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 20:59 [rpms/amdsmi] rawhide: Update preview to 10.1 Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox