tp-smapi build failure on arm64 with the latest impish kernel

Bug #1945784 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tp-smapi (Ubuntu)
Fix Released
Undecided
Unassigned
Impish
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

tp-smapi fails to build on arm64 with the following error:

│ ./include/linux/mc146818rtc.h:16:10: fatal error: asm/mc146818rtc.h: No such file or directory
│ 16 | #include <asm/mc146818rtc.h> /* register access macros */

More in general, it seems more reasonable to build this module only on amd64, since it is supposed to exposes features of the ThinkPad hardware/firmware via sysfs.

[Test case]

$ sudo apt install tp-smapi-dkms

[Fix]

Restrict this dkms only to amd64.

[Where problems could occur]

We may need this module if the ThinkPad hardware/firmware will run on architectures different than amd64 in the future, but for now it is unlikely to happen.

Tags: patch
Revision history for this message
Andrea Righi (arighi) wrote :
tags: added: patch
Changed in tp-smapi (Ubuntu Impish):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tp-smapi - 0.43-1ubuntu1

---------------
tp-smapi (0.43-1ubuntu1) impish; urgency=medium

  * Restrict this module to amd64 (LP: #1945784)

 -- Andrea Righi <email address hidden> Fri, 01 Oct 2021 14:47:02 +0200

Changed in tp-smapi (Ubuntu Impish):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.