summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-07 22:16:00 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-07 22:16:00 +0700
commit9e69a24277810219d25485f2c63cfe1f45786c88 (patch)
tree35f25fd51a69bb76800fd1b1ac702a382b6bd310
parentaadd4569d77d9a29dee6ced4ecb8a0b74af544c7 (diff)
downloadslackbuilds-9e69a24277810219d25485f2c63cfe1f45786c88.tar.gz
slackbuilds-9e69a24277810219d25485f2c63cfe1f45786c88.tar.xz
system/thermald: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/thermald/thd.patch10
-rw-r--r--system/thermald/thermald.SlackBuild6
2 files changed, 14 insertions, 2 deletions
diff --git a/system/thermald/thd.patch b/system/thermald/thd.patch
new file mode 100644
index 0000000000..a01cb26a1e
--- /dev/null
+++ b/system/thermald/thd.patch
@@ -0,0 +1,10 @@
+--- thermal_daemon-1.8/src/thd_trip_point.h.orig 2018-12-07 22:13:19.488982481 +0700
++++ thermal_daemon-1.8/src/thd_trip_point.h 2018-12-07 22:13:41.065159329 +0700
+@@ -33,6 +33,7 @@
+ #include <vector>
+ #include <algorithm> // std::sort
+ #include <stdexcept>
++#include <stdint.h>
+
+ typedef enum {
+ CRITICAL, HOT, MAX, PASSIVE, ACTIVE, POLLING, INVALID_TRIP_TYPE
diff --git a/system/thermald/thermald.SlackBuild b/system/thermald/thermald.SlackBuild
index 5be10b7d5f..bbee988722 100644
--- a/system/thermald/thermald.SlackBuild
+++ b/system/thermald/thermald.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for thermald
# Copyright 2017 Aaditya Bagga <aaditya_gnulinux@zoho.com>
-# Copyright 2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2017-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@
PRGNAM=thermald
SRCNAM=thermal_daemon
VERSION=${VERSION:-1.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,6 +71,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/thd.patch
+
./autogen.sh
./configure \
--prefix=/usr \