** Description changed:

  SRU Justification
  
  [ Impact ]
  
  tp-smapi cannot be compiled against Kernels 7.2+ as strncpy has been
  replaced by strscpy.
  
  Both upstream https://github.com/linux-
  thinkpad/tp_smapi/pull/81/changes/0483993a64f6d922d71dddd8f7f353d8bc22d1bf
  and debian unstable (# 1146537) already contain the fix.
  
  [ Fix ]
  
  Merge debian unstable fix
  
  [ Test Case ]
  
  Follow the following steps:
  
- - Install the correct series package from 
https://launchpad.net/~alessiofaina/+archive/ubuntu/20261123-dkms-fixes/
+ - Install the correct series package from
+ https://launchpad.net/~alessiofaina/+archive/ubuntu/20261123-dkms-fixes/
+ 
  - Check the new package correctly installs in the system
- - Check the installed version number is the correct one
- - Check no regression is observed in dmesg
+ 
+ - Verify the compiled tp-smapi module file exists and inspect its module 
metadata (verifies successful build and vermagic match without requiring 
hardware):
+    $ MOD=$(ls /lib/modules/$(uname -r)/updates/dkms/thinkpad_ec.ko* | head 
-n1)
+    $ modinfo "$MOD"
+    $ MOD=$(ls /lib/modules/$(uname -r)/updates/dkms/tp_smapi.ko* | head -n1)
+    $ modinfo "$MOD"
+    $ MOD=$(ls /lib/modules/$(uname -r)/updates/dkms/hdaps.ko* | head -n1)
+    $ modinfo "$MOD"
+    Expected result: modinfo outputs valid module metadata with vermagic 
matching $(uname -r) and no errors.
  
  [ Regression potential ]
  
  No regression expected as this is a needed change as the function
  doesn't exists anymore in kernel.
  
  [ Discussion ]
  
  This cannot be a sync as Ubuntu has a different Architecture field in
  d/control, removing i386 from it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173763

Title:
  tp-smapi DKMS cannot build against Kernel 7.2+

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tp-smapi/+bug/2173763/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to