Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package vendor-reset for openSUSE:Factory checked in at 2025-02-06 22:06:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vendor-reset (Old) and /work/SRC/openSUSE:Factory/.vendor-reset.new.2316 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "vendor-reset" Thu Feb 6 22:06:25 2025 rev:4 rq:1243409 version:0.1.0+084881c Changes: -------- --- /work/SRC/openSUSE:Factory/vendor-reset/vendor-reset.changes 2024-05-06 17:53:04.214684915 +0200 +++ /work/SRC/openSUSE:Factory/.vendor-reset.new.2316/vendor-reset.changes 2025-02-06 22:07:24.803032198 +0100 @@ -1,0 +2,7 @@ +Mon Jan 20 04:27:59 UTC 2025 - mun...@googlemail.com + +- Add fix-kernel-6_12-include.patch: Fix build on kernel 6.12+ +- Add vendor-reset-preamble +- Build module for longterm kernel on Factory/TW + +------------------------------------------------------------------- New: ---- fix-kernel-6_12-include.patch vendor-reset-preamble BETA DEBUG BEGIN: New: - Add fix-kernel-6_12-include.patch: Fix build on kernel 6.12+ - Add vendor-reset-preamble BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vendor-reset.spec ++++++ --- /var/tmp/diff_new_pack.VY4SWy/_old 2025-02-06 22:07:26.315094506 +0100 +++ /var/tmp/diff_new_pack.VY4SWy/_new 2025-02-06 22:07:26.319094671 +0100 @@ -1,7 +1,7 @@ # # spec file for package vendor-reset # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,12 @@ # +%ifarch x86_64 +%if 0%{?suse_version} > 1600 +%define kmp_longterm 1 +%endif +%endif + Name: vendor-reset Version: 0.1.0+084881c Release: 0 @@ -23,7 +29,9 @@ License: Apache-2.0 Group: System/Management URL: https://github.com/gnif/vendor-reset -Source: %name-%version.tar.xz +Source0: %{name}-%{version}.tar.xz +Source1: %{name}-preamble +Patch0: fix-kernel-6_12-include.patch ExclusiveArch: %{ix86} x86_64 %description @@ -37,8 +45,11 @@ Summary: Kernel module for resetting devices used by VFIO Group: System/Kernel BuildRequires: %{kernel_module_package_buildreqs} +%if 0%{?kmp_longterm} +BuildRequires: kernel-syms-longterm +%endif Conflicts: vendor-reset-any-kmp -%kernel_module_package +%kernel_module_package -p %{SOURCE1} %description kmp A kernel module that is capable of resetting hardware devices into a state @@ -56,16 +67,16 @@ done %install -export INSTALL_MOD_PATH=%buildroot +export INSTALL_MOD_PATH=%{buildroot} export INSTALL_MOD_DIR=updates for flavor in %{flavors_to_build}; do make -C %{kernel_source $flavor} %{?linux_make_arch} modules_install M=$PWD done -install -dm755 %buildroot%_modulesloaddir -echo "vendor-reset" >> %buildroot%_modulesloaddir/%name.conf +install -dm755 %{buildroot}%{_modulesloaddir} +echo "vendor-reset" >> %{buildroot}%{_modulesloaddir}/%{name}.conf %files kmp %license LICENSE %doc README.md -%_modulesloaddir +%{_modulesloaddir} ++++++ fix-kernel-6_12-include.patch ++++++ --- a/src/amd/amdgpu/atom.c +++ b/src/amd/amdgpu/atom.c @@ -29,7 +29,11 @@ #include <linux/slab.h> #include <linux/delay.h> #include <linux/version.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0) #include <asm/unaligned.h> +#else +#include <linux/unaligned.h> +#endif //#include <drm/drm_util.h> //#include <drm/drm_print.h> ++++++ vendor-reset-preamble ++++++ Requires: kernel-%1