aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xfce/recipes-panel-plugins/sensors/xfce4-sensors-plugin/0001-Do-not-check-for-sys-class-power_supply-we-are-cross.patch
blob: c4624c6915329c184ee92b49b67b714c7ffdda7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 9b7e1beca872ca4a5fce8938c58379103787f79a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Sun, 23 Feb 2020 22:06:32 +0100
Subject: [PATCH] Do not check for /sys/class/power_supply - we are cross
 compiling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Upstream-Status: Inappropriate [OE-specific]

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 configure.ac | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/configure.ac b/configure.ac
index c281af9..60ba0c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -203,19 +203,9 @@ dnl Check for interface for /sys/class/power_supply to be used
 AC_ARG_ENABLE([sysfsacpi], [AS_HELP_STRING([--enable-sysfsacpi], [Use /sys/class/power_supply to read your battery value @<:@default=auto@:>@])],
 [],
 [
-    enable_sysfsacpi=auto
+    enable_sysfsacpi=yes
 ])
 
-if test x"$enable_sysfsacpi" = x"auto"; then
-    AC_CHECK_FILE([/sys/class/power_supply],
-    [
-        enable_sysfsacpi=yes
-    ],
-    [
-        enable_sysfsacpi=no
-    ])
-fi
-
 if test x"$enable_sysfsacpi" = x"yes"; then
     AC_DEFINE([HAVE_SYSFS_ACPI], [1], [Define to 1 if /sys/class/power_supply is found])
     enable_procacpi=yes
-- 
2.21.0