Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tp_smapi for openSUSE:Factory 
checked in at 2026-08-31 15:56:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tp_smapi (Old)
 and      /work/SRC/openSUSE:Factory/.tp_smapi.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tp_smapi"

Mon Aug 31 15:56:18 2026 rev:6 rq:1374721 version:0.45

Changes:
--------
--- /work/SRC/openSUSE:Factory/tp_smapi/tp_smapi.changes        2025-06-11 
16:29:26.699779380 +0200
+++ /work/SRC/openSUSE:Factory/.tp_smapi.new.1265/tp_smapi.changes      
2026-08-31 15:56:37.941833639 +0200
@@ -1,0 +2,24 @@
+Sun Aug 30 13:03:45 UTC 2026 - [email protected]
+
+- Fix source url
+
+-------------------------------------------------------------------
+Sun Aug 30 11:37:50 UTC 2026 - [email protected]
+
+- update to version 0.45
+  * Support for 6.15 kernels
+  * Fix building with clang
+
+- update to version 0.44
+  * Support for 6.4 kernel
+
+- Add tp_smapi-preamble
+- Add build for Factory longterm kernel
+- Add use-strscpy-instead-of-strncpy.patch
+  * strncpy was removed in Linux 7.2
+    (gh#linux-thinkpad/tp_smapi#81)
+    (gh#linux-thinkpad/tp_smapi#82)
+- Remove del_timer.patch and kernel_64.diff (fixed upstream)
+- Clean up spec file
+
+-------------------------------------------------------------------

Old:
----
  del_timer.patch
  kernel_64.diff
  tp_smapi-0.43.tar.gz

New:
----
  tp_smapi-0.45.tgz
  tp_smapi-preamble
  use-strscpy-instead-of-strncpy.patch

----------(Old B)----------
  Old:    (gh#linux-thinkpad/tp_smapi#82)
- Remove del_timer.patch and kernel_64.diff (fixed upstream)
- Clean up spec file
  Old:    (gh#linux-thinkpad/tp_smapi#82)
- Remove del_timer.patch and kernel_64.diff (fixed upstream)
- Clean up spec file
----------(Old E)----------

----------(New B)----------
  New:- Add build for Factory longterm kernel
- Add use-strscpy-instead-of-strncpy.patch
  * strncpy was removed in Linux 7.2
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tp_smapi.spec ++++++
--- /var/tmp/diff_new_pack.3Sjfxz/_old  2026-08-31 15:56:38.840865005 +0200
+++ /var/tmp/diff_new_pack.3Sjfxz/_new  2026-08-31 15:56:38.841865040 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package tp_smapi
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,29 @@
 #
 
 
+%ifarch x86_64
+%if 0%{?suse_version} >= 1699
+%define kmp_longterm 1
+%endif
+%endif
+
 Name:           tp_smapi
 Summary:        IBM ThinkPad hardware functions driver
-Version:        0.43
+Version:        0.45
 Release:        0
 License:        GPL-2.0-or-later
-Group:          System/Kernel
 URL:            https://github.com/linux-thinkpad/tp_smapi
-Source:         tp_smapi-%{version}.tar.gz
-Patch0:         kernel_64.diff
-Patch1:         del_timer.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %kernel_module_package_buildreqs
-BuildRequires:  kernel-source
-BuildRequires:  kernel-syms
-BuildRequires:  module-init-tools
+Source0:        
%{url}/releases/download/tp-smapi%2F%{version}/%{name}-%{version}.tgz
+Source1:        %{name}-preamble
+BuildRequires:  %{kernel_module_package_buildreqs}
+%if 0%{?kmp_longterm}
+BuildRequires:  kernel-syms-longterm
+%endif
+# PATCH-FIX-UPSTREAM use-strscpy-instead-of-strncpy.patch -- based on PR 81
+Patch0:         use-strscpy-instead-of-strncpy.patch
 ExclusiveArch:  %ix86 x86_64
-Requires:       kernel-desktop
 
-%suse_kernel_module_package -p -n tp_smapi kdump um
+%kernel_module_package -p %{SOURCE1}
 
 %description
 The tp_smapi kernel module exposes some features of the ThinkPad 
hardware/firmware via a sysfs interface.
@@ -43,7 +47,7 @@
 and direct access to the embedded controller.
 
 %prep
-%autosetup -p2 -n tp_smapi-%{version}
+%autosetup -p1
 set -- *
 mkdir source
 mv "$@" source/

++++++ tp_smapi-preamble ++++++
Requires: kernel-%1

++++++ use-strscpy-instead-of-strncpy.patch ++++++
>From 0483993a64f6d922d71dddd8f7f353d8bc22d1bf Mon Sep 17 00:00:00 2001
From: Evgeni Golov <[email protected]>
Date: Sat, 29 Aug 2026 19:30:32 +0200
Subject: [PATCH] use strscpy instead of strncpy

strncpy was removed in Linux 7.2
---
 tp_smapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tp_smapi.c b/tp_smapi.c
index 39ac601..cb01212 100644
--- a/tp_smapi.c
+++ b/tp_smapi.c
@@ -669,7 +669,7 @@ static ssize_t show_tp_ec_bat_str(u8 arg0, int offset, int 
maxlen,
        ret = read_tp_ec_row(arg0, bat, 0, row);
        if (ret)
                return ret;
-       strncpy(buf, (char *)row+offset, maxlen);
+       strscpy(buf, (char *)row+offset, maxlen);
        buf[maxlen] = 0;
        strcat(buf, "\n");
        return strlen(buf);

Reply via email to