Package: thinkfan Version: 1.3.1-1 Severity: serious Tags: ftbfs patch Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: ab.bea...@gmail.com
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. -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: riscv64 Kernel: Linux 5.18.0-starfive-5.18 (SMP w/2 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8 Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages thinkfan depends on: ii init-system-helpers 1.63 ii libatasmart4 0.19-5 ii libatomic1 12.1.0-2 ii libc6 2.33-7 ii libgcc-s1 12.1.0-2 ii libstdc++6 12.1.0-2 ii libyaml-cpp0.7 0.7.0+dfsg-8 thinkfan recommends no packages. thinkfan suggests no packages. -- no debconf information
fix ftbfs on riscv64 Alan Beadle <ab.bea...@gmail.com> --- thinkfan-1.3.1.orig/CMakeLists.txt +++ thinkfan-1.3.1/CMakeLists.txt @@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 3.0) # Generate absolute paths or something cmake_policy(SET CMP0015 NEW) +set(THREADS_PREFER_PTHREAD_FLAG ON) + find_package(PkgConfig) find_package(Threads) pkg_check_modules(SYSTEMD "systemd")