#1011953 thinkfan FTBFS on riscv

Package:
thinkfan
Source:
thinkfan
Description:
simple and lightweight fan control program
Submitter:
Alan Beadle
Date:
2022-06-01 13:39:03 UTC
Severity:
serious
Tags:
#1011953#5
Date:
2022-05-27 15:50:51 UTC
From:
To:
Dear Maintainer,

The thinkfan package has a ftbfs issue on riscv64.

Full buildd log here: https://buildd.debian.org/status/fetch.php?pkg=thinkfan&arch=riscv64&ver=1.3.1-1&stamp=1649865911&raw=0

I am including a patch which fixes the problem. Please consider applying it in the next upload. Thank you.

#1011953#10
Date:
2022-06-01 13:37:00 UTC
From:
To:
I am closing this bug, because glibc 2.34 will break the above
solution (the cmake directive will be ignored in the future).

Instead this will probably have to be fixed at the compiler level,
when gcc adds inline support for subword atomics in riscv. This is
pending.

More information can be found at these links:
[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012058
[1] https://blog.jiejiss.com/A-RISC-V-gcc-pitfall-revealed-by-a-glibc-update/